Download the PHP package camspiers/closureaccess without Composer
On this page you can find all versions of the php package camspiers/closureaccess. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download camspiers/closureaccess
More information about camspiers/closureaccess
Files in camspiers/closureaccess
Download camspiers/closureaccess
More information about camspiers/closureaccess
Files in camspiers/closureaccess
Vendor camspiers
Package closureaccess
Short Description Brings JavaScript-like functionality to your objects
License
Package closureaccess
Short Description Brings JavaScript-like functionality to your objects
License
Please rate this library. Is it a good library?
Informations about the package closureaccess
Closure Access
The closure access trait brings JavaScript-like functionality to your objects in the following ways:
- Public methods on objects can be accessed as properties e.g. $obj->methodName
- Closures added to objects can be executed like public methods e.g. $obj->closureProp()
No claims are made as to whether you should use this library, it is provided more as a proof of concept.
Installation (with composer)
composer require camspiers/closureaccess:dev-master
Performance
- Accessing public methods as properties e.g. $obj->methodName (return Closure)
~2.1x
slower
- Closures added to objects can be executed like public methods e.g. $obj->closureProp()
~3.1x
slower
Usage
All versions of closureaccess with dependencies
PHP Build Version
Package Version
No informations.
The package camspiers/closureaccess contains the following files
Loading the files please wait ....