dqneo / fizzbuzz-enterprise-edition
FizzBuzz Enterprise Edition
Installs: 14
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-12-07 03:23:47 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