This repository contains a small Slim4 application that initially does not define a specific PSR-7 implementation. It uses Continuous Integration (Travis-CI) to build and check the application against the four PSR-7 implementations supported by default by the slim framework.
Note: Travis-CI is configured to be triggered automatically at least every 24 hours.
When triggered, Travis-CI creates four different virtual machines. Each installs
an Apache web server and this application. The web server is configured such
http://localhost/ points to the subdirectory
public. Then each virtual
machine would require via composer a different PSR-7 implementation.
Eventually the PHPUnit test is launched which would use the Guzzle HTTP Client to make http requests and validate the responses.
public/.htaccessThis file contains the server override settings.
public/index.phpThis is the entry point on the server.
composer.jsonThis is the composer file.
build/travis-ci-apache.confThe apache configuration.
.travis.ymlThe travis configuration.
tests/bootstrap.phpThe tests bootstrap.
tests/*Test.phpThe PHPUnit test classes.