A simple boilerplate to start your first RESTfull API with PHP Lumen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jose Quintana 222831bea8 Update Handler.php 3 years ago
app Update Handler.php 3 years ago
bootstrap init 4 years ago
database init 4 years ago
public init 4 years ago
resources/views init 4 years ago
storage init 4 years ago
tests init 4 years ago
.env init 4 years ago
.gitignore Update .gitignore 3 years ago
artisan init 4 years ago
books.sql init 4 years ago
composer.json Update phpdotenv@2.3 3 years ago
phpunit.xml init 4 years ago
readme.md init 4 years ago

readme.md

Lumen RESTful Boilerplate

A simple boilerplate to start your first RESTfull API with PHP Lumen

Install

$ composer install

Migration

$ php artisan migrate:refresh --env=local

Usage

Run server

$ php -S 127.0.0.1:8000 -t public

Testing API

This examples was tested using cURL on terminal, but also it’s possible to test on your browser directly or using Postman.


$ curl -I http://localhost:8000/api/v1/book

$ curl -v -H "Accept:application/json" http://localhost:8000/api/v1/book/2

More routes at routes.php file.

License

MIT license

© 2016 José Luis Quintana