psx / sample
PSX sample project
Fund package maintenance!
chriskapp
Patreon
www.paypal.me/fusioapi
Installs: 1 100
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=8.0
- psx/framework: ^6.0
Requires (Dev)
- phpunit/phpunit: ^8.0
- vimeo/psalm: ^4.0
- dev-master
- v6.0.0
- v4.1.2
- v4.1.1
- v4.1.0
- v4.0.1
- v4.0.0
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2024-11-28 22:04:10 UTC
README
About
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
Configuration
In the configuration.php file change the key psx_url
to the absolute url to
the public/
folder. If you have setup a vhost this is simply the domain.
Getting started
In the following a few explanations about the important parts of the API.
-
src/Api/Population/Collection.php
This is the class which represents the/population
endpoint -
src/Service/Population.php
Service class which contains the business logic of the API. -
src/Dependency/Container.php
DI container which provides the population service -
tests/Api/Population/CollectionTest.php
Contains the PHPUnit test case for the/population
endpoint. If you have phpunit installed you can run the tests in the root of the project with the phpunit command.