Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/websoftwares/php-api-backend
https://github.com/websoftwares/php-api-backend
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/websoftwares/php-api-backend
- Owner: websoftwares
- Created: 2017-11-23T15:28:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-23T15:33:35.000Z (about 7 years ago)
- Last Synced: 2024-10-12T13:15:31.729Z (4 months ago)
- Language: PHP
- Size: 501 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example backend API Development
Example backend that consumes external api.## System requirements
- PHP 7.1+
- Linux system (recommended)
- Docker (recommended)
- Docker compose (recommended)## Installation
1) Install dependencies:
```
php composer.phar install
```2) Start php web server from root folder (not document root)
```
php -S localhost:8080 -t public/
```## Docker
Run the application with docker do the following command from the project root folder `docker-compose up`
## Testing
Project has `unit` and `integration` tests
### Unit tests
In the `/test` folder u can find several tests run them with the following command from the project root folder `vendor/bin/phpunit`### Integration tests
In the `/test/integration` folder u can find several tests execute them with the following command from the project root folder `./integration-test.sh`
## License
The [MIT](http://opensource.org/licenses/MIT "MIT") License (MIT).