Weave Code
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 Enum Laravel Package

myclabs/php-enum

myclabs/php-enum brings SplEnum-style enums to PHP. Define enum classes, get autogenerated static constructors, validate values, compare instances, list possible values, and use enums as parameter/return types with extra methods—without a PHP extension.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
bensampo/laravel-enum 0.85 Laravel Enum provides a powerful enum implementation for Laravel with class-constant definitions, instantiation, casting, validation, localization, bitwise/flag enums, and an artisan generator. Not recommended for new projects—use native PHP 8.1 enums. 2,035 2,051 160 309K 1 15.1 30.1 MIT —
View on GitHub
Context7
marc-mabe/php-enum 0.85 Native PHP enum implementation via an abstract base class. Extend it to define enumerations from public constants (supports scalars, null, and arrays), create and compare enum instances, and keep a strict set of named values for safer domain modeling. 494 500 36 4M 1 32.7 63.0 BSD-3-Clause 6 months ago
View on GitHub
Deep Wiki
Context7
spatie/enum 0.79 Obsolete: PHP 8.1+ has native enums (recommended). Spatie Enum provides strongly typed, object-based enums for older PHP versions, enabling IDE-friendly static analysis and refactoring. Define enums via @method annotations and call StatusEnum::draft(). 845 848 67 1M 0 35.2 50.2 MIT 3 years ago
View on GitHub
Context7
daverandom/enum 0.79 daverandom/enum adds a lightweight enum implementation for PHP, providing type-safe sets of named values with strict validation and easy comparison. Useful for replacing magic numbers/strings in domain models, configs, and APIs. 0 — 0 — 0 20.0 — MIT 8 years ago
Context7
unleashedtech/php-coding-standard 0.66 Opinionated PHP coding standard by Unleashed Tech, built on PHP-CS-Fixer rules and presets to keep code style consistent across projects. Easy to install via Composer and integrate into CI for automated linting and formatting. 0 1 0 754 0 0.0 39.8 NOASSERTION —
View on GitHub
Context7
dms/phpunit-arraysubset-asserts 0.65 Polyfill for PHPUnit’s deprecated/removed assertArraySubset. Adds Assert::assertArraySubset() and a trait to keep existing tests working. Uses native PHPUnit behavior when available; provides the missing assertion for PHPUnit 8+ while supporting older versions. 143 144 32 509K 3 25.3 61.7 MIT 2 years ago
View on GitHub
Context7
php-standard-library/locale 0.65 PHP Standard Library Locale component providing locale-aware formatting and parsing utilities. Helps handle language/region settings, localized dates, numbers, and other internationalization tasks in PHP apps with a lightweight, straightforward API. 1 0 0 11K 0 20.6 60.5 MIT 2 weeks ago
View on GitHub
Context7
idiosyncratic/coding-standard 0.64 Idiosyncratic coding standard for all Idiosyncratic Projects, based on Doctrine Coding Standard. Adds @public-read-only for private properties exposed as read-only (e.g., via __get) and disables alignment of equals signs in assignments. 0 0 0 6 0 0.0 11.7 — —
View on GitHub
Context7
aimeos/upscheme 0.62 Database migration and schema management for Laravel, using a simple, high-level PHP DSL. Create, modify, and version tables and indexes with up/down steps, auto rollbacks, and environment-aware execution. Works standalone or with Laravel apps. 2,637 2,625 4 3K 2 13.7 4.8 LGPL-3.0 —
View on GitHub
Deep Wiki
Context7
phpcr/phpcr-api-tests 0.62 Test suite for the PHP Content Repository (PHPCR) API. Provides reusable, vendor-neutral compliance tests to validate PHPCR implementations against the specification, helping ensure consistent behavior across repositories and adapters. 21 22 21 319 6 30.9 22.9 NOASSERTION 2 years ago
View on GitHub
Context7
php-standard-library/hash 0.61 Hash utilities for PHP: cryptographic and non-cryptographic hashing via an Algorithm enum, HMAC helpers, and timing-safe string comparison. Lightweight package from PHP Standard Library for consistent, secure hashing across projects. 0 0 0 1K 0 20.6 50.2 MIT 2 weeks ago
View on GitHub
Context7
league/iso3166 0.61 PHP library providing up-to-date ISO 3166-1 country data. Look up countries by name, alpha-2, alpha-3, or numeric code and get normalized details like country name, codes, and currency information. 695 701 68 628K 9 34.4 53.0 MIT 3 months ago
View on GitHub
Context7
phpseclib/phpseclib 0.60 Pure-PHP cryptography and secure communications toolkit: SSH-2/SFTP, X.509, RSA/DSA/DH, ECDSA/ECDH, Ed25519/Curve25519, plus modern ciphers (AES/ChaCha20/Salsa20) and AEAD (GCM/Poly1305). Composer-ready, LTS branches. 5,568 5,687 906 9M 198 89.9 79.4 MIT 3 weeks ago
View on GitHub
Deep Wiki
Context7
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport