yab/crypto
yab/crypto is a Laravel/PHP package that provides cryptographic helpers for encrypting, decrypting, hashing, and verifying data. It offers a simple, configurable API that integrates with Laravel's service container, making secure crypto operations easier to use across applications.
encrypt/decrypt/hash/sign). Engineering can borrow the ergonomics without taking on the maintenance liability, which is a cheap way to improve developer experience on an otherwise boilerplate-heavy task.Crypt, libsodium, phpseclib, or a managed KMS) or an explicitly resourced internal fork with a named owner and a security review slot.Consider it only when:
Look elsewhere when:
illuminate/*/PHP constraints likely block modern Laravel outright.Crypt and sodium_*.Preferred alternatives to evaluate first: Laravel's built-in Encrypter/Crypt facade, ext-sodium directly, phpseclib/phpseclib, and a managed KMS (AWS KMS, GCP KMS, HashiCorp Vault) for key custody.
For executives (one paragraph): We evaluated yab/crypto, a Laravel cryptography helper library, as a candidate dependency for encryption and signing features. It is MIT-licensed and free, but it is archived with negligible adoption (10 stars, zero dependent projects) and no active maintainer. That means no security patching — unacceptable for code that handles keys and sensitive data. Recommendation: do not adopt. Laravel's built-in encryption and PHP's standard libsodium extension cover the same ground with first-party support, so there is no capability gap and no licensing cost either way. The only decision required is whether to invest a small amount of engineering time — likely a few days — in thin internal helpers, and to scope key rotation in from the start.
For engineering (summary): It is a facade wrapper around PHP crypto primitives for Laravel/Lumen, structurally idiomatic but architecturally redundant with the framework. Archived, unmaintained, unvalidated — no adversarial review, no production hardening, and likely blocked by composer.json constraints on modern Laravel/PHP. We are not taking the dependency. Two options: (1) implement equivalent helpers over Illuminate\Encryption\Encrypter and sodium_* — a few days of work and fully ours; or (2) fork the MIT source if its API shape genuinely saves time, in which case we own it, pin it, name a maintainer, and route it through security review. Either way, define the EncryptionService boundary first and design the key-rotation path before writing a single ciphertext — the package does not give us that. Treat this as a one-day spike and close it out; the low health score (0.3) is the correct read, and the high "opportunity" score reflects a tidy small repo rather than a capability we should adopt.
How can I help you explore Laravel packages today?