Packagist · packagist:spatie/regex
spatie/regex active
A sane interface for php's built in preg_* functions
| Latest stable version | 3.1.1 |
|---|---|
| Published | 2021-11-30 21:13:59+00:00 |
| Install | composer require spatie/regex |
| Required PHP version (composer.json) | PHP ^8.0 || ^8.1 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-10-09 03:01:08 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2021-11-30 21:13:59 UTC · 1773 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 16 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
3.1.1 | 2021-11-30 21:13:59 UTC |
3.1.0 | 2021-11-18 08:33:59 UTC |
3.0.0 | 2021-10-06 13:55:05 UTC |
2.0.1 | 2021-04-20 08:33:46 UTC |
2.0.0 | 2021-03-31 14:24:29 UTC |
1.4.2 | 2020-11-03 23:05:25 UTC |
1.4.1 | 2019-06-19 06:59:15 UTC |
1.4.0 | 2019-01-28 15:47:35 UTC |
1.3.2 | 2018-10-29 08:45:57 UTC |
1.3.1 | 2018-10-18 23:14:00 UTC |
1.3.0 | 2018-05-24 07:54:50 UTC |
1.2.0 | 2017-09-04 18:27:24 UTC |
1.1.0 | 2016-09-15 14:29:02 UTC |
1.0.0 | 2016-08-18 14:18:25 UTC |
0.1.0 | 2016-08-18 08:11:46 UTC |
0.0.1 | 2016-08-17 18:42:05 UTC |
Showing the 16 most recent of 16 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
php 7.4 | 1.4.2 |
php 8.0 | 3.1.1 |
php 8.1 | 3.1.1 |
php 8.2 | 3.1.1 |
php 8.3 | 3.1.1 |
php 8.4 | 3.1.1 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of spatie/regex?
The latest stable version of spatie/regex is 3.1.1, published on 2021-11-30. Verified by Vigia on 2026-10-09.
How do I install the latest version of spatie/regex?
Run composer require spatie/regex. The latest stable version is 3.1.1 (verified 2026-10-09).
Is spatie/regex deprecated?
No. spatie/regex is not marked as deprecated in the registry.
Which PHP version does spatie/regex require?
spatie/regex 3.1.1 declares this requirement: PHP ^8.0 || ^8.1.
Does spatie/regex 3.1.1 have known vulnerabilities?
No known advisories affect spatie/regex 3.1.1 according to the data Vigia checks.
Is spatie/regex still maintained?
spatie/regex published 0 stable releases in the last 12 months; the most recent was 1773 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- symfony/amqp-messenger
- league/flysystem-bundle
- namshi/jose
- matomo/device-detector
- dg/bypass-finals
- drupal/core
- sentry/sdk
- mustache/mustache
- saloonphp/saloon
- bamarni/composer-bin-plugin
- simplesoftwareio/simple-qrcode
- laminas/laminas-validator
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/packagist/spatie/regex) [](https://vigia.coredls.cloud/packagist/spatie/regex) [](https://vigia.coredls.cloud/packagist/spatie/regex)
For agents
GET https://vigia.coredls.cloud/v1/packages/packagist/spatie/regex
GET https://vigia.coredls.cloud/v1/packages/packagist/spatie/regex/versions/{version}