Weave Code
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

Pcre Laravel Package

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.

View on GitHub
Deep Wiki
Context7
3.4.0

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/3.3.2...3.4.0

3.3.1

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/3.3.0...3.3.1

2.3.1

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/2.3.0...2.3.1

3.3.0

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/3.2.0...3.3.0

2.3.0

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/2.2.0...2.3.0

3.2.0
  • Added a PHPStan extension (include vendor/composer/pcre/extension.neon) to infer more precise $matches array shape, as well as validate regexes. Thanks @staabm (#25, #26, #27, #28, #29, #30)

Full Changelog: https://github.com/composer/pcre/compare/3.1.4...3.2.0

2.2.0
  • Added a PHPStan extension (include vendor/composer/pcre/extension.neon) to infer more precise $matches array shape, as well as validate regexes. Thanks @staabm (#25, #26, #27, #28, #29, #30)

Full Changelog: https://github.com/composer/pcre/compare/2.1.3...2.2.0

3.1.4
  • Fixed one last deprecation when running on PHP 8.4

Full Changelog: https://github.com/composer/pcre/compare/3.1.3...3.1.4

3.1.3
  • Fixed deprecations when running on PHP 8.4

Full Changelog: https://github.com/composer/pcre/compare/3.1.2...3.1.3

2.1.3
  • Fixed deprecations when running on PHP 8.4

Full Changelog: https://github.com/composer/pcre/compare/2.1.2...2.1.3

3.1.2
  • Fixed [@param-out](https://github.com/param-out) and $match by-ref args to work better with PHPStan 1.10.60
  • Fixed bug in Preg::replaceCallbackStrictGroups not detecting null values when used with PREG_OFFSET_CAPTURE

Full Changelog: https://github.com/composer/pcre/compare/3.1.1...3.1.2

2.1.2
  • Fixed [@param-out](https://github.com/param-out) and $match by-ref args to work better with PHPStan 1.10.60

Full Changelog: https://github.com/composer/pcre/compare/2.1.1...2.2.0

3.1.1
  • Fixed Preg::matchAllWithOffsets having the wrong phpdoc for $matches (#18)

Full Changelog: https://github.com/composer/pcre/compare/3.1.0...3.1.1

2.1.1
  • Fixed Preg::matchAllWithOffsets having the wrong phpdoc for $matches (#18)

Full Changelog: https://github.com/composer/pcre/compare/2.1.0...2.1.1

3.1.0

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/3.0.2...3.1.0

2.1.0

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/2.0.2...2.1.0

3.0.2
  • Improved type annotations for static analysis, $matches will now be populated correctly with [@param-out](https://github.com/param-out) annotations (requires PHPStan 1.9)

Full Changelog: https://github.com/composer/pcre/compare/3.0.1...3.0.2

2.0.2
  • Improved type annotations for static analysis, $matches will now be populated correctly with [@param-out](https://github.com/param-out) annotations (requires PHPStan 1.9)

Full Changelog: https://github.com/composer/pcre/compare/2.0.1...2.0.2

3.0.1

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/3.0.0...3.0.1

2.0.1

What's Changed

New Contributors

Full Changelog: https://github.com/composer/pcre/compare/2.0.0...2.0.1

3.0.0

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/2.0.0...3.0.0

2.0.0

What's Changed

Full Changelog: https://github.com/composer/pcre/compare/1.0.1...2.0.0

1.0.1
1.0.0

Initial release 🥳

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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata