Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Credentials Laravel Package

graham-campbell/credentials

A Laravel package by Graham Campbell for managing application credentials. It offers a simple, configurable way to store and retrieve sensitive values such as API keys, tokens, and passwords, helping keep them organized and out of your codebase. Integrates smoothly with Laravel's container and confi...

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy vs. borrow for credential and secret handling. This package is a worked example of a Laravel-native credential store: a HasCredentials trait on Eloquent models, encrypted-at-rest values, a get/set API, and a migration-ready schema. It gives engineering and product a concrete reference point for scoping "we build it," "we adopt Socialite/Sanctum plus a secrets manager," or "we fork this," which is the actual decision in front of you.
  • Whether "manage API keys / connected accounts" becomes a product surface. Centralizing API keys, tokens, and per-tenant secrets behind an encrypted store — instead of scattering them across .env files and config — is a prerequisite for any self-serve credential UI. This package scopes that capability cheaply enough to decide whether to expose it, and what the security posture of that surface must be.
  • Identity and credential data model. Attaching multiple credentials to one application user is the shape most products eventually need — linkable GitHub + Google + email/password accounts, per-device tokens, per-tenant secrets. Getting the many-credentials-to-one-user schema right is the expensive, hard-to-reverse part; this package is a useful spec for that shape even if you never install it.
  • Onboarding funnel bets. Fewer passwords and fewer fields is a conversion play. Social sign-in and token-based access can be scoped cheaply enough to A/B test signup completion and activation rather than debate it in a planning meeting.
  • Developer-audience growth loops. For dev-tool products, "Sign in with GitHub" and "create an API token" are both authentication and a lightweight profile/permissions import — usable to gate features on org membership or scoped token access.
  • Legacy modernization sequencing. If the estate includes Laravel 5.x apps, this package sits directly on the auth-modernization workstream and helps size the cost of deferring the upgrade — usually the more expensive number.

When to Consider This Package

Consider it when:

  • You are on a Laravel 5.x-era codebase and cannot move the framework as part of this feature.
  • You need multiple credential types attached to one user — OAuth provider identities and long-lived API tokens — stored encrypted rather than in plaintext config.
  • The team is small, the need is conventional, and a config-driven integration beats writing credential plumbing from scratch.
  • You are prepared to vendor or fork it and own it — treat it as source code you adopt, not a dependency you consume. Budget from day one for a security review, a named owner, patching, and a dated deprecation plan.

Look elsewhere when:

  • You are on Laravel 8+. Use first-party Socialite for OAuth and Sanctum/Passport for tokens; the maintenance and upgrade story is categorically better.
  • You need provider breadth, token refresh, scoped access, or provider-specific quirks — Socialite Providers covers that with an active community.
  • You have enterprise SSO/SAML/OIDC requirements. This is consumer-style auth, not workforce identity.
  • You have compliance obligations (SOC 2, PCI, a formal security review). An unmaintained auth or secrets dependency with no CVE response path is a finding waiting to happen.
  • You need the product surface around auth — registration UX, account linking, email verification, MFA, session/device management, revocation UI. This handles the handshake and storage; the rest is yours.
  • Your clients are SPA or mobile — you want Sanctum/Passport plus a first-party flow, not a server-rendered driver.
  • Scope is unresolved. Public descriptions describe three different things — a secrets vault, a token auth driver, and OAuth/social login with a polymorphic identities table. A PM cannot commit roadmap or engineering time against a package whose surface area is contested by its own docs. Resolve it by reading composer.json, the service provider, migrations, and config before anything else.

Signal read: zero stars and zero dependents don't disqualify it as a reference implementation, but they do disqualify it as a runtime dependency in an authentication or secrets path. An auth library with no adopter base has no one finding its security bugs first.

How to Pitch It (Stakeholders)

For executives (30 seconds): This is a small, single-purpose Laravel library for storing and managing user credentials — social sign-in, API tokens, and app secrets — in one central, encrypted place, tied to user records. The product idea is right: it maps to signup conversion, developer onboarding, and keeping secrets out of source control. But it targets a Laravel version we should not still be running, it has no adoption and no maintenance signal, and its own documentation disagrees about what it does. My recommendation: fund the capability, not this package. Take its credential model and API as the spec, build on Laravel's first-party auth (Socialite/Sanctum) plus the platform secrets manager, and ship the same user-facing outcome on a dependency we can defend in a security review.

For engineering (the ask): Read the service provider, config, migrations, and storage pattern — do not add the dependency to a new or modern build. Step one is a one-day spike to settle what the package actually is: vault, auth driver, or OAuth. Estimate against first-party auth; the OAuth handshake is the cheap part. The non-obvious scope is credential lifecycle — issuance, one-time reveal, rotation, revocation, duplicate-identity handling, and account linking. No package gives us that, so budget for it explicitly. If a legacy Laravel 5 app forces adoption, isolate it behind an internal auth adapter, vendor-pin it, assign an owner, and set a deprecation date from day one. Migrate credential rows with hashes preserved, not re-hashed, and stage cutover behind dual-read with a tested rollback.

For the roadmap: Treat this as a conversion and developer-experience experiment, not a platform bet. Scope it to two providers or one token flow, instrument signup completion, activation, and API-key adoption, and be prepared to keep or kill it on funnel data within a quarter. The identity and credential schema we choose now is the expensive part — get the many-credentials-to-one-user shape right even if v1 ships a single provider.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource