workos/workos-php-laravel
Composer 安装命令:
composer require workos/workos-php-laravel
包简介
WorkOS PHP Library for Laravel
README 文档
README
The WorkOS library for Laravel provides convenient access to the WorkOS API from applications written in Laravel.
Documentation
See the API Reference for Laravel usage examples.
Installation
To install via composer, run the following:
composer require workos/workos-php-laravel
Configuration
Create a WorkOS configuration file by running the following:
php artisan vendor:publish --provider="WorkOS\Laravel\WorkOSServiceProvider"
The package will need to be configured with your api key and project id.
By default, the package will look for a WORKOS_API_KEY and WORKOS_CLIENT_ID environment variable.
Usage
The service provider binds an instantiated \WorkOS\WorkOS client as a singleton. Access services through the facade, helper, or dependency injection:
use WorkOS\Laravel\Facades\WorkOS; $user = WorkOS::userManagement()->getUser($id); // or $user = workos()->userManagement()->getUser($id); // or public function __construct(private \WorkOS\WorkOS $workos) {}
SDK Versioning
For our SDKs WorkOS follows a Semantic Versioning (SemVer) process where all releases will have a version X.Y.Z (like 1.0.0) pattern wherein Z would be a bug fix (e.g., 1.0.1), Y would be a minor release (1.1.0) and X would be a major release (2.0.0). We permit any breaking changes to only be released in major versions and strongly recommend reading changelogs before making any major version upgrades.
Beta Releases
WorkOS has features in Beta that can be accessed via Beta releases. We would love for you to try these and share feedback with us before these features reach general availability (GA). To install a Beta version, please follow the installation steps above using the Beta release version.
Note: there can be breaking changes between Beta versions. Therefore, we recommend pinning the package version to a specific version. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest Beta version.
We highly recommend keeping an eye on when the Beta feature you are interested in goes from Beta to stable so that you can move to using the stable version.
More Information
workos/workos-php-laravel 适用场景与选型建议
workos/workos-php-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.99M 次下载、GitHub Stars 达 37, 最近一次更新时间为 2020 年 04 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「SSO」 「sdk」 「laravel」 「workos」 「laravel 12」 「laravel 13」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 workos/workos-php-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 workos/workos-php-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 workos/workos-php-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple Single Sign-On
Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Alfabank REST API integration
AXIUM Identity Symfony Bundle - Client d'authentification centralisée OAuth2/Keycloak
Mediawiki extension that provides authentication (as a PluggableAuth plug-in) via the DiscourseConnect (SSO) Provider API of a Discourse discussion forum
A simply better OAuth2 Client
统计信息
- 总下载量: 1.99M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 37
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-11