PHPackages                             bhujel/secret-header - 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. bhujel/secret-header

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

bhujel/secret-header
====================

Package for create api secret key and bind api for authenticated access

1.1.9(4y ago)2561MITCSSPHP ^7.2 | ^8.0

Since Feb 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Suryadeep-bhujel/Api-Accessor)[ Packagist](https://packagist.org/packages/bhujel/secret-header)[ RSS](/packages/bhujel-secret-header/feed)WikiDiscussions v1.0.4 Synced 1mo ago

READMEChangelogDependencies (2)Versions (22)Used By (0)

Api-Accessor
============

[](#api-accessor)

Api Accessor is package to protect your application api for laravel.If you are developing your application it will helpful for you to extend your application.

#### **Compatible for**

[](#compatible-for-)

   Laravel Version  Version     8.\* 1.\*  License
-------

[](#license)

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

### prerequisites

[](#prerequisites)

- Composer
- PHP 7.3 or 8.\*
- MySql or Mongodb
- If mongodb database in application as primary database [](https://github.com/jenssegers/laravel-mongodb)
- Laravel 8.\*
- Laravel Helpers

Installation of the package
---------------------------

[](#installation-of-the-package)

- Run the below command to install package

```
composer require bhujel/secret-header
```

Package will install inside your laravel application.

- Run the below command to copy config file inside config ```
  php artisan vendor:publish --tag=api-accessor
```

 You can make changes of your database information and requirement for your application to apply for the package processing

- After successfully publishing vendor api\_processor.php will appear in config file inside your root application. - Api Processor assets file is auto generated inside your public directory. - Now you need table to store api keys , run the below command to migrate the table, it will create access\_keys and access\_key\_usages table in your database ```
  php artisan migrate
```

-Now run the command to publish assets and check for environment variable for the application .env

```
  php artisan install:api_accessor
```

-Now your package is ready you can visit access dashboard using your {your app url}/dashboard/accessor

```
   {your app url}/dashboard/accessor
```

Access Key list is below url

```
   {your app url}/dashboard/access_keys
```

 You can add TEST or LIVE API ACCESS keys and maintain your api if required.

### Using in API

[](#using--in-api)

 You can customize and use keys on your api request

- Add on your api header to access your api. Once the package is installed you can only able to access your api after adding and managing at least on api key. 1. Add one api key with active status.
2. From api\_processor.php file inside your config dir of application has predefined keys for package. Default api access key header is

```
API-ACCESS-KEY
```

 but recomanded to setup your custom key name.

 Copy and add paste your api key to your key name header.

3. default it will resposes html on failed to access api you can manage response from handler.php file. 4. If the api key is valid and accessible then you are now able to play on your apis.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

21

Last Release

1481d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd7b94ffc60004ad0616710324abb8bf72c4a57b03a4306696fc90e78b076872?d=identicon)[Suryadeep-bhujel](/maintainers/Suryadeep-bhujel)

---

Top Contributors

[![Suryadeep-bhujel](https://avatars.githubusercontent.com/u/66874921?v=4)](https://github.com/Suryadeep-bhujel "Suryadeep-bhujel (31 commits)")

### Embed Badge

![Health badge](/badges/bhujel-secret-header/health.svg)

```
[![Health](https://phpackages.com/badges/bhujel-secret-header/health.svg)](https://phpackages.com/packages/bhujel-secret-header)
```

###  Alternatives

[jeremykenedy/laravel-roles

A Powerful package for handling roles and permissions in Laravel. Supports Laravel 5.3 up to 12.

1.0k826.8k7](/packages/jeremykenedy-laravel-roles)[jacopo/laravel-authentication-acl

Laravel authentication and ACL package with a cool admin panel

29010.3k3](/packages/jacopo-laravel-authentication-acl)[smarch/watchtower

Front-end for the Shinboi Auth system of Users / Roles / Permissions in Laravel 5

523.0k](/packages/smarch-watchtower)[nomiscz/flarum-ext-auth-wechat

Allow users to log in with WeChat

152.5k](/packages/nomiscz-flarum-ext-auth-wechat)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
