dqneo/fizzbuzz-enterprise-edition

FizzBuzz Enterprise Edition

v1.0.1 2015-03-18 18:37 UTC

This package is auto-updated.

Last update: 2024-04-07 01:47:27 UTC


README

Build Status Scrutinizer Code Quality

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

SEE ALSO