workos/workos-php-laravel
Laravel integration for WorkOS that provides a configured singleton client, facade, and helper for easy access to the WorkOS API, including user management and SSO. Configure via API key and client ID.
Adopt it when all of the following hold:
\WorkOS\WorkOS as a singleton, so you get facade, workos() helper, and constructor injection for free, plus config publishing driven by WORKOS_API_KEY / WORKOS_CLIENT_ID. That's a day of setup work you don't write or maintain.WorkOSService removed; accessors renamed: mfa()→multiFactorAuth(), portal()→adminPortal(), rbac()→authorization(), webhook() split) → v7.0 (workos-php v6) → v8.0 (workos-php v7, Laravel 11 dropped) inside roughly four months. Expect breaking-change work at the cadence of the upstream SDK, not of your own roadmap.Look elsewhere, or skip the wrapper, when:
workos/workos-php yourself is a small amount of code and eliminates a version-coupling hop, letting you track the vendor SDK directly. With 39 stars and no public dependents, the wrapper's ecosystem gravity is low; the official workos-php client is the load-bearing artifact. (Being an official WorkOS-maintained package mitigates the usual abandonment risk — this is not an unmaintained community fork.)Mitigation either way: wrap whichever client you choose behind your own internal interface (e.g. a UserProvisioner / SsoAuthenticator boundary). Then the wrapper-vs-base-SDK question and the v8→v9 upgrade become a single-file change, and the vendor is swappable.
Executives / GTM: Enterprise deals keep hitting "do you support SAML SSO and SCIM?" Buying WorkOS closes that gap in weeks instead of quarters, and the Admin Portal means our customers' IT teams configure their own IdP — less onboarding hand-holding, fewer support tickets, faster time-to-value on big accounts. The cost is a vendor subscription, offset against the multi-month engineering effort of building and permanently maintaining identity federation ourselves. Compliance wins too: audit logs and centralized de-provisioning are direct inputs to SOC 2.
Engineering: This is the official Laravel SDK for WorkOS, MIT-licensed, maintained by the vendor, with a service provider that gives us a singleton client, a facade, a helper, and DI out of the box — configuration is two environment variables. The tradeoff is honest: it's a thin adapter over workos/workos-php, so we're adding a version-coupling layer, and it moves fast — four majors in recent months, v8 requires Laravel 12 and workos-php v7, with Beta features that can break between betas. We mitigate by pinning versions, reading changelogs before majors, and placing all calls behind our own thin interface so upgrades are contained. If we want to minimize dependencies, we can bind workos/workos-php directly for roughly a day's work — the wrapper's main benefit is convention and less boilerplate, not capability.
The ask: Approve a bounded spike — one engineer, integrate SSO + Admin Portal behind an internal interface, pin the SDK version, and return with a cost/effort estimate for SCIM and RBAC follow-ons and a vendor-lock-in assessment.
How can I help you explore Laravel packages today?