This sample code helps get you started with a PHP Slim Microservice
This sample includes:
- README.md - this file
- BuildnumberTask and buildnumber.txt to calaculate buildnumber
- phpunit.xml with phpunit configuration
- build.xml with build targets
- config - sample configuration of Microservice
- sql - Database Setup
- src - 4-layered Microservice
- test - PHPUnit Tests
-
Install PHP. See http://php.net/manual/en/install.php for details.
-
Install composer. See https://getcomposer.org/doc/00-intro.md for details.
-
Install the dependencies from composer.json
-
Start the PHP development server:
$ php -S localhost -t public index.php
-
Open http://127.0.0.1/ in a web browser to view your service.