Download the PHP package n7olkachev/php-simple-delegator without Composer
On this page you can find all versions of the php package n7olkachev/php-simple-delegator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download n7olkachev/php-simple-delegator
More information about n7olkachev/php-simple-delegator
Files in n7olkachev/php-simple-delegator
Download n7olkachev/php-simple-delegator
More information about n7olkachev/php-simple-delegator
Files in n7olkachev/php-simple-delegator
Vendor n7olkachev
Package php-simple-delegator
Short Description Simple decorator trait for PHP
License MIT
Homepage https://github.com/n7olkachev/php-simple-delegator
Package php-simple-delegator
Short Description Simple decorator trait for PHP
License MIT
Homepage https://github.com/n7olkachev/php-simple-delegator
Please rate this library. Is it a good library?
Informations about the package php-simple-delegator
Simple Delegator
Why?
You can watch Jeffrey Way's video from Laracon US 2017 with usage example: https://streamacon.com/video/laracon-us-2017/day-2-jeffrey-way (35:00)
Examples
Suppose, we want to create Presenter for our User model:
Or, we want to add some additional behavior to our class (as in Jeffrey's example):
Installation
You can install the package via composer:
Next, add SimpleDelegator trait to your Decorator class:
Testing
Credits
Sponsored by
Web agency based in Minsk, Belarus
License
The MIT License (MIT)
All versions of php-simple-delegator with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package n7olkachev/php-simple-delegator contains the following files
Loading the files please wait ....