x-systems/phlex-core

Phlex Core - collection of PHP Traits for designing object-oriented frameworks

3.0.x-dev 2022-06-22 20:05 UTC

This package is auto-updated.

Last update: 2024-04-23 00:20:07 UTC


README

Collection of PHP Traits for designing object-oriented frameworks.

Unit Testing CodeCov GitHub release PHPStan enabled

Agile Core was created for Agile Data and Agile UI, but can be used in any other framework too. You will mostly find PHP Traits here, that add functionality into your objects such as:

  • Containers: Implements Parent/Child relations between your objects
  • Hooks: Create hooks and register callbacks with priorities and arguments
  • Initializers: Automatically execute init() method of your object
  • Dynamic Methods: Add methods dynamically into existing objects
  • Factory: Specify class name as a string
  • App Scope: Inject global "app" object and pass it to new objects

Additionally you a much better 'Exception' class for general-purpose exceptions.

Documentation

http://phlex-core.readthedocs.io/

Community and Support

Gitter Stack Overlfow Community Discord User forum

Install from Composer

composer require x-systems/phlex-core

Phlex

Phlex Core is part of Phlex - PHP UI Framework. If you like this project, you should also look into: