dansan/php-backport
Dev tool to backport PHP source code for older runtimes (e.g., PHP 7.2+ features down to PHP 7.0). Configure directories to port, run a script on a *_bp branch, commit/push, then require the backported dev branch in Composer.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bnf/phpstan-psr-container | 0.86 | PHPStan dynamic return type extension for PSR-11 ContainerInterface. Improves type inference for $container->get() so services are typed correctly during static analysis. Install via Composer and include extension.neon (or use phpstan/extension-installer). | 13 | 13 | 4 | 208K | 1 | 0.6 | 55.2 | GPL-2.0 | 1 year ago | |
| php-static-analysis/phpstan-extension | 0.85 | 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 | |
| symfony/polyfill-php72 | 0.85 | Symfony Polyfill for PHP 7.2: backports core and mbstring functions like spl_object_id, stream_isatty, mb_ord/mb_chr/mb_scrub, utf8_encode/decode, plus PHP 7.2 constants (PHP_FLOAT_*, PHP_OS_FAMILY) and Windows VT100 support. | 4,723 | 4,743 | 5 | 4M | 0 | 23.8 | 40.7 | MIT | — | |
| symfony/polyfill | 0.85 | Symfony Polyfill backports newer PHP features and provides compatibility layers for missing extensions and functions, helping apps run across different PHP versions and configurations. It covers utilities like str_contains, array_key_first, mbstring/iconv, intl classes, UUID, and many PHP 7.2–8.x co... | 2,811 | 2,812 | 159 | 41K | 1 | 42.9 | 20.2 | MIT | 1 week ago | |
| calebdw/phpstan-laravel | 0.85 | A PHPStan extension for Laravel that teaches static analysis about Laravel’s magic, including facades, helpers, Eloquent models, and container bindings, reducing false positives and surfacing more accurate type errors in Laravel apps. | 35 | 35 | 7 | 12K | 0 | 20.4 | 40.9 | MIT | 6 days ago | |
| shipmonk/phpstan-rules | 0.85 | 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 | |
| symfony/polyfill-php70 | 0.85 | Symfony Polyfill PHP 7.0 provides compatibility shims for older PHP versions, letting modern PHP 7+ functions and features run on legacy environments. Used by Symfony components and many libraries to ensure consistent behavior across PHP versions. | 3,183 | 3,185 | 7 | 881K | 0 | 16.1 | 33.8 | MIT | — | |
| contributte/phpstan | 0.85 | Contributte PHPStan integration for Nette projects. Install via Composer and get a ready-to-use PHPStan setup tailored for Nette 3.3+ on PHP 8.2+, with docs and ongoing maintenance by the Contributte team. | 1 | 2 | 2 | 24K | 0 | 4.8 | 56.9 | MIT | 10 months ago | |
| rector/rector-downgrade-php | 0.84 | rector/rector-downgrade-php provides Rector rules for downgrading PHP code, automatically rewriting modern syntax and features into older, compatible versions. Useful for backporting projects or libraries to legacy PHP runtimes with repeatable transformations. | 44 | 45 | 28 | 40K | 0 | 1.1 | 40.7 | MIT | — | |
| phpstan/phpstan-deprecation-rules | 0.84 | PHPStan extension that reports usage of deprecated classes, methods, properties, constants, and traits. Supports custom deprecation markers and scopes, with stub files for deprecations in third-party code you don’t own. | 464 | 468 | 26 | 6M | 17 | 28.8 | 70.1 | MIT | 3 months ago | |
| symfony/polyfill-php71 | 0.84 | Symfony polyfill backporting PHP 7.1 features—like the iterable pseudo-type—to older runtimes (PHP 5.3+). It lets libraries and frameworks use newer syntax while remaining compatible with legacy PHP installations. | 25 | 25 | 1 | 5K | 0 | 0.2 | 32.1 | MIT | — | |
| spatie/7to5 | 0.84 | Abandoned. Converts PHP 7.0 code to PHP 5, useful when developing on PHP 7 but deploying to PHP 5. Provides a CLI to convert entire directories and rewrites features like anonymous classes, type hints, return types, and null coalescing. | 177 | 175 | 32 | 46 | 0 | 2.6 | 1.0 | MIT | 8 years ago | |
| php-standard-library/phpstan-extension | 0.84 | PHPStan extension for the PHP Standard Library (PSL) that teaches PHPStan about PSL types, generics, and collection APIs. It improves type inference, adds custom rules, reduces false positives, and catches PSL-specific errors during static analysis for safer, more reliable PHP code. | 24 | 24 | 7 | 66K | 14 | 12.4 | 56.8 | — | 7 months ago | |
| slam/phpstan-extensions | 0.84 | 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 | |
| bigoen/redis-bundle | 0.84 | — | 5 | 5 | 0 | 11 | 0 | 3.0 | 6.3 | MIT | 2 years ago | |
| sidz/phpstan-rules | 0.84 | sidz/phpstan-rules adds extra PHPStan rules for catching magic numbers in comparisons, assignments, function arguments, and arithmetic. Install via Composer and configure ignored numbers, numeric strings, and rule exclusions. | 30 | 31 | 4 | 29K | 0 | 23.1 | 47.7 | MIT | 1 month ago | |
| php-standard-library/fun | 0.84 | Functional programming utilities for PHP: compose and decorate functions, control execution, and build pipelines with small, reusable higher-order helpers. | 1 | 1 | 0 | 28K | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| open-southeners/extended-php | 0.84 | Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. | 0 | 0 | 0 | 286 | 0 | 7.2 | 34.0 | MIT | 1 year ago | |
| sstalle/php7cc | 0.84 | — | 1,507 | 1,456 | 121 | 1K | 20 | 18.9 | 10.6 | MIT | 9 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 |
How can I help you explore Laravel packages today?