Package Data | |
---|---|
Maintainer Username: | muhammadshakeel |
Package Create Date: | 2016-01-14 |
Package Last Update: | 2016-02-08 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-17 03:05:53 |
Package Statistics | |
---|---|
Total Downloads: | 95 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 14 |
Total Watchers: | 2 |
Total Forks: | 4 |
Total Open Issues: | 0 |
Laravel API Boilerplate is a ready-to-use "starting pack" that you can use to build your first API in seconds. As you can easily imagine, it is built on top of the awesome Laravel Framework.
It also benefits from three pacakages:
With a similar foundation is really easy to get up and running in no time. I just made an "integration" work, adding here and there something that I found useful.
Done!
I've put an "AuthController" in App\Api\V1\Controllers. It supports the four basic authentication/password recovery operations:
In order to work with them, you just have to make a POST request with the required data.
You will need:
You can specify your routes in the *api_routes.php_ file, that will be automatically loaded. In this file you will find many examples of routes.
As I already told before, this boilerplate is based on dingo/api and lucadegasperi/oauth2-server-laravel packages. So, you can find many informations about configuration here and here.
However, there are some extra options that I placed in a config/boilerplate.php file.
You can create endpoints in the same way you could to with using the single dingo/api package. You can read its documentation for details.
After all, that's just a boilerplate! :)
I currently removed the VerifyCsrfToken middleware from the $middleware array in app/Http/Kernel.php file. If you want to use it in your project, just use the route middleware csrf you can find, in the same class, in the $routeMiddleware array.
I currently made this project for personal purposes. I decided to share it here to help anyone with the same needs. If you have any feedback to improve it, feel free to make a suggestion, or open a PR!