dqneo / fizzbuzz-enterprise-edition
FizzBuzz Enterprise Edition
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 2
Open Issues: 0
Type:application
Requires
- php: >=5.4.0
- phpunit/phpunit: ~4.5
This package is auto-updated.
Last update: 2024-11-07 03:06:57 UTC
README
FizzBuzz with too much object oriented programming.
INSTALLATION
git clone https://github.com/DQNEO/php-FizzBuzzEnterpriseEdition.git
cd php-FizzBuzzEnterpriseEdition
composer install
Usage
./bin/fizzbuzz.php 100
FizzBuzz
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.
TODO
- 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