An open API service indexing awesome lists of open source software.

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

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