simplesamlphp/assert
A fork of webmozart/assert that lets every assertion throw a custom exception via an extra parameter, falling back to AssertionFailedException. It also adds XML/SAML2-specific assertions for SimpleSAMLphp projects.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| konekt/enum | 0.87 | Lightweight PHP enum base class (pre-PHP 8.1) for defining value-safe constants via abstract Enum subclasses. Simple instantiation, validation and utilities, with docs and optional Laravel Eloquent integration via konekt/enum-eloquent. | 21 | 21 | 2 | 105K | 0 | 0.2 | 50.8 | MIT | — | |
| myclabs/php-enum | 0.86 | 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. | 2,718 | 2,754 | 125 | 4M | 12 | 30.1 | 47.7 | MIT | 1 year ago | |
| paillechat/php-enum | 0.86 | PHP 7+ enum library: define enums by extending Enum and declaring constants, then instantiate via static named calls (IssueType::ONE()). Instances are strict-equal singletons, work with in_array/type hints, and can convert to/from names. | 16 | 17 | 3 | 847 | 0 | 2.0 | 23.6 | MIT | 8 years ago | |
| elao/enum | 0.86 | Opinionated extensions for PHP 8.1+ native enums with readable labels, flag/bitmask enums, and extra values. Includes integrations for Symfony (Forms, HTTP Kernel arg resolver, Translation, VarDumper), Doctrine ORM/ODM, and Faker. | 327 | 327 | 29 | 46K | 15 | 25.0 | 37.3 | MIT | 6 months ago | |
| cerbero/laravel-enum | 0.85 | Cerbero Laravel Enum adds type-safe enum classes to Laravel, with validation rules, model casting, and helper methods for labels and values. A clean way to replace scattered constants with organized, reusable enum objects. | 189 | 190 | 19 | 3K | 0 | 1.5 | 16.2 | MIT | — | |
| mad-web/laravel-enum | 0.85 | A Laravel package that provides a lightweight enum implementation with model attribute casting, validation rules, translations, and helper methods for working with predefined values throughout your application. | 0 | 110 | — | 6 | — | 0.0 | 11.7 | — | — | |
| simplesamlphp/simplesamlphp-assets-base | 0.85 | Shared base asset package for SimpleSAMLphp. Contains common front-end files used by the main SimpleSAMLphp repository (e.g., CSS/JS/images) to keep assets versioned and distributed separately. | 0 | 0 | 2 | 198K | 2 | 0.5 | 55.1 | LGPL-2.1 | — | |
| 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. | 498 | 506 | 35 | 8M | 2 | 12.9 | 55.1 | BSD-3-Clause | 1 year ago | |
| simplesamlphp/xml-security | 0.85 | PHP library implementing XML signatures and encryption for the xmldsig and xmlenc standards. Built on xml-common, it offers extensible, secure APIs to sign, verify, encrypt, and decrypt XML objects, with low-level access for custom implementations. | 3 | 3 | 4 | 135K | 2 | 21.4 | 65.2 | LGPL-2.1 | 3 weeks ago | |
| php-standard-library/type | 0.84 | Runtime type validation for PHP built on the Parse, Don't Validate principle: coerce and assert unstructured input into well-typed data, with clear errors when values don't match. | 1 | 1 | 0 | 114K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| simplesamlphp/saml2-legacy | 0.84 | — | 0 | 0 | 0 | 170K | 0 | 0.0 | 55.3 | LGPL-2.1 | — | |
| bensampo/laravel-enum | 0.84 | 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,028 | 2,042 | 157 | 505K | 1 | 15.0 | 33.1 | MIT | — | |
| adrenalinkin/enum-mapper | 0.84 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| archtechx/enums | 0.84 | Modern PHP enum helpers: casting, validation, labels, and convenience methods for native enums. Add common patterns like options arrays, random values, and comparisons to make enums easier to use across Laravel apps and APIs. | 567 | 568 | 23 | 597K | 2 | 6.9 | 41.6 | MIT | 1 year ago | |
| simplesamlphp/simplesamlphp-test-framework | 0.84 | Testing framework for SimpleSAMLphp to help validate authentication and SAML flows in automated test suites. Provides tooling and fixtures to simulate IdP/SP interactions, enabling reliable integration tests for applications using SimpleSAMLphp. | 0 | 0 | 2 | 9K | 1 | 0.2 | 54.8 | LGPL-2.1 | — | |
| timeweb/phpstan-enum | 0.84 | PHPStan extension for PHP enums. Provides additional rules and type inference to catch invalid enum values and comparisons, improve static analysis around backed/unit enums, and surface enum-related bugs early in CI. | 44 | 44 | 7 | 62K | 1 | 5.1 | 43.4 | MIT | 1 year ago | |
| simplesamlphp/xml-common | 0.84 | — | 4 | 4 | 9 | 213K | 1 | 16.2 | 62.0 | LGPL-2.1 | 3 months ago | |
| spatie/laravel-enum | 0.84 | Laravel integration for spatie/enum: use Enum base class in Laravel, cast model attributes to enums (including nullable and arrays), and get Laravel-friendly behavior via custom casts and Castable support for Eloquent. | 364 | 367 | 37 | 215K | 0 | 11.3 | 38.3 | MIT | 1 year ago | |
| laudis/typed-enum | 0.84 | — | 4 | 4 | 0 | 43K | 0 | 0.0 | 54.4 | MIT | — | |
| daverandom/enum | 0.84 | Lightweight PHP enum base class: extend a single abstract class and define members as constants. Includes static helpers to validate and resolve enum names and values. Useful for simple, shared enum functionality. | 0 | 0 | 0 | 1 | 0 | 0.3 | 4.2 | MIT | 8 years ago |
How can I help you explore Laravel packages today?