承接 cline/bearer 相关项目开发

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

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

cline/bearer

Composer 安装命令:

composer require cline/bearer

包简介

Stripe-style typed API tokens with groups, environments, and audit logging for Laravel

README 文档

README

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads

Stripe-style typed API tokens with groups, environments, and audit logging for Laravel. Features conductor-based API, token rotation, revocation strategies, seamless Sanctum integration, and optional recoverable legacy tokens for systems that must display keys after creation.

Requirements

Requires PHP 8.5+ and Laravel 13+

Installation

composer require cline/bearer

If you want Bearer to delegate runtime ability checks to Warden, install Warden in your application and switch the authorization driver:

composer require cline/warden
// config/bearer.php
'authorization' => [
    'default' => env('BEARER_AUTHORIZATION_DRIVER', 'array'),
],

array remains the default provider. warden requires both the token's stored ability scope and the token owner's Warden permission to pass.

Bearer also honors the configured morph key map when hydrating token ownership relations. If your User, Organization, or other owner model uses ulid or uuid as its primary key, configure the relevant entry in morphKeyMap or enforceMorphKeyMap and Bearer will resolve owner, context, boundary, and the corresponding HasAccessTokensTrait relations correctly.

As of 6.0.0, the default bearer guard is stateless. Routes protected with auth:bearer authenticate only from bearer tokens. If you need the previous session-first behavior for first-party browser flows, register a guard that uses the stateful-bearer driver instead.

Documentation

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固