marcin-orlowski/type-asserts
A lightweight PHP library of type assertion helpers for Laravel and standalone projects, letting you validate values against expected types with simple, readable calls and clear failures.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| zjkiza/http-response-validator | 0.87 | A Laravel/PHP package for validating HTTP responses in tests. It provides assertions to verify status codes, headers, and JSON payloads, helping you write reliable integration tests with clear, expressive checks. | 0 | 0 | 1 | 105 | 0 | 20.0 | 32.9 | MIT | 1 week ago | |
| rskuipers/php-assumptions | 0.86 | PHP Assumptions is a static analysis tool that detects hidden assumptions in your code, like variables used without guarantees about their type or existence. It reports each assumption, helping you catch risky spots and improve type safety. Runs via Composer and CLI. | 164 | — | 12 | — | 9 | 3.7 | 2.6 | MIT | 1 year ago |
|
| codeception/assert-throws | 0.85 | Assert that a callable throws the expected exception without try/catch boilerplate. codeception/assert-throws adds assertThrows and assertDoesNotThrow helpers for Codeception and PHPUnit tests, with clear failure messages and optional checks on exception class and message. | 19 | 19 | 11 | 26K | 1 | 15.8 | 47.6 | MIT | 5 months ago | |
| phpstan/phpstan-strict-rules | 0.85 | Extra strict, opinionated PHPStan rules for defensive, strongly typed PHP: require booleans in conditions, strict function-call flags, numeric arithmetic operands, matching switch types, no useless casts, and safer loop variable handling. | 714 | 721 | 63 | 5M | 35 | 45.9 | 75.1 | MIT | 4 days ago | |
| romanzipp/dto | 0.85 | Lightweight data transfer objects for PHP and Laravel. Define typed properties, cast and validate values, and convert DTOs to and from arrays with ease, keeping request and response data structured and type-safe. | 12 | 12 | 1 | 337 | 1 | 0.2 | 19.7 | MIT | — | |
| illuminate/validation | 0.85 | The Illuminate Validation package provides a robust, framework-agnostic validation library for PHP. It offers dozens of built-in rules, custom rule support, nested array validation, and localized error messages, powering form and request validation in Laravel and standalone projects. | 34,987 | 199 | 12,028 | 869K | 55 | 78.2 | 54.7 | MIT | 3 days ago | |
| typhoon/type | 0.84 | Typhoon Type provides an object abstraction over PHP’s modern type system for building tools that understand complex types. Define, print (stringify), and work with array shapes, object types, non-empty lists, and more in a consistent API. | 66 | 66 | 2 | 9K | 2 | 16.0 | 32.8 | MIT | 6 months ago | |
| php-static-analysis/attributes | 0.84 | PHP attributes that let you annotate classes, methods, and properties with metadata for static analysis tools, improving type inference, purity checks, and IDE support. Lightweight, framework-agnostic, and easy to drop into existing codebases. | 94 | — | 0 | — | 0 | 0.5 | — | MIT | 1 year ago |
|
| sebastian/type | 0.84 | A collection of value objects that model the PHP type system, including simple, union, intersection, and special types. Use it to inspect, compare, and represent type information programmatically in PHP projects. | 1,503 | 1,503 | 13 | 24M | 1 | 27.4 | 62.7 | BSD-3-Clause | 2 months ago | |
| codeception/lib-asserts | 0.84 | Lightweight assertion library used by Codeception. Provides clear, dependency-free assert helpers for writing expressive tests in PHP, with informative failure messages and easy integration into any PHPUnit-style workflow. | 105 | 105 | 5 | 2M | 1 | 12.3 | 58.0 | MIT | 9 months ago | |
| zepfietje/laravel-stubs | 0.84 | — | 8 | 9 | 1 | 0 | 0 | 0.2 | — | MIT | 3 years ago | |
| rector/type-perfect | 0.84 | Type Perfect adds 10 PHPStan rules to tighten type declarations: replace empty/isset checks with instanceof for precise narrowing, prefer explicit getters over magic array access, and enforce interface signatures. Easy to enable even on legacy code; improves reliability fast. | 105 | 105 | 7 | 403K | 0 | 10.5 | 43.6 | MIT | 3 months ago | |
| pedrosalpr/laravel-api-problem | 0.84 | Laravel API Problem brings RFC 7807/9457 problem details to your Laravel API, helping you return consistent, standards-compliant JSON error responses. Document, debug, and consume API errors more easily with structured problem payloads and simple helpers. | 11 | — | 1 | — | 1 | 0.4 | 0.4 | MIT | — | |
| marcin-orlowski/phpunit-extra-asserts | 0.83 | A collection of extra assertions for PHPUnit that helps make test suites more expressive and readable. Add clearer, reusable checks for common test scenarios, reduce custom assertion code, and get more informative failures in PHPUnit-based projects. | 3 | 3 | 0 | 623 | 0 | 0.0 | 30.3 | MIT | 2 years ago | |
| kumaravelk011/model-validation | 0.83 | A Laravel package for validating Eloquent models with rules defined alongside the model. Keep validation close to your data layer, reuse Laravel’s validator, and catch invalid attributes before saving or updating records. | 33 | — | 5 | — | 0 | 15.5 | — | MIT | 3 months ago | |
| php-standard-library/type | 0.83 | 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 | |
| darinlarimore/statamic-calendar-links | 0.83 | Statamic addon that turns entry date fields into add-to-calendar links. Generates Google Calendar, Outlook, and downloadable .ics URLs so visitors can save events in one click, using a simple template tag with configurable event details like title, location, and description. | 0 | 0 | 0 | 9 | 0 | 0.4 | 13.8 | NOASSERTION | 1 year ago | |
| nilportugues/assert | 0.83 | A lightweight PHP assertion library for validating values and enforcing invariants. It provides expressive, chainable assertions that fail with clear exceptions, helping you catch invalid input early and make code contracts explicit and easy to read. | 10 | — | 3 | — | 0 | 0.1 | — | — | 10 years ago |
|
| atournayre/assert | 0.83 | — | 0 | 0 | 0 | 13 | 1 | 1.3 | 15.8 | MIT | 3 years ago | |
| sinnbeck/laravel-dom-assertions | 0.83 | Extra DOM assertion helpers for Laravel HTTP tests, giving you finer control than assertSee and friends: assert on elements, forms, selects, datalists, and text, with quick existence checks and Livewire/Blade support. | 105 | 107 | 12 | 19K | 0 | 31.4 | 36.5 | MIT | 1 week ago |
How can I help you explore Laravel packages today?