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

Php Jwsign Laravel Package

yakeing/php_jwsign

yakeing/php_jwsign is a lightweight PHP library for creating and verifying JSON Web Signature (JWS) tokens. It provides straightforward APIs for signing payloads, validating signatures, and adding JWS-based authentication or data integrity checks to PHP applications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for signing/verification. JSON Web Signature (JWS) is commodity infrastructure, not a differentiator. The only real decision is which maintained implementation to standardize on — and this package is not a candidate for that slot.
  • Roadmap scoping. Any planned feature that emits or validates signed payloads — webhook signing, API tokens, SSO/OIDC integration, license keys, tamper-evident audit records, signed download URLs — falls in this capability area. This package informs the problem statement, not the solution.
  • Security risk register. Adopting an archived cryptography dependency is a standing, unfixable line item: no CVE response, no deprecation path for weak algorithms, no PHP-runtime compatibility guarantees. That is a product-level risk decision, not just an engineering preference.
  • Dependency policy. A useful forcing function: the evaluation justifies a written guardrail ("no archived packages on security boundaries") that prevents this class of decision recurring across teams.
  • Legacy containment vs. migration. If the package is already in a shipped codebase, the decision it supports is freeze, wrap, and schedule replacement — not extend, not fork, not build on top of.
  • Non-decision: reading the source to understand JWS compact serialization is fine for a spike, but it should not be logged as a decision driver.

When to Consider This Package

Adoption criteria are deliberately narrow, because the signals here are uniformly negative: archived repository, last release August 2019, ~35 stars, zero dependents, and a one-line description ("a class of data encryption and decryption") that doesn't specify supported algorithms, key types, or the JWS serializations it handles.

Consider it only when all of the following hold:

  • The codebase already depends on it, migration is scheduled, and the immediate goal is containment — pin the version, wrap it behind your own Signer/Verifier interface, and treat the underlying code as frozen.
  • The payloads are non-sensitive, internal-only, and short-lived (a throwaway demo or an isolated internal spike), and you accept unpatched risk in writing.
  • You are doing source-level research on JWS wire format and will not ship the dependency.

Look elsewhere in essentially every other case — and specifically when you need:

  • Any production or security boundary, or a regulated/audited environment (SOC 2, PCI, ISO 27001) where dependency provenance and patch cadence are in scope.
  • Algorithm agility: RS256/ES256/EdDSA, key rotation, JWKS discovery, kid handling. Verify this yourself before assuming coverage — the README won't tell you.
  • Maintained support and PHP 8.x compatibility. A 2019 release predates meaningful PHP 8 validation and six years of ecosystem crypto fixes.
  • Documentation, community, or a vendor you can escalate to.

Viable replacements to evaluate: web-token/jwt-framework (most complete, algorithm-agile), firebase/php-jwt (simple, widely deployed), lcobucci/jwt (clean API, well-maintained). For new designs where you control both ends, consider PASETO or libsodium instead of JWS entirely. Whatever you pick, score it against the same checklist that disqualified this one: release recency, open advisories, algorithm support, dependents, and license.

License note: MPL-2.0 is file-level copyleft. Consuming it unmodified is fine for commercial products; any modifications to covered files must be published. Acceptable, but worth a legal line-item if forking is ever proposed — and forking an abandoned crypto library is a decision to own permanently.

How to Pitch It (Stakeholders)

For executives (30 seconds): We evaluated an open-source library for signing and verifying data — the mechanism behind API tokens and webhook authenticity. It has been archived by its author, last shipped in 2019, and has no meaningful user base. Using it would mean putting signature verification and key material on code nobody maintains and nobody patches. Signing is a solved, commodity problem; the cost of using a maintained library instead is negligible, and the cost of a signature-verification defect is not. Recommendation: do not adopt; standardize on a maintained alternative and add a dependency policy that blocks archived packages on security boundaries.

For engineering: The disqualifiers are structural, not fixable by us. Archived repo → no CVE response path. Last release 2019-08-06 → unverified against PHP 8.x and six years of crypto-library fixes. ~35 stars / 0 dependents → no ecosystem exercising it in production. Vague description → algorithm support, key handling, and serialization coverage are all undocumented and must be verified by reading source, which is a poor use of time when maintained alternatives exist. MPL-2.0 means any fork we create becomes a permanent maintenance obligation — avoid.

The ask: Approve a ~2–3 day switch to web-token/jwt-framework or firebase/php-jwt (choice depends on whether we need multi-algorithm and JWKS support), plus a written dependency guardrail. If this package is already in production, approve the containment-and-migration ticket separately so it doesn't sit on the risk register indefinitely.

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.
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log