gradzio / codility-lessons

PHP solutions for codility lessons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codility Lessons - PHP

Build Status Code Coverage Minimum PHP Version
Build Status codecov Minimum PHP Version

My solutions for Codility lessons using PHP.

Criteria to pass is always reaching 100%.

Structure

Solutions are grouped in folders that have seperate namespace with a lesson number.

Each Folder contains a solution set (component) that starts with a name of a Exercise

Each Component contains:

  • Test.php file that represents BDD approach
  • Solution implementation in .php
  • Info file in .md with level of difficulty, complexity (detected by codility) and description of the challenge.

Installation

composer install which will install composer packages

CI pipeline

I am using travis and you can check its configuration in .travis.yml file

After each commit to master it will run following commands:

Linting

composer lint which will check for PSR1 and PSR2 style

Testing

composer test which will for breaking unit tests using phpunit

About

PHP solutions for codility lessons


Languages

Language:PHP 100.0%