sofiakb / lumen-auth by sofiakb

A library with simple JWT authentication.
37
0
1
Package Data
Maintainer Username: sofiakb
Maintainer Contact: contact.sofiakb@gmail.com (Sofiakb)
Package Create Date: 2021-12-27
Package Last Update: 2022-06-29
Language: PHP
License: MIT
Last Refreshed: 2024-04-29 15:01:43
Package Statistics
Total Downloads: 37
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Contributors Forks Stargazers Issues MIT License

About The Library

The library allows to detect os system in PHP project.

Built With

This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

Prerequisites

  • php >= 7.4
  • laravel/laravel >= 8 ou laravel/lumen-framework >= 8

Installation

composer require sofiakb/lumen-auth

Usage

// Fichier bootstrap/app.php
$app->register(Sofiakb\Lumen\Auth\Providers\AuthServiceProvider::class);

// Fichier routes/api.php
\Sofiakb\Lumen\Auth\Auth::routes();

Ensuite, lancer la commande suivante

php artisan jwt:secret

Commands list

php artisan auth:activate # Activate auth account by username/email.
php artisan auth:clear-resets # Flush expired password reset tokens.
php artisan auth:config # Copy auth config file.
php artisan auth:deactivate # Deactivate auth account by username/email.
php artisan auth:table # Create migration for users & connections table.
php artisan auth:user:create # Create new user and save it into database.

Roadmap

See the open issues for a list of proposed features (and known issues).

License

Distributed under the MIT License. See LICENSE for more information.