![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-01-30 (15 hours ago) ![]() | ![]() ![]() ![]() ![]() ![]() | Total: 74 This week: 9 | All time: 8,655 This week: 125![]() |
Version | License | PHP version | Categories | |||
lumen-starter-pack 1.0.1 | The PHP License | 5 | PHP 5, User Management, Libraries, We... |
Collaborate with this project | Author | ||||||||
lumen-starter-pack - github.com Description This package can implement a OAuth 2 based REST API server. Recommendations Suitable out of the box REST API |
|
This package can implement a OAuth 2 based REST API server.
It implements a module on top of Lumen Laravel micro-framework to provide a REST API based on OAuth2 authorization.
The package also provides a users module with permission control that can create, update, delete and list users.
How To
`
composer install
php artisan migrate
php artisan db:seed
`
Thats it!Routes
-------------------------------------------------------------------------------------
POST => /login Required Params:email,password
POST => /refresh-token
-------------------------------------------------------------------------------------
Required Params : access_token
GET => /admin/users AdminUserController@index
POST => /admin/users AdminUserController@store
GET => /admin/users/{user_id} AdminUserController@show
PATCH => /admin/users/{user_id} AdminUserController@update
DELETE => /admin/users/{user_id} AdminUserController@destroy
-------------------------------------------------------------------------------------
GET => /users Required params: access_token | UserController@index
-------------------------------------------------------------------------------------
*Look inside to Unit tests to understand more*
Users Table Schema
Schema::create('users', function(Blueprint $table)
{
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password', 60);
$table->boolean('is_admin',0);
$table->rememberToken();
$table->timestamps();
});
User Login Informations
user@user.com
user1234
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Example | Example script | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation | ||
![]() ![]() |
Appl. | Application script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.