cline/ecma-regex
最新稳定版本:1.0.0
Composer 安装命令:
composer require cline/ecma-regex
包简介
100% ECMA-262 compliant regular expression engine for PHP, designed for JSON Schema validation and full JavaScript regex compatibility
README 文档
README
ecma-regex
A 100% ECMA-262 compliant regular expression engine for PHP, designed for JSON Schema validation and full JavaScript regex compatibility.
Why This Package?
PHP uses PCRE (Perl Compatible Regular Expressions), while JSON Schema and JavaScript use ECMA-262 regex syntax. These engines have subtle differences that can cause validation inconsistencies. This package provides a pure PHP implementation of ECMA-262 regex, ensuring perfect compatibility with JSON Schema patterns.
Requirements
Requires PHP 8.5+
Installation
composer require cline/ecma-regex
Usage
See the Getting Started guide for usage examples and the API Reference for complete API documentation.
Documentation
Comprehensive documentation available at docs.cline.sh:
- Getting Started - Installation and basic usage
- Pattern Syntax - Complete pattern reference
- API Reference - Full API documentation
- JSON Schema Integration - JSON Schema validation patterns
- Performance - Caching and optimization
- Architecture - Internal design and structure
- Troubleshooting - Common issues and solutions
External References:
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-25