PHP Classes

Armory PHP Closure Trait package blog

Recommend this page to a friend!

Latest Armory PHP Closure Trait package blog posts

  All package blogs All package blogs   Armory PHP Closure Trait Armory PHP Closure Trait   Blog Armory PHP Closure Trait package blog   Post article Post article  

2. How to Implement PHP Class Callbacks with Minimal Code

Updated on: 2020-10-08

Posted on:

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

1. How to Create a Compact PHP API in a Single Object

Updated on: 2020-09-04

Posted on:

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   Armory PHP Closure Trait Armory PHP Closure Trait   Blog Armory PHP Closure Trait package blog   Post article Post article