Live Examples
Luracast Restler is a single file framework that can expose any PHP class (with zero arguments constructor) and its public and protected methods (that manage their own dependencies) as RESTful API.
Learn by the examples
Here you can find the examples that shows many features of Restler and how to use them. It is created in such a way that they can be tested on your local host. You can check the source code, try some of the API's exposed all at the comfort of your browser
- Hello World Let's say hello! 1
- Minimal Less is more 2
- Multi-format Serving what the client wants 3
- Error Response Making use of HTTP status codes 4
- Protected API Creating restricted zone 5
- CRUD using POST, GET, PUT and DELETE 6
Restler Execution Flow