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

Assert Laravel Package

webmozart/assert

Webmozart Assert provides efficient PHP assertions for method input and output, throwing Webmozart\Assert\InvalidArgumentException on failure. It reduces validation boilerplate and supports clear custom error messages with consistent placeholders.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
webmozart/glob 0.91 Ant-like globbing for PHP with support for , ?, [], {}, and // to match directories. Glob filesystem paths (including stream wrappers), match globs against strings, and filter path arrays. Uses native glob() when possible; throws on invalid patterns. 256 260 16 2M 4 9.1 55.8 MIT 2 years ago
View on GitHub
atournayre/assert 0.88 — 0 0 0 13 1 1.3 15.8 MIT 3 years ago
View on GitHub
simpletest/simpletest 0.87 SimpleTest is a PHP unit testing framework with web site testing and mock objects. Install via Composer (simpletest/simpletest) for PHP 7.1+ and run its own unit and acceptance test suites; issues and community support via GitHub and Stack Overflow. 148 153 52 3K 3 4.6 18.9 LGPL-2.1 1 year ago
View on GitHub
webmozart/expression 0.87 A lightweight PHP library for building and evaluating expressions as objects. Compose comparisons and logical operators (and, or, not), then evaluate them against values for reusable validation, filtering, and rule logic without hard-coded conditionals. 212 — 10 — 1 1.5 — MIT 10 years ago
marcin-orlowski/type-asserts 0.87 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. 1 1 0 501 0 0.1 33.2 MIT 4 years ago
View on GitHub
simplesamlphp/assert 0.86 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. 7 7 3 279K 0 15.2 62.3 LGPL-2.1 3 months ago
View on GitHub
bovigo/assert 0.86 Functional-style assertions for PHP unit tests. Use assertThat(value, predicate[, description]) for readable checks with helpful failure messages. Integrates with PHPUnit via AssertionFailure extending AssertionFailedError. Requires PHP 8.3+. 13 13 5 724 1 11.5 24.9 BSD-3-Clause 11 months ago
View on GitHub
beberlei/assert 0.85 A simple PHP library of assertions and guard methods for fast, low-level input validation in business models, libraries, and application code. Failed assertions throw exceptions, eliminating if-clauses. Install via Composer: composer require beberlei/assert. 2,427 2,460 186 2M 30 50.3 64.1 NOASSERTION 4 months ago
View on GitHub
codeception/module-asserts 0.85 Codeception Asserts module adds rich assertion helpers for your tests, letting you use a wide set of PHPUnit-style assertions directly in Codeception suites. Ideal for unit, functional, and acceptance tests to keep checks readable and failures clear. 86 87 10 1M 0 13.4 59.3 MIT 10 months ago
View on GitHub
Context7
sinnbeck/laravel-dom-assertions 0.85 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
View on GitHub
phpunit/phpunit-dom-assertions 0.85 Adds expressive DOM assertions to PHPUnit for testing HTML and XML output, letting you assert elements, attributes, text content, and structure using a fluent, readable API built on Symfony's DomCrawler and CssSelector components. 29 — 13 — 1 6.3 — NOASSERTION 8 months 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
View on GitHub
k2gl/phpunit-fluent-assertions 0.85 A PHPUnit extension that adds fluent, chainable assertions to your tests, making expectations more readable and expressive while reducing verbose assertion code and keeping familiar PHPUnit workflows. 2 2 0 586 0 17.3 36.4 MIT 1 month ago
View on GitHub
codeception/lib-asserts 0.85 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
View on GitHub
testo/assert 0.85 Assertion plugin for the Testo PHP testing framework. Adds a fluent assert/expect facade, expectation lifecycle, and helpers for matching thrown exceptions. Reports comparisons through Testo’s standard pipeline. Install via Composer: testo/assert. 0 0 0 16K 0 0.0 55.3 — —
View on GitHub
Context7
nilportugues/assert 0.84 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
imanghafoori/laravel-makesure 0.84 — 21 21 3 43 1 1.0 6.5 MIT 2 years ago
View on GitHub
lastdragon-ru/lara-asp-testing 0.84 Testing utilities for integrating Lara ASP into Laravel apps. Provides helpers, fakes, and assertions to simplify writing automated tests around ASP policies, decisions, and request/response flows in your application. 0 0 0 75 0 0.0 26.0 MIT —
View on GitHub
jasonmccreary/laravel-test-assertions 0.84 Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null. 349 351 38 140K 2 17.5 38.6 — 7 months ago
View on GitHub
phpstan/phpstan-webmozart-assert 0.84 PHPStan extension for webmozart/assert that teaches PHPStan how Assert::* calls narrow types. Supports many assertions (including nullOr*/all*) so values become non-null, specific scalars, instances, arrays, etc. after validation, improving static analysis accuracy. 185 185 33 639K 5 12.3 50.1 MIT 1 year ago
View on GitHub
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console