victormln/docker-php-testing

A project template to have PHP 8.1 and testing tools (PHPUnit + Infection)


Keywords
template, docker, docker-compose, php, phpunit, testing
License
MIT

Documentation

PHP Version

Introduction

Template repository to have PHP + Xdebug + Testing tools (PHPUnit + Infection)

What is in this template

  • PHP-fpm
  • php.ini prepared to be edited by your own
  • Composer
  • Makefile
  • Xdebug
  • PHPUnit
  • Infection

Installation

  1. From composer
$ composer create-project victormln/docker-php-testing your-project

OR with git:

$ git clone https://github.com/victormln/docker-php-testing.git your-project
  1. Install repository
$ cd your-project
$ make install
  1. Execute PHPUnit:
$ make test
  1. Execute Infection:
$ make infection