Simple example of GitLab CI for PHP.
It runs CI pipeline with two jobs in PHP 7.1 and PHP 7.2 with 3 steps:
- PSR-2 coding standard check with CodeSniffer
- Code static analysis with PHPStan
- Run tests with PHPUnit
Configuration is in scripts
section of composer.json