Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thenlabs/components
A custom implementation of the Composite pattern in PHP for create component types with useful functionalities.
https://github.com/thenlabs/components
component-architecture component-based component-library components components-library composite composite-pattern php php-library
Last synced: 14 days ago
JSON representation
A custom implementation of the Composite pattern in PHP for create component types with useful functionalities.
- Host: GitHub
- URL: https://github.com/thenlabs/components
- Owner: thenlabs
- License: mit
- Created: 2020-02-07T15:24:26.000Z (almost 5 years ago)
- Default Branch: 1.1
- Last Pushed: 2022-11-27T20:55:51.000Z (almost 2 years ago)
- Last Synced: 2024-09-26T08:56:58.378Z (about 1 month ago)
- Topics: component-architecture, component-based, component-library, components, components-library, composite, composite-pattern, php, php-library
- Language: PHP
- Homepage: https://github.com/thenlabs/doc/blob/master/components/1.0/en/index.md
- Size: 294 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- cuban-opensource - Components - based structures. (Web Development / PHP)
README
# Components
A custom implementation of the Composite pattern in PHP for create component types with useful functionalities.
>If you like this project gift us a ⭐.
## Features.
- PHP >= 7.2
- Two component types(simple and composite).
- Tree structure.
- Dependency management.
- Useful methods for filter and iterate over the tree.
- Events dispatching.
- Event propagation(capture and bubbling) across the tree.
- Support of custom data.## Installation.
$ composer require thenlabs/components
## Documentation.
1. English (Pending)
2. [Español](https://github.com/thenlabs/doc/blob/master/components/1.0/en/index.md)## Development.
Clone this repository and install the Composer dependencies.
$ composer install
### Running the tests.
All the tests of this project was written with our testing framework [PyramidalTests][pyramidal-tests] wich is based on [PHPUnit][phpunit].
Run tests:
$ composer test
[phpunit]: https://phpunit.de
[pyramidal-tests]: https://github.com/thenlabs/pyramidal-tests