承接 boone-studios/laravel-api-keys 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boone-studios/laravel-api-keys

Composer 安装命令:

composer require boone-studios/laravel-api-keys

包简介

Prefixed, hashed API keys with scope-to-permission mapping for multi-tenant Laravel APIs.

README 文档

README

License: MIT Used by Forgebit

Prefixed, hashed API keys with scope-to-permission mapping for multi-tenant Laravel APIs. Pairs naturally with boone-studios/laravel-scoped-roles via TokenPermissionResolver.

Features

  • Brand-prefixed secrets (app_live_…) with masked display prefixes
  • Hashed storage with prefix lookup + Hash::check
  • Revocation and expiration support
  • Scope → permission bridge for unified API + dashboard authorization
  • Configurable tenant guard hook (e.g. block deleted organizations)

Requirements

  • PHP 8.2+
  • Laravel 12 or 13
  • boone-studios/laravel-scoped-roles (for token permission integration)

Installation

composer require boone-studios/laravel-scoped-roles boone-studios/laravel-api-keys
php artisan vendor:publish --tag=api-keys-config
php artisan vendor:publish --tag=api-keys-migrations
php artisan migrate

Quick start

  1. Implement ResolvesScopePermissions on your scope enum (maps read/write/admin → permission strings).
  2. Implement ResolvesEnvironmentFromTokenPrefix if you support multiple environments.
  3. Optionally implement GuardsAuthenticatedTenant for tenant availability checks.
  4. Extend BooneStudios\ApiKeys\Models\ApiKey and add your tenant relation.
  5. Register middleware: auth.api_key.

License

MIT © Boone Studios, LLC

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固