2017 © Pedro Peláez
 

application chicken-challenge

Create a chicken in 4 hours with NO external dependencies or extensions.

image

davidjeddy/chicken-challenge

Create a chicken in 4 hours with NO external dependencies or extensions.

  • Monday, November 7, 2016
  • by davidjeddy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 19 Versions
  • 0 % Grown

The README.md

Overview

Chicken Challenge, (*1)

Requirements

Create a PHP class or classes that instantiate an object that represents a chicken (the animal). Your chicken class should demonstrate understanding of object oriented programming principles including (but not limited to) - inheritance - encapsulation - single-responsibility., (*2)

Your chicken must be able to be run through a PHP interpreter without any external dependencies. It should follow PSR-2 standards and include unit tests., (*3)

Assumptions

  • PHP, GiT, Terminal are accessible
  • Composer can be used to generate the application class auto loader
  • Composer can be used to check PHP minimal requirements
  • Minimal 3rd part library usage, should not be core of demo

Badges

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock available, (*4)

SensioLabsInsight, (*5)

Installation

cd {project root}
git clone 

VM / Container services

IF Vagrant is available:, (*6)

vagrant up
vagrant ssh

IF docker is available (very early alpha, YMMV), (*7)

docker-compose up --build
docker exec -it chickenchallenge_app_1 bash
apt-get update && apt-get install wget
  • Run the application commands inside the container

Install dependencies

wget http://getcomposer.org/composer.phar
php composer.phar install --profile --prefer-dist -o

Running the app

Change directory to the root of the project, (*8)

php ./index.php

Testing

Testing requires PHPUnit, easiest way to get PHPUnit is via composer, (*9)

cd {project root}
wget https://phar.phpunit.de/phpunit.phar
php ./vendor/bin/phpunit ./tests

Coding style

To ensure PSR-2 compliant occasionally run the following, (*10)

wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --standard=PSR2 --ignore="*/vendor/*","*/sapi/*" --report-diff=./PSR2.diff ./
patch -p0 -ui ./PSR2.diff

Auto Generating Documentation

wget http://phpdoc.org/phpDocumentor.phar
php phpDocumentor.phar -p -t ./sapi -d ./src
  • Note: GraphViz is required to generate inheritance tree visuals.

The Versions

07/11 2016

dev-master

9999999-dev https://github.com/davidjeddy/chicken-challenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

 

challenge chicken

07/11 2016

0.1.7.5

0.1.7.5 https://github.com/davidjeddy/chicken-challenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

 

challenge chicken

07/11 2016

0.1.7

0.1.7.0 https://github.com/davidjeddy/chicken-challenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

 

challenge chicken

07/11 2016

0.1.6

0.1.6.0 https://github.com/davidjeddy/chicken-challenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

 

challenge chicken

07/11 2016

dev-iteration2

dev-iteration2 https://github.com/davidjeddy/chicken-challenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

 

challenge chicken

07/11 2016

0.1.5

0.1.5.0 https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

 

challenge chicken

07/11 2016

dev-addingCLI

dev-addingCLI https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

 

challenge chicken

07/11 2016

dev-removeCustomAutoloader

dev-removeCustomAutoloader https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

 

challenge chicken

06/10 2016

dev-bonuse

dev-bonuse https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

0.1.0

0.1.0.0 https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

dev-add_tests

dev-add_tests https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

0.0.3

0.0.3.0 https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

dev-psr2_auto_compliance

dev-psr2_auto_compliance https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

0.0.2

0.0.2.0 https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

dev-adding_phpunit

dev-adding_phpunit https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

dev-autoloader_try_2

dev-autoloader_try_2 https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

dev-create_autoloader

dev-create_autoloader https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken

06/10 2016

dev-composerFix

dev-composerFix https://github.com/davidjeddy/chickenChallenge.git

Create a chicken in 4 hours with NO external dependencies or extensions.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

challenge chicken