Download the PHP package zhikiri/pdecorate without Composer
On this page you can find all versions of the php package zhikiri/pdecorate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zhikiri/pdecorate
More information about zhikiri/pdecorate
Files in zhikiri/pdecorate
Download zhikiri/pdecorate
More information about zhikiri/pdecorate
Files in zhikiri/pdecorate
Vendor zhikiri
Package pdecorate
Short Description Python like function decoration in PHP
License MIT
Package pdecorate
Short Description Python like function decoration in PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package pdecorate
pdecorate
Simulation of the Python decorators in PHP
Install with composer: composer require zhikiri/pdecorate
Description
Creation of the new decorator, second parameter must be callable.
Allow to use class methods, function names and Closure class instances (anonymous function)
Get instance of the decoration
First of all pass the decorators and the last parameter must be the callable function.
Decoration execution:
- cast to string
(string)$decoration
- execute the Decorator instance
$decoration()
- run the Decorator call method
$decoration->call()
Result of the current decoration will be: <i>decoration text</i>
All versions of pdecorate with dependencies
PHP Build Version
Package Version
No informations.
The package zhikiri/pdecorate contains the following files
Loading the files please wait ....