ifcastle / design-patterns
A library of common design patterns for building stateful server applications.
0.4.1
2024-11-24 07:16 UTC
Requires
- php: ^8.4
- ifcastle/di: ^0.8
- ifcastle/exceptions: ^5.1
Requires (Dev)
- amphp/php-cs-fixer-config: ^2.1
- friendsofphp/php-cs-fixer: ^3.60
- ifcastle/codestyle: ^0.1.7
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.2
This package is auto-updated.
Last update: 2026-06-17 13:03:27 UTC
README
Common Design Patterns for Stateful applications.
Patterns
Execution Plan- Patterns that allow you to create a sequence of actions that can be executed in a specific order.Factory- A pattern that allows you to create objects.Final Handlers- Method for determining handlers that will be executed at the very end of the FLOW, even if an error occurs.Immutable- A pattern/trait that allows you to create immutable objects.Interceptor- A pattern that allows you to intercept the execution of a method and modify its behavior with arguments.IntervalRunner- Interval execution strategy that provides logic for running some code.Iterators- Group of contracts for iterators that extends basic conventions.Pool- Pool pattern focused on resource usage in a multithreaded environment.ScopeControl- A pattern that imposes restrictions on operations based on the current scope.