PSX sample project
This package is auto-updated.
Last update: 2022-07-28 17:09:53 UTC
This is a sample application which can bootstrap a project based on the PSX framework. You can install it through composer
composer create-project psx/sample .
More information about PSX at https://phpsx.org
In the configuration.php file change the key
psx_url to the absolute url to
public/ folder. If you have setup a vhost this is simply the domain.
In the following a few explanations about the important parts of the API.
This is the class which represents the
Service class which contains the business logic of the API.
DI container which provides the population service
tests/Api/Population/CollectionTest.phpContains the PHPUnit test case for the
/populationendpoint. If you have phpunit installed you can run the tests in the root of the project with the phpunit command.