PHPackages                             nomadnt/lumen-passport - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nomadnt/lumen-passport

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

nomadnt/lumen-passport
======================

Lumen porting of Laravel Passport

v12.4.0(1y ago)56.5k↓27.8%3[1 issues](https://github.com/nomadnt/lumen-passport/issues)MITPHPPHP &gt;=8.0CI failing

Since Nov 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nomadnt/lumen-passport)[ Packagist](https://packagist.org/packages/nomadnt/lumen-passport)[ Docs](https://github.com/nomadnt/lumen-passport)[ RSS](/packages/nomadnt-lumen-passport/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (15)Used By (0)

[![](https://camo.githubusercontent.com/5752dc6a87f0eff1a39e382082eb4d45d896dff51d8d6a221c9b821c5eef161a/68747470733a2f2f6c61726176656c2e636f6d2f6173736574732f696d672f636f6d706f6e656e74732f6c6f676f2d70617373706f72742e737667)](https://camo.githubusercontent.com/5752dc6a87f0eff1a39e382082eb4d45d896dff51d8d6a221c9b821c5eef161a/68747470733a2f2f6c61726176656c2e636f6d2f6173736574732f696d672f636f6d706f6e656e74732f6c6f676f2d70617373706f72742e737667)

[![Total Downloads](https://camo.githubusercontent.com/986b9c3135ccd82b73ca9249e4699ed8e7658d82deb16dd2d4fe085c1fca40fd/68747470733a2f2f706f7365722e707567782e6f72672f6e6f6d61646e742f6c756d656e2d70617373706f72742f646f776e6c6f616473)](https://packagist.org/packages/nomadnt/lumen-passport)[![Latest Stable Version](https://camo.githubusercontent.com/08790bcf9cc1021e8365951958d804fc169312635d1d1d0a7368861255419393/68747470733a2f2f706f7365722e707567782e6f72672f6e6f6d61646e742f6c756d656e2d70617373706f72742f762f737461626c65)](https://packagist.org/packages/nomadnt/lumen-passport)[![License](https://camo.githubusercontent.com/ea89bba82662a99afad5f9dbfb3c8ebf86f8804932928a319386125e54537103/68747470733a2f2f706f7365722e707567782e6f72672f6e6f6d61646e742f6c756d656e2d70617373706f72742f6c6963656e7365)](https://packagist.org/packages/nomadnt/lumen-passport)

Lumen Passport
==============

[](#lumen-passport)

Lumen porting of Laravel Passport. The idea come from  but try to make it transparent with original laravel passport

Dependencies
------------

[](#dependencies)

- PHP &gt;= 8.0
- Lumen &gt;= 11.0
- Laravel Passport &gt;= 12.0

Installation
------------

[](#installation)

First of all let's install Lumen Framework if you haven't already.

```
composer create-project --prefer-dist laravel/lumen lumen-app && cd lumen-app
```

Then install Lumen Passport (it will fetch Laravel Passport along):

```
composer require nomadnt/lumen-passport
```

Configuration
-------------

[](#configuration)

Generate your APP\_KEY and update .env with single command

```
sed -i "s|\(APP_KEY=\)\(.*\)|\1$(openssl rand -base64 24)|" .env
```

Configure your database connection (ie to use SQLite) This is how your .env file should looking after the changes

```
APP_NAME=Lumen
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost:8000
APP_TIMEZONE=UTC

LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=

DB_CONNECTION=sqlite

CACHE_DRIVER=file
QUEUE_CONNECTION=sync
```

Copy the Lumen configuration folder to your project

```
cp -a vendor/laravel/lumen-framework/config config
```

Update `guards` and `provider` section of your config/auth.php to match Passport requirements

```
