Download the PHP package vertaalbureau-perfect/action-pattern without Composer
On this page you can find all versions of the php package vertaalbureau-perfect/action-pattern. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vertaalbureau-perfect/action-pattern
More information about vertaalbureau-perfect/action-pattern
Files in vertaalbureau-perfect/action-pattern
Download vertaalbureau-perfect/action-pattern
More information about vertaalbureau-perfect/action-pattern
Files in vertaalbureau-perfect/action-pattern
Vendor vertaalbureau-perfect
Package action-pattern
Short Description Action for small code bits, usable in laravel
License MIT
Package action-pattern
Short Description Action for small code bits, usable in laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package action-pattern
Action Pattern
Actions are meant to be very small, single purpose, bits of code.
Because of the small footprint actions are easy reusable.
Example use cases are:
- implementing third paty api calls
- Simple routine jobs
Installation
Creating an Action
You can also create actions in sub namespaces:
Actions are placed in your app/Actions folder.
Usage
Imagine a simple action to write something to the log:
And to use it we would simply call:
Testing
For Testing purposes you can use the static fake method.
If your code depends on a return value from the action you can provide the return value in the fake method.
All versions of action-pattern with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4|^8.0|^8.1
illuminate/container Version ^8.0|^9.0|^v10.26.2
illuminate/console Version ^8.0|9.*|^v10.26
phpunit/phpunit Version ^9.5.4|^10.0
illuminate/container Version ^8.0|^9.0|^v10.26.2
illuminate/console Version ^8.0|9.*|^v10.26
phpunit/phpunit Version ^9.5.4|^10.0
The package vertaalbureau-perfect/action-pattern contains the following files
Loading the files please wait ....