phpstan/phpstan-strict-rules
Extra strict, opinionated PHPStan rules for strongly typed PHP. Catches loose/unsafe patterns like non-boolean conditions, useless casts, non-numeric arithmetic, missing strict flags in in_array/array_search, variable overwrites in loops, and switch type mismatches.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| barryvdh/laravel-debugbar | Laravel Debugbar integrates PHP Debug Bar into Laravel, showing request timing, queries, routes, views, cache/events, and more. Easy install and configurable collectors with support for AJAX and profiling to help diagnose performance issues in development. | 19,154 | 19,453 | 1,608 | 3M | 74 | 89.3 | 64.2 | MIT | 1 day ago | |
| beste/clock | beste/clock is a lightweight PHP clock implementation for time-dependent code. It provides a simple, test-friendly way to obtain the current time, swap in fixed or mock clocks, and improve determinism across your application and automated tests. | 74 | 74 | 1 | 1M | 0 | 22.5 | 65.0 | MIT | 3 years ago | |
| beste/in-memory-cache | PSR-6 compliant in-memory cache for PHP—ideal as a lightweight default cache and for fast, predictable tests. Supports standard CacheItemPoolInterface behavior and optional PSR-20 clocks (e.g., frozen clocks) for time-based expiry testing. | 25 | 25 | 0 | 1M | 0 | 22.0 | 65.0 | MIT | 6 months ago | |
| beste/json | JSON helpers for PHP and Laravel: decode/encode, safe access, casting, and convenient manipulation of JSON strings and arrays. A lightweight utility package focused on cleaner, less error-prone JSON handling in everyday applications. | 42 | 42 | 0 | 1M | 0 | 23.2 | 65.0 | MIT | 6 months ago | |
| brianium/paratest | ParaTest runs PHPUnit tests in parallel with near zero setup. Use vendor/bin/paratest to split by TestCase or individual tests, speed up CI, and combine code coverage into one report. Provides TEST_TOKEN/UNIQUE_TEST_TOKEN for per-process isolation. | 2,460 | 2,472 | 250 | 5M | 2 | 51.5 | 54.4 | MIT | 1 day ago | |
| composer/class-map-generator | Generate PHP class maps by scanning directories to map classes/interfaces/traits/enums to file paths. Use a simple static helper or an advanced generator to scan multiple paths, sort results, and detect ambiguous class resolutions. | 200 | 201 | 21 | 5M | 0 | 27.0 | 65.0 | MIT | 1 week ago | |
| composer/composer | Composer is the de facto PHP dependency manager. Declare project requirements in composer.json, install/update packages from Packagist, and lock versions for reproducible builds. Supports private repositories and integrates with common VCS tools like Git. | 29,363 | 29,421 | 4,775 | 3M | 116 | 89.3 | 60.2 | MIT | 1 week ago | |
| composer/pcre | Type-safe wrapper around PHP’s preg_* functions. Composer\Pcre\Preg prevents silent PCRE failures, standardizes return types (PREG_UNMATCHED_AS_NULL), and improves static analysis with a PHPStan extension for regex-aware typing. | 693 | 694 | 15 | 10M | 0 | 31.4 | 65.0 | MIT | 1 year ago | |
| composer/xdebug-handler | Restart PHP CLI processes without loading Xdebug (unless xdebug.mode=off), avoiding slowdowns in tools like Composer. Creates a temporary ini with Xdebug commented out and relaunches the command, with env vars to allow Xdebug or inspect original ini paths. | 2,563 | 2,562 | 34 | 7M | 0 | 41.9 | 55.6 | MIT | 1 year ago | |
| cuyz/valinor | Valinor maps raw input (JSON/arrays) into fully typed PHP objects, validating along the way with clear, human-readable errors. Supports advanced types (PHPStan/Psalm), shaped arrays, generics, ranges, and can normalize objects back to JSON/CSV while preserving structure. | 1,499 | 1,496 | 88 | 1M | 25 | 47.5 | 58.8 | MIT | 2 weeks ago | |
| doctrine/dbal | Doctrine DBAL is a powerful database abstraction layer for PHP, providing a consistent API across drivers plus rich schema introspection and management tools. Ideal for building portable SQL queries, migrations, and database tooling beyond PDO. | 9,698 | 9,856 | 1,374 | 8M | 278 | 89.9 | 74.8 | MIT | 2 weeks ago | |
| doctrine/doctrine-bundle | Symfony bundle integrating Doctrine DBAL and ORM. Provides database abstraction, schema tools, and an object-relational mapper with DQL for powerful queries, plus configuration and tooling that fits the Symfony ecosystem. | 4,828 | 4,864 | 481 | 4M | 31 | 77.3 | 62.4 | MIT | 3 months ago | |
| doctrine/doctrine-migrations-bundle | Integrates Doctrine Migrations into Symfony apps, providing commands and configuration for versioned database schema changes. Generate, run, and rollback migrations across environments with reliable tracking and deployment-friendly workflows. | 4,306 | 4,332 | 219 | 3M | 42 | 69.8 | 65.0 | MIT | 4 months ago | |
| doctrine/inflector | Doctrine Inflector is a lightweight PHP library for common string transformations: convert words between singular and plural forms, and handle case changes. Useful for naming conventions in frameworks and tools where consistent word inflection is needed. | 11,353 | 11,390 | 137 | 13M | 10 | 59.3 | 55.6 | MIT | 7 months ago | |
| doctrine/migrations | Doctrine Migrations is a PHP library for managing database schema changes with versioned migrations. Generate, run, and roll back migrations safely across environments, track executed versions, and integrate with Doctrine DBAL/ORM for reliable deployment workflows. | 4,774 | — | 392 | — | 119 | 75.6 | 32.3 | MIT | 1 month ago | |
| doctrine/persistence | Leverage Doctrine Persistence for consistent object mapping and database interactions in PHP. Abstracts ORM logic, simplifying persistence across frameworks. Supports Doctrine ORM, DBAL, and more with unified abstractions. Ideal for scalable applications needing clean persistence patterns. | 4,051 | 4,053 | 77 | 5M | 16 | 56.2 | 57.0 | MIT | 5 months ago | |
| driftingly/rector-laravel | Community-maintained Rector extension for Laravel. Apply automated refactoring rules to upgrade Laravel (and first-party packages like Cashier/Livewire) via composer-based detection or manual version sets, helping modernize codebases safely and consistently. | 1,201 | 1,196 | 100 | 1M | 18 | 44.5 | 58.7 | MIT | 1 day ago | |
| eliashaeussler/phpstan-config | Opinionated PHPStan configuration presets and extensions by Elias Häußler. Drop-in rules and baseline settings to standardize static analysis across projects, reduce false positives, and improve code quality with minimal setup for common PHP/Laravel workflows. | 2 | 2 | 0 | 17K | 1 | 27.4 | 61.0 | GPL-3.0 | 4 months ago | |
| embed/embed | Extract rich metadata and embed code from any URL using oEmbed, Open Graph, Twitter Cards, and HTML scraping. Works with services like YouTube, Vimeo, Instagram, GitHub, and more. PHP 7.4+, cURL, PSR-17 compatible. | 2,145 | 2,172 | 319 | 262K | 70 | 66.5 | 65.4 | MIT | 10 months ago | |
| ergebnis/classy | ergebnis/classy adds convenient helpers for working with PHP classes and reflection. Generate class names, namespaces, and short names, and inspect class metadata in a clean, test-friendly way—useful for tooling, libraries, and code generation. | 38 | 38 | 4 | 64K | 0 | 26.6 | 52.2 | MIT | 3 months ago | |
| ergebnis/composer-normalize | Composer plugin that automatically normalizes composer.json formatting and ordering for consistent diffs and fewer review comments. Install as a dev dependency, allow the plugin, then run to enforce a standard structure across your project. | 1,104 | 1,108 | 36 | 1M | 11 | 38.8 | 54.2 | MIT | 2 months ago | |
| ergebnis/data-provider | Generate data providers for PHPUnit from arrays, iterables, or generators with a small, focused API. Helps build readable, reusable test datasets and named cases, reducing boilerplate when writing parameterized tests in PHP. | 28 | 28 | 0 | 37K | 1 | 23.9 | 50.5 | MIT | 7 months ago | |
| ergebnis/json | Value object for representing valid JSON strings in PHP. Create Json instances from strings or files with strict validation and clear exceptions for invalid JSON, missing files, unreadable files, or non-JSON content. Install via Composer: ergebnis/json. | 24 | 24 | 1 | 1M | 2 | 23.4 | 66.8 | MIT | 7 months ago | |
| ergebnis/json-normalizer | Normalize JSON documents with composable normalizers. Includes generic and vendor-specific normalizers for formatting, indentation, schema-based ordering, JSON encoding, chaining, callbacks, and controlling final newlines. Install via Composer and apply a Normalizer to produce consistent JSON output... | 81 | 82 | 5 | 1M | 0 | 30.4 | 67.7 | MIT | 7 months ago | |
| ergebnis/json-pointer | RFC 6901 JSON Pointer abstraction for PHP. Create, parse, and encode reference tokens from plain strings, JSON strings, or URI fragment identifiers, with helpers to output JSON-safe and URI-safe forms. Install via Composer: ergebnis/json-pointer. | 19 | 19 | 0 | 1M | 0 | 24.0 | 65.0 | MIT | 2 days ago | |
| ergebnis/json-printer | Pretty-print and re-indent JSON strings with customizable indentation (spaces or tabs). Ergebnis\Json\Printer\Printer normalizes indentation only—no escaping/unescaping—making it easy to convert minified or differently formatted JSON into a consistent style. | 90 | 91 | 2 | 1M | 0 | 26.2 | 66.8 | MIT | 7 months ago | |
| ergebnis/json-schema-validator | Validate JSON data against JSON Schema in PHP with a focus on clear, actionable errors. Built on top of justinrainbow/json-schema, it adds structured reporting and better integration for projects needing reliable schema validation in tests and runtime. | 35 | 36 | 0 | 1M | 1 | 24.2 | 65.9 | MIT | 7 months ago | |
| ergebnis/license | — | 14 | 15 | 1 | 28K | 0 | 24.0 | 53.2 | MIT | 7 months ago | |
| ergebnis/php-cs-fixer-config | Factory package for friendsofphp/php-cs-fixer configs. Provides ready-made rule sets per PHP version (5.3–8.5) and helpers to build a consistent, reusable fixer configuration for your projects. | 69 | 69 | 17 | 47K | 1 | 30.7 | 46.0 | MIT | 1 month ago | |
| ergebnis/phpstan-rules | A set of extra PHPStan rules to enforce stricter, opinionated code standards in PHP projects. Install via Composer and include rules.neon (auto via phpstan/extension-installer) to catch issues like named arguments, class design, and more. | 444 | 444 | 22 | 255K | 6 | 33.8 | 48.0 | MIT | 2 months ago | |
| ergebnis/phpunit-slow-test-detector | Detect slow PHPUnit tests with an extension delivered as a Composer package or PHAR. Configure a global maximum duration and get a report of tests exceeding the threshold after each run—ideal for catching performance regressions in your suite. | 146 | 148 | 12 | 487K | 8 | 33.2 | 62.6 | MIT | 3 weeks ago | |
| ergebnis/rector-rules | Custom Rector rules from Ergebnis to standardize and modernize PHP code. Includes sorting associative arrays and match arms, converting Faker generator property fetches to method calls, and fixing namespaced symbol references. Install via Composer for dev. | 9 | 9 | 0 | 18K | 0 | 30.3 | 52.8 | MIT | 7 hours ago | |
| erickskrauch/php-cs-fixer-custom-fixers | Custom PHP-CS-Fixer fixers by Erick Skrauch. Adds opinionated formatting rules like aligning multiline parameters, inserting blank lines around class bodies and before returns, spacing after control statements, fixing multiline if braces, ordering overrides, and Yii2 ::className() replacement. | 30 | 30 | 2 | 108K | 2 | 23.6 | 57.5 | MIT | 4 months ago | |
| esi/phpunit-coverage-check | Reads PHPUnit clover/openclover XML coverage reports and computes overall coverage percentage. Fails CI with exit code 1 when coverage drops below a configurable threshold; exits successfully when the threshold is met. Useful for enforcing minimum test coverage. | 6 | 6 | 1 | 6K | 2 | 22.5 | 48.7 | MIT | 2 months ago | |
| fidry/cpu-core-counter | Tiny PHP utility to detect CPU core count (logical or physical) with memoized results. Provides sensible defaults plus configurable “finders” per OS, parallelisation-friendly available cores, and safe fallbacks via exception handling or getCountWithFallback(). | 238 | 236 | 5 | 7M | 4 | 26.0 | 65.9 | MIT | 7 months ago | |
| fruitcake/laravel-debugbar | Integrate PHP DebugBar into Laravel with minimal setup to inspect requests, queries, views, routes, and logs in a handy toolbar. Includes collectors, timing, memory, and profiling tools to quickly find bottlenecks during development. | 19,154 | 19,148 | 1,608 | 404K | 74 | 89.9 | 52.2 | MIT | 1 day ago | |
| giggsey/libphonenumber-for-php-lite | Lite PHP port of Google’s libphonenumber for parsing, formatting, storing, and validating international phone numbers. Includes core PhoneNumberUtils only (no geolocation/carrier/short numbers). Requires PHP 8.1+ and mbstring; install via Composer. | 84 | 86 | 8 | 1M | 0 | 30.0 | 65.0 | Apache-2.0 | 1 week ago | |
| infection/extension-installer | Composer plugin bundled with Infection that automatically discovers and registers Infection extensions on install/update. Install an infection-extension package and it’s registered without manual config. Includes guidance for building extensions via composer.json metadata. | 26 | 26 | 4 | 990K | 1 | 21.4 | 65.0 | BSD-3-Clause | 4 years ago | |
| infection/infection | Infection is a PHP 8.2+ mutation testing framework that measures test suite strength by introducing small code changes (mutations) and checking if tests catch them. Integrates with common PHP test runners and provides mutation score (MSI) reporting. | 2,187 | 2,195 | 177 | 961K | 159 | 65.2 | 71.4 | BSD-3-Clause | 1 month ago | |
| jiripudil/phpstan-sealed-classes | PHPStan extension to enforce “sealed” classes in PHP: declare which classes may extend a base class and report violations during static analysis. Helps keep inheritance under control, prevent accidental subclassing, and maintain clear, stable APIs. | 35 | — | 0 | — | 1 | 20.3 | — | MIT | 1 year ago | |
| laragraph/utils | Laravel utilities for building GraphQL servers: shared primitives and helpers used by GraphQL packages. Install via Composer and use as a lightweight foundation for SDL-first (Lighthouse) or code-first (graphql-laravel) setups. | 21 | 21 | 7 | 502K | 0 | 25.1 | 65.0 | MIT | 1 month ago | |
| lcobucci/clock | PSR-20 clock implementation for PHP. Provides a simple, testable way to access the current time with interchangeable clocks like system and frozen clocks, making time-dependent code predictable and easy to unit test. | 790 | 792 | 32 | 5M | 1 | 30.3 | 61.8 | MIT | 5 months ago | |
| lcobucci/jwt | A lightweight, flexible JWT library for PHP. Create, sign, parse, and validate JSON Web Tokens with support for multiple algorithms, key types, constraints, and claims. Includes a fluent builder, token parser, and robust validation APIs. | 7,479 | 7,558 | 601 | 6M | 6 | 70.7 | 50.0 | BSD-3-Clause | 5 months ago | |
| lctrs/psalm-psr-container-plugin | Psalm plugin that improves static analysis for PSR-11 containers. Adds smarter type inference for container get/has calls so services and dependencies resolve to the right classes, reducing false positives and making container-heavy code safer to refactor. | 17 | 17 | 7 | 8K | 2 | 25.5 | 44.1 | MIT | 1 year ago | |
| league/csv | — | 3,473 | 3,625 | 346 | 5M | 2 | 57.1 | 50.7 | MIT | 3 months ago | |
| league/iso3166 | 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 | |
| league/oauth2-server | Standards-compliant OAuth 2.0 authorization server for PHP. Protect APIs with bearer access tokens, issue and refresh tokens, and support common grants (auth code, client credentials, device, implicit, password, refresh) with PSR-7 interoperability and RFC support. | 6,642 | 6,724 | 1,135 | 3M | 53 | 86.1 | 74.8 | MIT | 4 months ago | |
| localheinz/phpstan-rules | Custom PHPStan rules to enforce stricter coding standards in PHP projects. Includes ready-to-use rules.neon (auto-loaded via phpstan/extension-installer) with checks like no named arguments, class final enforcement, and more. Install via Composer as a dev dependency. | 444 | 443 | 22 | 297 | 6 | 33.8 | 6.8 | MIT | 2 months ago | |
| mayflower/mo4-coding-standard | PHP_CodeSniffer ruleset for the MO4 coding standard. Extends Symfony’s standard with extra sniffs for array formatting (alignment, multiline rules), property docblocks (@var), and lexicographically sorted use statements (configurable ordering). | 17 | 17 | 10 | 7K | 2 | 25.9 | 43.4 | MIT | 3 weeks ago | |
| meilisearch/meilisearch-php | Official Meilisearch PHP SDK: a fast, easy API client to index documents, manage settings, and run searches with Meilisearch or Meilisearch Cloud. Supports popular HTTP clients and customizable transport. | 739 | 743 | 116 | 730K | 41 | 50.1 | 72.7 | MIT | 2 months ago | |
| mll-lab/graphql-php-scalars | Custom scalar types for webonyx/graphql-php, including BigInt, Date/DateTime/DateTimeTz, Email, JSON, and IntRange for bounded integers. Drop-in types for schema definitions with strict parsing and DateTimeImmutable conversion for date scalars. | 147 | 139 | 14 | 133K | 0 | 29.9 | 48.0 | MIT | 9 months ago | |
| monolog/monolog | Monolog is a PSR-3 compatible logging library for PHP. Send logs to files, sockets, databases, and many web services via a rich set of handlers, formatters, and processors, enabling simple setups and advanced logging strategies. | 21,396 | 22,257 | 1,906 | 15M | 24 | 77.4 | 61.2 | MIT | 3 months ago | |
| nikic/fast-route | FastRoute is a high-performance PHP 8.1+ request router using compiled regular expressions. Define routes with patterns and parameters (optional segments, constraints), dispatch by HTTP method and URI, and get NOT_FOUND, METHOD_NOT_ALLOWED, or FOUND with handler and vars. | 5,263 | 5,394 | 456 | 2M | 18 | 68.3 | 51.1 | NOASSERTION | 2 years ago | |
| nunomaduro/mock-final-classes | Dev-only helper that automatically enables mocking of final classes and methods in PHP tests. Works with PHPUnit, Pest, and ParaTest by removing final keywords on the fly via dg/bypass-finals—install with Composer and it just works. | 113 | 113 | 5 | 43K | 0 | 21.1 | 41.9 | MIT | 2 years ago | |
| nunomaduro/termwind | Termwind brings Tailwind CSS-style utilities to PHP CLIs. Render styled HTML in the terminal, customize styles/colors, and build beautiful output for Laravel/Symfony commands with helpers like render(), style(), and interactive prompts like ask(). | 2,475 | 2,480 | 90 | 9M | 5 | 45.9 | 61.4 | MIT | 1 month ago | |
| openspout/openspout | OpenSpout is a fast, low-memory PHP library for reading and writing spreadsheet files (CSV, XLSX, ODS). Built for very large files, it streams data efficiently (often under 3MB RAM) and is a community-driven fork of box/spout. | 1,121 | 1,128 | 133 | 3M | 55 | 55.7 | 79.7 | MIT | 2 weeks ago | |
| pda/pheanstalk | Pheanstalk is a fully typed PHP 8.1+ client for beanstalkd 1.12+ work queues. Produce and consume jobs with clean APIs for tubes, reserve/put, touch, delete, release, and delays/timeouts—rewritten for strong static analysis. | 1,923 | 1,975 | 283 | 534K | 6 | 48.8 | 42.0 | MIT | 4 months ago | |
| pepakriz/phpstan-exception-rules | PHPStan extension that adds custom rules for analyzing exceptions. It helps catch improper throwing/catching, missing @throws annotations, and other exception-related issues to improve correctness and maintainability in PHP codebases. | 109 | 111 | 10 | 5K | 8 | 32.1 | 29.7 | — | 4 years ago | |
| pestphp/pest-dev-tools | Pest Development Tools: internal utilities and tooling used to build and maintain the Pest testing framework. Includes helpers for local development, automation, and repository workflows. For using Pest in your app, see the main Pest repository. | 9 | 9 | 7 | 5K | 0 | 0.5 | 37.2 | MIT | — | |
| phing/phing-composer-configurator | Composer plugin that installs and configures Phing from composer.json. Ensures the Phing binary and settings are set up during Composer install/update, simplifying Phing integration in PHP projects and keeping build tooling consistent. | 5 | 5 | 1 | 782 | 0 | 0.2 | 29.3 | — | — | |
| php-debugbar/php-debugbar | PHP Debug Bar adds a developer-only in-browser toolbar to PHP apps, showing profiling and request details without var_dump(). Includes collectors for time, memory, exceptions, messages, config, PDO, Monolog, Symfony components, and more; supports AJAX and saved requests. | 4,383 | 4,384 | 426 | 3M | 0 | 66.8 | 45.8 | MIT | 12 hours ago | |
| phpstan/extension-installer | 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. | 500 | 498 | 31 | 3M | 2 | 28.5 | 62.7 | MIT | 1 year ago | |
| phpstan/phpdoc-parser | PHPDoc Parser for PHPStan that parses, represents, and modifies PHPDoc blocks as an AST. Supports rich type syntax (unions, generics, shapes, callables, conditional types), constant expressions, and Doctrine annotations, with full API reference for nodes. | 1,522 | 1,525 | 71 | 9M | 8 | 42.0 | 68.6 | MIT | 2 months ago | |
| phpstan/phpstan-beberlei-assert | PHPStan extension that adds type inference for beberlei/assert, helping static analysis understand assertion-based checks. Improves accuracy of reported types after Assert::that(), Assert::string(), Assert::notNull(), and similar calls in your code. | 43 | — | 15 | — | 4 | 21.9 | 1.8 | MIT | 6 months ago | |
| phpstan/phpstan-mockery | 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. | 102 | 100 | 24 | 995K | 9 | 29.7 | 68.8 | MIT | 1 year ago | |
| phpstan/phpstan-nette | PHPStan extension for Nette Framework. Improves type inference for components, DI container, forms, presenters/sessions, Html dynamic methods, SmartObject magic properties, events, and regex-based Strings utilities. Includes optional Nette-specific rules. | 117 | 118 | 45 | 326K | 6 | 33.6 | 62.2 | MIT | 1 month ago | |
| phpstan/phpstan-phpunit | PHPStan extension for PHPUnit: improves type inference for mocks (intersection types for createMock/getMock), understands Foo|MockObject phpDocs, adds early-terminating methods to avoid undefined vars, and refines assert() types. Optional strict rules catch improper assertion usage. | 527 | 531 | 56 | 3M | 33 | 44.1 | 78.9 | MIT | 1 month ago | |
| phpstan/phpstan-symfony | PHPStan extension for Symfony that improves static analysis with precise return types and framework-specific rules. Understands container/services, parameters, controllers, request/headers, serializer, forms, messenger handlers, cache callbacks, config tree builders, and more. | 782 | 787 | 100 | 2M | 61 | 53.4 | 84.4 | MIT | 1 month ago | |
| 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. | 183 | 183 | 33 | 633K | 6 | 32.7 | 60.2 | MIT | 1 year ago | |
| promphp/prometheus_client_php | Prometheus client library for PHP with Redis or APCu-based aggregation (plus in-memory adapter). Register and update counters, gauges, histograms, and summaries via CollectorRegistry, then expose metrics in Prometheus text format for scraping. | 542 | 545 | 111 | 1M | 40 | 47.0 | 74.2 | Apache-2.0 | 2 weeks ago | |
| sabberworm/php-css-parser | Parse and manipulate CSS in PHP with a fast, flexible parser. Convert CSS into an object model, inspect and edit rules, selectors, and declarations, then render back to CSS. Useful for minifying, rewriting assets, or building CSS tooling. | 1,822 | 1,833 | 151 | 6M | 135 | 61.1 | 83.8 | MIT | 1 month ago | |
| sabre/event | Lightweight PHP library for event-driven development: EventEmitter, promises, an event loop, and coroutines. Designed for building asynchronous, event-based applications. Documentation at sabre.io/event. Requires PHP 7.1. | 352 | 365 | 24 | 481K | 4 | 30.6 | 52.7 | BSD-3-Clause | 1 year ago | |
| sabre/http | sabre/http is a lightweight toolkit for working with HTTP in PHP. It wraps superglobals and output functions into extendable, mockable Request and Response objects, making it easier to read request data and send headers/body consistently across your app. | 190 | 197 | 59 | 257K | 5 | 33.3 | 53.6 | BSD-3-Clause | 7 months ago | |
| sabre/uri | Lightweight, RFC3986-compliant PHP URI utility library. Resolve relative URLs, normalize for comparisons, parse/build (like parse_url with Windows path edge cases), and split URIs into dirname/basename. Fully unit tested and inspired by Node’s URL APIs. | 293 | 304 | 20 | 701K | 3 | 31.2 | 56.6 | BSD-3-Clause | 1 week ago | |
| seld/signal-handler | Lightweight PHP signal handling for CLI apps. Provides a simple API to register handlers for POSIX signals, integrate with event loops, and reliably dispatch callbacks. Ideal for daemons, workers, and long-running processes that need clean shutdowns. | 182 | 183 | 3 | 2M | 0 | 22.8 | 65.0 | MIT | 2 years ago | |
| shipmonk/coding-standard | ShipMonk’s PHP coding standard built on PHP_CodeSniffer and Slevomat rules. Install as a dev dependency, add a phpcs.xml.dist referencing ShipMonkCodingStandard, then run phpcs to check code and phpcbf to auto-fix issues. | 1 | 1 | 1 | 11K | 0 | 21.8 | 60.4 | MIT | 3 weeks ago | |
| shipmonk/composer-dependency-analyser | Fast, zero-dependency tool to analyze Composer dependencies. Detects unused, shadowed, and misplaced packages/extensions by scanning your autoload paths. Works out of the box, highly configurable, and very performant (15k files in ~2s). Compatible with PHP 7.2–8.5. | 609 | 604 | 13 | 569K | 17 | 34.2 | 55.5 | MIT | 4 months ago | |
| shipmonk/coverage-guard | Enforce PHP code coverage in CI by targeting specific core methods/blocks instead of overall %. Legacy-friendly: enforce only new/changed code via git patch. Lightweight (nikic/php-parser), extensible rules, easy CLI to check PHPUnit Clover reports. | 54 | 54 | 0 | 8K | 0 | 21.4 | 35.5 | MIT | 3 months ago | |
| shipmonk/dead-code-detector | PHPStan extension that detects unused PHP code: dead methods, properties, constants, and enum cases. Finds dead cycles and transitive dead members, can flag dead tested code, supports popular frameworks (e.g., Symfony), and offers customizable usage providers with optional auto-removal. | 419 | 414 | 20 | 353K | 6 | 33.7 | 49.5 | — | 1 day ago | |
| shipmonk/name-collision-detector | Fast CLI tool to detect duplicate names in PHP code: classes, interfaces, traits, enums, functions, and constants defined multiple times in the same namespace. Scans thousands of files in seconds, supports config/excludes, exits non-zero on collisions. | 34 | 36 | 2 | 222K | 0 | 21.1 | 61.8 | MIT | 2 years ago | |
| shipmonk/phpstan-baseline-per-identifier | Split a PHPStan baseline into multiple NEON files grouped by error identifier, with a loader include. Generate baseline as usual, then run split-phpstan-baseline to organize ignores per identifier for easier reviews and maintenance. | 91 | 93 | 5 | 127K | 1 | 24.0 | 51.0 | — | 4 months ago | |
| shipmonk/phpstan-dev | 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 | 9K | 0 | 22.2 | 49.4 | MIT | 2 months ago | |
| shipmonk/phpstan-rules | 40 super-strict PHPStan rules from ShipMonk to close gaps even in extra-strict setups. Installs as an extension, configurable per rule (enable/disable, tweak defaults), with options like safer comparisons, enum generics checks, and more. | 151 | 152 | 24 | 103K | 1 | 31.3 | 47.4 | — | 2 days ago | |
| slevomat/coding-standard | — | 1,480 | 1,489 | 194 | 3M | 91 | 62.2 | 81.4 | MIT | 2 weeks ago | |
| spomky-labs/pki-framework | PHP 8.1+ framework for PKI: X.509 certificates, ASN.1 (X.690 DER) encoding/decoding, X.501/X.520 DN parsing, PEM (RFC 7468) support, and cryptographic/PKCS-related ASN.1 types. mbstring required; gmp/bcmath recommended. | 27 | 27 | 5 | 2M | 0 | 24.0 | 65.0 | MIT | 2 weeks ago | |
| staabm/phpstan-psr3 | PHPStan rules that detect PSR-3 logger misuse and security pitfalls: invalid placeholders, context issues, and message formatting mistakes. Works with psr/log, Monolog, Laravel (illuminate/log, LogManager), and REDAXO rex_logger. | 23 | 23 | 1 | 31K | 1 | 21.4 | 50.5 | MIT | 11 months ago | |
| typo3/coding-standards | TYPO3 Coding Standards provides shared PHP_CodeSniffer rules and tooling to enforce consistent, TYPO3-specific PHP coding conventions. Integrate with CI and local development to automatically detect style issues, improve code quality, and keep contributions uniform. | 66 | — | 15 | — | 2 | 21.4 | 0.9 | MIT | 1 year ago | |
| vincentlanglet/twig-cs-fixer | A coding standards fixer for Twig templates. Analyze and automatically format Twig files with consistent style rules, configurable presets, and CI-friendly checks to keep templates clean and readable across your project. | 335 | 335 | 36 | 617K | 5 | 33.7 | 57.1 | MIT | 1 month ago | |
| voku/portable-utf8 | High-performance UTF-8 helper library for PHP with portable polyfills for mbstring and intl features. Provides fast string operations, validation, normalization, encoding fixes, and safe text handling across environments without extra extensions. | 519 | 523 | 92 | 314K | 9 | 9.3 | 45.9 | Apache-2.0 | — | |
| webonyx/graphql-php | PHP implementation of the GraphQL specification, based on graphql-js. Build schemas, types, and execute queries/mutations in your PHP apps. Widely used, well-tested, and documented with examples and class reference. | 4,707 | 4,730 | 572 | 2M | 36 | 81.3 | 65.0 | MIT | 1 week ago | |
| wyrihaximus/phpstan-rules-wrapper | Meta-package that bundles popular PHPStan rule sets and extensions for stricter static analysis. Install via Composer and it works automatically with phpstan/extension-installer, pulling in deprecation, PHPUnit/Mockery, strict rules, dead-code detection, and more. | 6 | 6 | 0 | 28K | 1 | 29.2 | 58.5 | MIT | 1 month ago |
How can I help you explore Laravel packages today?