Download the PHP package safronik/code-patterns without Composer
On this page you can find all versions of the php package safronik/code-patterns. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download safronik/code-patterns
More information about safronik/code-patterns
Files in safronik/code-patterns
Package code-patterns
Short Description Implementation of different code patterns mainly could be used as traits
License MIT
Homepage https://github.com/Safronik/project-code-patterns
Informations about the package code-patterns
safronik/code-patterns
A PHP library contains code patterns ready to use.
About
This package contains few main code patterns you can use to build your own project. You are free to use anywhere in any way you want (MIT License).
Installation
The preferred method of installation is via Composer. Run the following
command to install the package and add it as a requirement to your project's
composer.json
:
Content
Patterns grouped by their destination:
Generative:
Patterns which are create or store objects/values
- AbstractFabric.php
- Builder.php
- Container.php
- Fabric.php
- Multiton.php
- Prototype.php
- RAII.php
- Registry.php
- Singleton.php
Structural:
Patterns which help to organize and build solid code structure
- Decorator.php
- DTO.php
- Hydrator.php
Behavioral:
These helps you to organize the code in dynamic, its behaviour.
- Event.php
- EventBroker.php
- EventManager.php
Custom:
Patterns from any previous group with some additional changes like lazy loads or specific keys
- MultitonByClassname.php
Contributing
Feel free to contribute!