With the help of Symphony 6 dependency injection component and composer implement:
-
Generators
- Random string generator(a-zA-Z0-9). Possibility to set random string length via dependency injection. Result example: afAs3d
- Array with random strings generator(a-zA-Z0-9). Possibility to set array size and string length via dependency injection. Result example: ['Av54sD', '123456', 'NN54sM']
-
Converters
- Can convert string by the following pattern: Input: 22aAcd Output: 22/1/1/3/4
- Rot13 converter
-
Create Generators collection.
-
Add index.php and add random Generators to your Generators collection. Loop threw collection and apply random Converter to every Generator.
Use PHPCodeSniffer, PHPStan and PHPUnit.
composer test
composer lint
composer phpstan