/howsy

Primary LanguagePHP

Howsy Software Engineer Code Challenge

This solution for the Howsy Code Challenge uses:

  • PHP 8.1
  • PHPUnit 9
  • Mockery 1.5
  • PHP DI 6.4
  • Docker
  • Docker Compose

Getting started.

  1. Clone the repo.
  2. Build the container. (this will also install composer dependencies)
docker-compose build
  1. Run the container.
docker-compose up -d
  1. Run the tests.
docker-compose exec app ./vendor/bin/phpunit --testdox tests

or

docker-compose exec app ./vendor/bin/phpunit tests
  1. Run demo app.
docker-compose exec app docker-compose exec app php index.php

you can customize the contract period changing the variable $period in ./src/index.php:14

$period = 12;
  1. Evaluate code! 😉