library objectsystem
Object system for PHP
zonuexe/objectsystem
Object system for PHP
- Sunday, May 21, 2017
- by zonuexe
- Repository
- 2 Watchers
- 3 Stars
- 2,670 Installations
- PHP
- 2 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 9 Versions
- 3 % Grown
Teto Objectsystem
, (*1)
Object system implementation for PHP, (*2)
Document
Installation
cd /path/to/your/project
composer require zonuexe/objectsystem
Features
- Property type check at run time
trait TypedProperty
trait TypeAssert
class TypeDefinision
- Object container
class ObjectArray
interface ToArrayInterface
- Trait for general class
-
trait ReadOnlyTrait
: Restrict write to not accessable property.
-
trait PrivateGetter
: Private property behaves like read only.
- Very simple, but you may not be able to imagine the behavior of trait in the inherited class.
- Behavior of undefined property depends on error_reporting() and set_error_handler().
-
trait PrivateStrictGetter
: Private property behaves like read only.
- Throws
OutOfRangeException
if propery is undefined.
-
trait MethodAlias
: Make alias of method.
-
trait PropertyLikeMethod
: Call method as property.
References
Copyright
see ./LICENSE
., (*3)
Object system implementation for PHP
Copyright (c) 2016 [Baguette HQ](http://baguettephp.github.io/) / [USAMI Kenta](https://tadsan.github.io/) <tadsan@zonu.me>
Teto Kasane
I love Teto Kasane. (ja: Teto Kasane official site), (*4)
r /
__ , --ヽ!-- .、_
! `/::::;::::ヽ l
!二二!::/}::::丿ハニ|
!ニニ.|:/ ノ/ }::::}コ
L二lイ 0´ 0 ,':ノコ
lヽノ/ヘ、 '' ▽_ノイ ソ
ソ´ /}`ス / ̄ ̄ ̄ ̄/
.(_:;つ/ 0401 / カタカタ
 ̄ ̄ ̄ ̄ ̄\/____/
dev-master
9999999-dev
Object system for PHP
Sources
Download
Apache-2.0
The Requires
The Development Requires
0.6.0
0.6.0.0
Object system for PHP
Sources
Download
Apache-2.0
The Requires
The Development Requires
0.5.3
0.5.3.0
Object system for PHP
Sources
Download
Apache-2.0
The Development Requires
0.5.2
0.5.2.0
Object system for PHP
Sources
Download
Apache-2.0
The Development Requires
0.5.1
0.5.1.0
Object system for PHP
Sources
Download
Apache-2.0
The Development Requires
0.5.0
0.5.0.0
Object system for PHP
Sources
Download
Apache-2.0
The Development Requires
0.3.0
0.3.0.0
Object system for PHP
Sources
Download
Apache-2.0
The Development Requires
0.2.1
0.2.1.0
Object system for PHP
Sources
Download
Apache-2.0
The Development Requires
0.2.0
0.2.0.0
Object system for PHP
Sources
Download
Apache-2.0
The Development Requires