The phpABLE abstractions library provided an ability to declare static classes.
- PHP >= 8.0.0
- able/exceptions
There's a simple way to install the able/statics
package via Composer:
composer require able/statics
Please, follow the example below:
use \Able\Static\TStatic;
class StaticExample {
use TStatic;
}
This package is released under the MIT license.