nammero / sorterbystrategy
This library demonstrate usage of the Strategy pattern
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/nammero/sorterbystrategy
Requires
- php: >=7.2
- symfony/yaml: ^4.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.13
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-11-13 00:10:16 UTC
README
This library allow to sort an array in ascending or descending order. Implemented by using the Strategy design pattern.
This template has basic configuration for PHPUnit and
PHP-CS-Fixer libraries, configured composer.json
with PSR-4 namespaces for source code and tests, .gitignore with basic files and directories to exclude them from Git, changelog file
and README with cool badges :)
Installation
For creating new project based on this template just execute the following command
$ composer create-project nammero/sorterbystrategy
NOTE: You can add
--no-devright aftercreate-projectflag if you don't want to install dev dependencies to your project
Code style fixer
To fix the code style just run the following command
$ composer cs-fix
License
This project is released under the terms of the BSD-3-Clause license.
Copyright (c) 2019, Eugene Zadorozhnyy