PHPackages                             bytesfield/key-manager - 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. [Security](/categories/security)
4. /
5. bytesfield/key-manager

ActiveLibrary[Security](/categories/security)

bytesfield/key-manager
======================

Api Key Management for generating public and private key pairs storing and retrieving the master encryption key.

v1.0.2(4y ago)1291MITPHPPHP &gt;=7.4

Since May 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bytesfield/key-manager)[ Packagist](https://packagist.org/packages/bytesfield/key-manager)[ Docs](https://github.com/bytesfield/key-manager)[ RSS](/packages/bytesfield-key-manager/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

[![Key Manager Preview](/images/preview.jpg)](/images/preview.jpg)

Key Manager
===========

[](#key-manager)

[![Version](https://camo.githubusercontent.com/a38af6661e58c5c9054187c3ca545a6b1c5b1463b3e478be336dbf31617234d4/68747470733a2f2f706f7365722e707567782e6f72672f62797465736669656c642f6b65792d6d616e616765722f76)](//packagist.org/packages/bytesfield/key-manager)[![License](https://camo.githubusercontent.com/9d4d8e087622bd343bd12cbfb601b5b5fecbc091c3ca28f3585da978ff4423d5/68747470733a2f2f706f7365722e707567782e6f72672f62797465736669656c642f6b65792d6d616e616765722f6c6963656e7365)](//packagist.org/packages/bytesfield/key-manager)[![StyleCI](https://camo.githubusercontent.com/c552b9a3c41480620c8fa2778b14605d003ff21b745df5e82b240c5e999253d3/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3336383139383735332f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/368198753?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5485711bbc672b9627cd5cc4b69e7c702c67dd7855ead927927f567a5dea9cf5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62797465736669656c642f6b65792d6d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/bytesfield/key-manager/?branch=main)[![Build Status](https://camo.githubusercontent.com/eb5fb54e2bcec12edcaa3cdf3e7469fae1a1489d04e1281c12ad9e652464909e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62797465736669656c642f6b65792d6d616e616765722f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/bytesfield/key-manager/build-status/main)[![Total Downloads](https://camo.githubusercontent.com/d6f49ab79fcf01892f35a55e7b89979d7bf998ac1f76290daa32d8b136ff910b/68747470733a2f2f706f7365722e707567782e6f72672f62797465736669656c642f6b65792d6d616e616765722f646f776e6c6f616473)](//packagist.org/packages/bytesfield/key-manager)

Key Manager is a Laravel Package for generating public and private key pairs storing, retrieving and authenticating requests using the private key value.

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

[](#installation)

[PHP](https://php.net) 7.4+ and [Composer](https://getcomposer.org) are required.

To get the latest version of Key Manager, simply require it

```
composer require bytesfield/key-manager
```

Or add the following line to the require block of your `composer.json` file.

```
"bytesfield/key-manager": "1.0.*"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once KeyManager is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

```
'providers' => [
    ...
    Bytesfield\KeyManager\KeyManagerServiceProvider::class,
    ...
]
```

> If you use **Laravel &gt;= 5.5** you can skip this step and go to [**`configuration`**](https://github.com/bytesfield/key-manager#configuration)

- `Bytesfield\KeyManager\KeyManagerServiceProvider::class,`

Also, register the Facade like so:

```
'aliases' => [
    ...
    'KeyManager' => Bytesfield\KeyManager\Facades\KeyManager::class,
    ...
]
```

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

[](#configuration)

You can publish the configuration file using this command:

```
php artisan key-manager:install
```

This publishes a configuration-file named `keymanager.php` with some sensible defaults will be placed in your `config` directory and two migration files `create_key_clients_table` and `create_key_api_credentials_table` placed in your `database\migrations` directory:

```
