2017 © Pedro Peláez
 

library x-trait-common

image

limingxinleo/x-trait-common

  • Monday, May 28, 2018
  • by limingxinleo
  • Repository
  • 1 Watchers
  • 4 Stars
  • 3,244 Installations
  • PHP
  • 11 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 71 % Grown

The README.md

x-trait-common

常用Trait集合, (*1)

Build Status, (*2)

单例模式Trait

<?php
use Xin\Traits\Common\InstanceTrait;

class Ins1
{
    use InstanceTrait;

    public function str()
    {
        return 'Ins1';
    }

    public function instance()
    {
        return static::$_instance;
    }
}

echo Ins1::getInstance()->str();

The Versions

28/05 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by 李铭昕

28/05 2018

1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by 李铭昕

02/03 2018

1.0.4

1.0.4.0

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by 李铭昕

02/03 2018

1.0.3

1.0.3.0

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by 李铭昕

30/12 2017

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by 李铭昕

27/12 2017

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by 李铭昕

07/12 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by 李铭昕