Download .zip |
Info | Example | View files (57) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-01-30 (15 hours ago) | 89% | 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
Files |
File | Role | Description | ||
---|---|---|---|---|
app (1 file, 9 directories) | ||||
bootstrap (1 file) | ||||
config (3 files) | ||||
database (3 directories) | ||||
public (2 files) | ||||
resources (2 directories) | ||||
tests (2 files) | ||||
.env.example | Data | Auxiliary data | ||
artisan | Example | Example script | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
server.php | Appl. | Application script |
Files | / | app |
Files | / | app | / | Events |
File | Role | Description |
---|---|---|
Event.php | Class | Class source |
ExampleEvent.php | Class | Class source |
Files | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
Controllers (4 files) | ||||
Middleware (2 files) | ||||
routes.php | Example | Example script |
Files | / | app | / | Http | / | Controllers |
File | Role | Description |
---|---|---|
AdminController.php | Class | Class source |
AdminUserController.php | Class | Class source |
Controller.php | Class | Class source |
UserController.php | Class | Class source |
Files | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
Authenticate.php | Class | Class source |
ExampleMiddleware.php | Class | Class source |
Files | / | app | / | Jobs |
File | Role | Description |
---|---|---|
ExampleJob.php | Class | Class source |
Job.php | Class | Class source |
Files | / | app | / | Providers |
File | Role | Description |
---|---|---|
AppServiceProvider.php | Class | Class source |
AuthServiceProvider.php | Class | Class source |
EventServiceProvider.php | Class | Class source |
Files | / | config |
File | Role | Description |
---|---|---|
app.php | Aux. | Auxiliary script |
oauth2.php | Conf. | Configuration script |
secrets.php | Aux. | Auxiliary script |
Files | / | database | / | migrations |
File | Role | Description |
---|---|---|
2014_04_24_110151_...th_scopes_table.php | Class | Class source |
2014_04_24_110304_...th_grants_table.php | Class | Class source |
2014_04_24_110403_...nt_scopes_table.php | Class | Class source |
2014_04_24_110459_...h_clients_table.php | Class | Class source |
2014_04_24_110557_...endpoints_table.php | Class | Class source |
2014_04_24_110705_...nt_scopes_table.php | Class | Class source |
2014_04_24_110817_...nt_grants_table.php | Class | Class source |
2014_04_24_111002_..._sessions_table.php | Class | Class source |
2014_04_24_111109_...on_scopes_table.php | Class | Class source |
2014_04_24_111254_...uth_codes_table.php | Class | Class source |
2014_04_24_111403_...de_scopes_table.php | Class | Class source |
2014_04_24_111518_...ss_tokens_table.php | Class | Class source |
2014_04_24_111657_...en_scopes_table.php | Class | Class source |
2014_04_24_111810_...sh_tokens_table.php | Class | Class source |
2015_05_25_095902_create_users_table.php | Class | Class source |
Files | / | database | / | seeds |
File | Role | Description |
---|---|---|
DatabaseSeeder.php | Class | Class source |
OAuthSeeder.php | Class | Class source |
UserSeeder.php | Class | Class source |
Files | / | tests |
File | Role | Description |
---|---|---|
AdminTest.php | Class | Class source |
TestCase.php | Test | Unit test 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.