PHPackages                             kasitaw/api-key - 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. [API Development](/categories/api)
4. /
5. kasitaw/api-key

ActiveLibrary[API Development](/categories/api)

kasitaw/api-key
===============

User defined api key(using custom laravel guard) to enable client communicate with server for external integration in general

v3.0.0(5y ago)297MITPHPPHP &gt;=7.2CI failing

Since Mar 28Pushed 5y agoCompare

[ Source](https://github.com/Kasitaw/api-key)[ Packagist](https://packagist.org/packages/kasitaw/api-key)[ RSS](/packages/kasitaw-api-key/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (6)Dependencies (5)Versions (9)Used By (0)

API Key Guard for Laravel
=========================

[](#api-key-guard-for-laravel)

This package makes it easy to authenticate users using user defined `api key` authentication guard with Laravel 6.0+

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

[](#installation)

API Key can be installed via composer:

```
composer require "kasitaw/api-key"

```

The package will automatically register itself.

You can publish the migration with:

```
php artisan vendor:publish --provider="Kasitaw\ApiKey\ApiKeyServiceProvider" --tag=migrations

```

After the migration has been published, run the migrations with following command:

```
php artisan migrate

```

You can publish the config file with:

```
php artisan vendor:publish --provider="Kasitaw\ApiKey\ApiKeyServiceProvider" --tag=config

```

This is the contents of the published config file:

```
