FizzBuzz with too much object oriented programming.
git clone https://github.com/DQNEO/php-FizzBuzzEnterpriseEdition.git
cd php-FizzBuzzEnterpriseEdition
composer install
./bin/fizzbuzz.php 100
The rules of FizzBuzz are as follows:
For numbers 1 through 100,
- if the number is divisible by 3 print Fizz;
- if the number is divisible by 5 print Buzz;
- if the number is divisible by 3 and 5 (15) print FizzBuzz;
- else, print the number.
- enable to select various writer (stdout, stderr, mail, fluent, file, null, monolog)
- enable web interface (use Slim or Siliex with Symfony Reponse)
- use Symfony Console
- measure code coverage