https://github.com/mageddo/php-rest
A RESTful framework for PHP
https://github.com/mageddo/php-rest
Last synced: 11 months ago
JSON representation
A RESTful framework for PHP
- Host: GitHub
- URL: https://github.com/mageddo/php-rest
- Owner: mageddo
- License: other
- Created: 2016-04-02T17:12:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-03T16:13:22.000Z (about 10 years ago)
- Last Synced: 2025-03-27T23:30:21.462Z (about 1 year ago)
- Language: PHP
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# Introduction
Write REST APIs easily with this framework
# Setting up
## Testing controllers
Controller on specific version
```bash
$ curl -X POST "http://localhost" -H "version: 1.0"
It works from post 1.0 PHP API !!!
```
Controller on specific method
```bash
$ curl -X POST "http://locahost"
It works from post default version PHP API !!!
```
Default Controller
```bash
$ curl -X GET "http://locahost"
$ curl -X PUT "http://locahost"
It works from default PHP API !!!
```
## Runinng from docker
```bash
$ gradle build-dev
```
That way you can access the docker container IP and use the API
# License
This project is released under version 2.0 of the [Apache License][].
[Apache License]: http://www.apache.org/licenses/LICENSE-2.0