Laravel 5.5 Lumen 5.5 RESTful API with OAuth 2.0

image

Overview

This article is for the one’s who is already working with PHP/Laravel or who wants to quick start developing RESTful API with OAuth2.0 security using Laravel 5.5 Lumen 5.5.

Here I’m sharing the Live demo and Source code of a RESTful API with OAuth2 authentication/security developed using Laravel Lumen 5.5.0. You can use this if you want to quick start developing your own custom RESTful API by skipping 95% of your scratch works. Hopefully this will save lot of your time as this API includes all the basic stuffs you need to get started.

Developer Dashboard

This API also includes a developer dashboard with the API documentation which is developed in Laravel 5.5. This will be useful to manage your developers access to the API documentation.

Why Laravel Lumen?

image

In short, It’s fast, light, and easy!. Lumen eliminates all the unnecessary and heavy features in Laravel and load only components like Eloquent, middleware, authentication & authorization, …etc which keeps it light and fast. Lumen focuses on building Stateless APIs. Therefore, sessions and views are no longer included in the latest version of Lumen.

What is a RESTful API?

REST is an architectural style for building APIs. It stands for “Representational State Transfer”. It means when we build an API, we build it in a way that HTTP methods and URIs mean something, and the API has to respond in a way that’s expected.

Something about OAuth 2.0

image

The OAuth 2.0 is an authorization framework which enables a third-party application to obtain limited access to an HTTP service.

DEMO

http://laravel-lumen-rest.dockerboxes.us
Login: developer/developer

Source Code

https://github.com/sirinibin/laravel-5.5-lumen-5.5-with-OAuth2

Official Documentation

Documentation for this RESTful API can be found on the Lumen RESTful API with OAuth2 Documenation.

Security Vulnerabilities

If you discover a security vulnerability within this API, please send an e-mail to Sirin k at sirin@nintriva.com. All security vulnerabilities will be promptly addressed.

Installation instructions

https://github.com/sirinibin/laravel-5.5-lumen-5.5-with-OAuth2

– Sirin K

laravel lumen resftful APi OAuth2.0