benmorel/weakmap-polyfill
Polyfill for PHP WeakMap, providing weakly-referenced key/value storage for older PHP versions. Store data associated with objects without preventing garbage collection. Useful for caches, metadata, and object maps in libraries and frameworks.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| symfony/polyfill-php80 | 0.80 | Backport of PHP 8.0 core features for older runtimes. Adds Stringable, fdiv, ValueError/UnhandledMatchError, FILTER_VALIDATE_BOOL, get_debug_type, PhpToken, preg_last_error_msg, str_contains/starts_with/ends_with, and get_resource_id. | 1,724 | 1,731 | 26 | 19M | 0 | 24.6 | 61.8 | MIT | 3 months ago | |
| symfony/polyfill-php83 | 0.78 | Symfony Polyfill for PHP 8.3 features on older runtimes. Provides json_validate, Override attribute, mb_str_pad, str_increment/str_decrement, Date* exceptions, SQLite3Exception, and updated ldap/stream context APIs. | 428 | 433 | 6 | 13M | 0 | 24.6 | 64.9 | MIT | 1 week ago | |
| ostrolucky/polyfill-newrelic | 0.77 | Composer polyfill that defines New Relic PHP agent newrelic_* functions when the New Relic extension isn’t installed. Helps apps run on PHP setups without the extension while keeping calls to the agent API compatible. | 1 | 1 | 1 | 1K | 0 | 0.1 | 39.7 | MIT | — | |
| symfony/polyfill-php86 | 0.77 | Symfony Polyfill Php86 brings upcoming PHP 8.6 features to older runtimes. Includes the clamp() function, ARRAY_FILTER_USE_VALUE constant, and the SortDirection enum. Ideal for forward-compatible code while staying on PHP 8.x. | 6 | 6 | 0 | 5M | 0 | 21.6 | 64.9 | MIT | 1 week ago | |
| symfony/polyfill-php85 | 0.76 | Symfony Polyfill for PHP 8.5 features on older runtimes. Adds get_error_handler/get_exception_handler, NoDiscard attribute, array_first/array_last, DelayedTargetValidation, Filter exceptions, and locale_is_right_to_left. MIT licensed. | 52 | 52 | 2 | 12M | 0 | 22.3 | 65.0 | MIT | 1 week ago | |
| arcasolutions/google-map | 0.75 | Laravel package providing Google Maps integration for your app, with helpers to generate map views and include the required scripts. Useful for quickly embedding maps and configuring markers or map options within Laravel projects. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 10 years ago | |
| boson-php/weak-types | 0.74 | Weak-types helpers for the Boson PHP ecosystem. Install via Composer and use alongside Boson to build desktop apps with configuration, windows, webviews, bindings, scripts, and request interception—see the Boson docs for guides and APIs. | 0 | 0 | 0 | 35 | 0 | 0.0 | 21.5 | MIT | — | |
| antecedent/patchwork | 0.74 | Patchwork is a PHP monkey-patching library for runtime function and method redefinition. Useful for legacy code and hard-to-test dependencies, it enables stubbing, mocking, and behavior overrides without changing source, ideal for testing and debugging. | 451 | 454 | 41 | 697K | 23 | 22.3 | 53.0 | MIT | 10 months ago | |
| event-engine/php-engine-utils | 0.74 | Utilities for Event Engine in PHP: helper classes and shared tooling to simplify building and running Event Engine-based applications. Includes common infrastructure utilities and convenience functions to reduce boilerplate in your event-driven domain code. | 6 | 6 | 3 | 7K | 0 | 2.5 | 41.0 | MIT | 3 years ago | |
| cuyz/valinor | 0.73 | Valinor maps raw inputs (JSON/arrays) into validated, strongly typed PHP objects. Supports advanced PHPStan/Psalm types (shaped arrays, generics, ranges), produces precise human-readable errors, and can normalize data back to formats like JSON or CSV. | 1,524 | 1,523 | 92 | 1M | 26 | 48.4 | 60.5 | MIT | 1 week ago | |
| symfony/polyfill-php81 | 0.73 | Symfony Polyfill for PHP 8.1 features on older runtimes. Adds array_is_list, enum_exists, MYSQLI_REFRESH_REPLICA, ReturnTypeWillChange, and CURLStringFile (PHP 7.4+). Drop-in Composer dependency for wider compatibility. | 882 | 885 | 7 | 9M | 0 | 22.3 | 63.0 | MIT | 2 months ago | |
| laminas/laminas-code | 0.73 | Generate, analyze, and manipulate PHP code with Laminas Code. Provides reflection utilities, code generators, docblock parsing, and class/file generation helpers for building frameworks, tooling, and meta-programming workflows. | 1,904 | 1,914 | 87 | 4M | 21 | 32.4 | 55.6 | BSD-3-Clause | 9 months ago | |
| php-standard-library/vec | 0.73 | php-standard-library/vec provides small, focused helpers for working with sequential 0-indexed arrays (lists). Create, map, filter, transform, and compose list operations with predictable behavior and clean APIs—part of the PHP Standard Library collection. | 1 | 1 | 0 | 39K | 0 | 18.0 | 63.3 | MIT | 2 months ago | |
| symfony/polyfill-php84 | 0.72 | Symfony Polyfill for PHP 8.4 features, enabling newer core functions and APIs on older runtimes. Includes array_find/any/all, bcdivmod, Deprecated attribute, fpow, grapheme_str_split, mb_* trim/ucfirst/lcfirst, PDO subclasses, and ReflectionConstant. | 138 | 139 | 5 | 14M | 0 | 19.2 | 63.3 | MIT | 2 months ago | |
| symfony/polyfill-php73 | 0.71 | Symfony Polyfill for PHP 7.3: provides fallback implementations of core features for older PHP versions, including array_key_first/last, hrtime, is_countable, and JsonException, ensuring consistent behavior across environments. | 2,370 | 2,387 | 6 | 6M | 0 | 27.0 | 53.0 | MIT | 3 months ago | |
| symfony/polyfill | 0.69 | Symfony Polyfill backports newer PHP features and provides compatibility layers for missing extensions and functions. Use it to keep apps portable across PHP versions, smoothing gaps in intl, mbstring/iconv, uuid, and many core APIs. | 2,807 | 2,812 | 158 | 41K | 0 | 41.6 | 19.3 | MIT | 1 week ago | |
| phpunitgoodpractices/polyfill | 0.69 | Polyfill library for PHPUnit best practices, providing compatibility helpers and shims to keep test suites consistent across PHPUnit versions. Useful for package maintainers aiming for cleaner, more portable tests without forcing specific PHPUnit upgrades. | 11 | 11 | 1 | 7K | 6 | 2.1 | 27.8 | MIT | 3 years ago | |
| arokettu/random-polyfill | 0.69 | — | 8 | 9 | 0 | 47K | 0 | 20.0 | 57.9 | NOASSERTION | 3 months ago | |
| yoast/phpunit-polyfills | 0.69 | Polyfills to write PHPUnit tests compatible across versions. Provides traits, test cases, and utilities that bridge API changes so one test suite can run on PHPUnit 7.5–9 and 11–12. Requires PHP 7.1+. | 186 | 186 | 13 | 2M | 4 | 11.5 | 55.7 | BSD-3-Clause | 11 months ago | |
| lstrojny/functional-php | 0.64 | Functional PHP adds a rich set of functional programming helpers for PHP: map/filter/reduce, partial application, currying, composition, and collections utilities. Write cleaner, more declarative code without changing your framework or coding style. | 1,986 | 1,996 | 204 | 60K | 8 | 32.9 | 28.6 | MIT | 4 months ago |
How can I help you explore Laravel packages today?