Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrceperka/php-demo-app
PHP 🐘, phpstan, nextras/orm demo project
https://github.com/mrceperka/php-demo-app
orm php phpstan
Last synced: 1 day ago
JSON representation
PHP 🐘, phpstan, nextras/orm demo project
- Host: GitHub
- URL: https://github.com/mrceperka/php-demo-app
- Owner: mrceperka
- Created: 2021-12-14T12:22:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T09:43:34.000Z (about 3 years ago)
- Last Synced: 2024-11-15T03:33:20.150Z (2 months ago)
- Topics: orm, php, phpstan
- Language: PHP
- Homepage:
- Size: 341 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP demo app
## TODO features
Scan code for `TODO feature`.
Pick a feature that sounds interesting to you and implement it.
`TODO features` are focused on design, database, testing and tooling.
The difficulty of each feature varies.
## Setup
### 1. step
Create empty file and start composition
```shell
touch .env.local
docker-compose up
```### 2. step
Wait for the first step, then reset the database with following the command:
```shell
docker-compose exec -u $UID php php bin/console.php mig:res
```## Tests & static analysis
In order to run the tests, the docker composition has to be running.
```shell
docker-composer exec -u $UID php composer tests
docker-composer exec -u $UID php composer stan
```## Api
Public HTTP API provided by this demo.
Default http address is: http://172.22.0.20.
### Routes
- http://172.22.0.20/api/ingredient/1 (GET)
- http://172.22.0.20/api/ingredient/create-random (POST)
- http://172.22.0.20/api/ingredient (POST)### Utils
- Adminer: http://172.22.0.20/adminer.php?server=mariadb&username=demo&db=demo
- PHP info: http://172.22.0.20/info.php