2. How to Implement PHP Class Callbacks with Minimal Code
Updated on: 2020-10-08
Posted on: 2020-10-08
Some classes need to implement a callback system that allows applications to customize actions to be executed when certain events happen inside the class.
This package provides a trait that can be used to quickly add callback function registration and invocation for any number of types of events that a class may trigger.
More ... Post a comment See comments (0) Trackbacks (0)
This package provides a trait that can be used to quickly add callback function registration and invocation for any number of types of events that a class may trigger.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Create a Compact PHP API in a Single Object
Updated on: 2020-09-04
Posted on: 2020-09-04
The Armory PHP Closure Trait is a package that provides a trait that you can use in your PHP classes to quickly add a registration and a callback support to register and invoke callback functions to handle class specific events.
Read this short tutorial to learn about several ways to use the PHP Armory Trait.
More ... Post a comment See comments (0) Trackbacks (0)
Read this short tutorial to learn about several ways to use the PHP Armory Trait.
More ... Post a comment See comments (0) Trackbacks (0)