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

Phpstan Webmozart Assert Laravel Package

phpstan/phpstan-webmozart-assert

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.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
php-static-analysis/phpstan-extension 0.90 A PHPStan extension for PHP projects that adds custom rules and configuration to strengthen static analysis. Integrate it with PHPStan to catch potential issues earlier, enforce coding standards, and improve overall code quality in your development workflow. 15 15 0 2K 0 0.1 30.0 MIT 1 year ago
View on GitHub
shipmonk/phpstan-dev 0.89 Utilities for developing PHPStan rules: write expected errors directly in fixture files using // error: comments and avoid brittle line-number assertions. Includes an autofix mode to generate/update inline error comments during rule development. 7 7 1 6K 1 7.2 41.5 MIT 9 months ago
View on GitHub
phpstan/phpstan-beberlei-assert 0.89 PHPStan extension for beberlei/assert. Adds improved static analysis and type inference for Assert::that and related assertions, helping PHPStan understand refined types after checks and reducing false positives in codebases using beberlei/assert. 43 44 16 131K 3 6.2 48.2 MIT 1 year ago
View on GitHub
jangregor/phpstan-prophecy 0.89 PHPStan extension for phpspec/prophecy that improves type inference in tests. It teaches PHPStan the real types returned from Prophecy workflows like prophesize(), willExtend(), and reveal(), so your revealed doubles are understood as the mocked class. 111 111 30 414K 3 18.6 53.5 MIT 8 months ago
View on GitHub
Context7
phpstan/phpstan-php-parser 0.89 PHPStan extension for nikic/php-parser that adds precise type inference for AST nodes and visitors, improving static analysis of code that parses, traverses, or manipulates PHP source. 23 23 8 19K 1 0.3 28.3 — 4 years ago
View on GitHub
voku/phpstan-rules 0.89 Additional PHPStan rules to catch risky and redundant condition logic and comparisons. Detects double negatives, PHP 8 behavior changes (0 vs ''), insane/invalid comparisons (0=='0foo', 0==='0'), and type-mismatch checks (e.g., object vs non-object). 33 33 1 7K 1 0.5 32.1 MIT —
View on GitHub
shipmonk/phpstan-rules 0.89 ShipMonk PHPStan strict rules adds about 40 opinionated, super-strict checks beyond native PHPStan, targeting gaps like unsafe comparisons, casts, and array keys. Install via Composer, include rules.neon, and disable or reconfigure any rule per project. 156 158 23 376K 1 30.2 55.9 MIT 1 month ago
View on GitHub
phpstan/extension-installer 0.89 Composer plugin that automatically discovers and installs PHPStan extensions, eliminating manual includes in phpstan.neon. Add it as a dev dependency, allow the plugin in Composer, and extensions can declare includes via extra.phpstan for auto-setup. 516 520 31 6M 1 8.2 55.2 MIT 2 years ago
View on GitHub
phpstan/phpstan-strict-rules 0.88 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
View on GitHub
marcin-orlowski/type-asserts 0.88 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
webmozart/assert 0.88 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. 7,649 7,721 168 18M 23 64.9 65.2 MIT 1 month ago
View on GitHub
phpstan/phpstan-phpunit 0.88 PHPStan extension for PHPUnit that improves mock object and assert type inference, supports MockBuilder and phpDoc intersections, and adds optional strict rules for more precise, framework-aware static analysis. 546 550 58 6M 34 44.3 79.3 MIT 4 weeks ago
View on GitHub
thecodingmachine/phpstan-strict-rules 0.88 Extra-strict PHPStan ruleset that flags risky or inconsistent PHP patterns beyond the default checks. Helps enforce cleaner, safer code by catching edge cases and enforcing best practices, with easy opt-in configuration for existing PHPStan setups. 287 289 27 54K 7 26.3 36.8 — 4 months ago
View on GitHub
slam/phpstan-extensions 0.88 PHPStan extensions with extra strict rules: unused variables, closure parameter typehints, enforce ::class notation, forbid goto, naming conventions, validate PHPUnit annotation FQCNs, and restrict access to globals/static properties in specific contexts. 71 72 13 42K 2 21.8 43.2 MIT 5 months ago
View on GitHub
ergebnis/phpstan-rules 0.88 A Composer package of PHPStan rules from ergebnis, bundled in rules.neon and auto-included via phpstan/extension-installer. Adds stricter checks such as final classes, forbidden extends, and no named arguments to complement PHPStan core and strict rules. 461 463 23 649K 1 32.5 51.0 MIT 1 week ago
View on GitHub
dave-liddament/phpstan-php-language-extensions 0.88 A PHPStan extension that adds support for extra PHP language features and type declarations, widening static analysis coverage so PHPStan understands more of your code. Helps catch bugs earlier and reduces false positives in Laravel and PHP projects. 44 45 4 25K 0 2.1 38.5 MIT 11 months ago
View on GitHub
localheinz/phpstan-rules 0.88 A Composer package of PHPStan rules from ergebnis that enforce stricter coding standards, covering areas like final classes, named arguments, and class extension. Install via Composer and include rules.neon, or let phpstan/extension-installer handle it automatically. Best layered on top of PHPStan's... 462 462 23 382 1 32.5 4.2 MIT 1 week ago
View on GitHub
phpstan/phpstan-mockery 0.87 PHPStan extension for Mockery: infers intersection types for mocks (Foo&MockInterface), understands shouldReceive/shouldHaveReceived/allows/expects, supports partial/alias/overload mocks, multiple interfaces, and proper constructor args for accurate static analysis. 110 107 25 1M 8 9.4 57.8 MIT 1 year ago
View on GitHub
rector/type-perfect 0.87 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
View on GitHub
Context7
phpstan/phpstan-doctrine 0.87 PHPStan extension for Doctrine ORM/ODM: validates DQL and QueryBuilder, infers repository magic methods and EntityManager return types, checks entity field/relationship type mismatches and mapping errors, improves query result typing, and flags proxy-related issues. 681 683 125 3M 77 57.8 87.6 MIT 1 week 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.
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
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource