Download the PHP package mmtaheridev/reginephp without Composer
On this page you can find all versions of the php package mmtaheridev/reginephp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mmtaheridev/reginephp
More information about mmtaheridev/reginephp
Files in mmtaheridev/reginephp
Package reginephp
Short Description An expressive PHP library for crafting regular expressions fluently.
License MIT
Homepage https://github.com/mmtaheridev/reginephp
Informations about the package reginephp
Regine
๐ The Problem Regine Solves
Regular expressions are powerful but notoriously difficult to read, write, and maintain. A simple email validation can look like this:
Can you immediately understand what this does? Probably not. And if you need to modify it in 6 months, good luck!
Regine transforms this cryptic pattern into readable, fluent PHP code:
Now it reads like English! ๐
๐๏ธ Architecture: Component-Decorator Pattern
Regine uses a clean Component-Decorator architecture that separates concerns:
- ๐งฉ Components: Actual regex content (literals, character classes, anchors, etc.)
- ๐จ Decorators: Elements that modify/wrap components (groups, quantifiers, lookarounds)
This design provides:
- โ Clean separation of concerns
- โ Simplified grouping logic
- โ Maintainable and extensible codebase
- โ Intuitive API design
๐ฆ Installation
Install Regine via Composer:
Requirements:
- PHP 8.3 or higher
- ext-mbstring (for Unicode support)
๐ฏ Quick Start
Basic Usage
Character Matching
Quantifiers
Character Classes and Ranges
Groups and Alternation
Advanced Features
๐ Debugging and Testing
Regine provides excellent debugging capabilities:
๐จ Real-World Examples
Email Validation
Phone Number Validation
URL Validation
๐งช Testing
Regine comes with comprehensive test coverage:
๐ Future Roadmap
We're building something revolutionary for the PHP ecosystem. Here's what's coming:
๐ฏ Comprehensive Pattern Library
- Hundreds of Pre-built Patterns: Email, phone, URL, credit card, social security, and much more
- Zero-Regex Philosophy: Handle 99% of use cases without writing raw regex
- Domain-Specific Patterns: Financial, geographic, technical, and specialized patterns
๐ Enterprise Features
- Pattern Composition Tools: Combine and extend patterns effortlessly
- Performance Optimizations: Sub-millisecond compilation for complex patterns
- Advanced Debugging: Visual pattern representation and analysis tools
- International Support: Localized patterns for global applications
๐ง Developer Experience
- IDE Integration: Full autocompletion and documentation
- Pattern Validation: Real-time pattern testing and validation
- Framework Integration: Laravel, Symfony, and other framework integrations
Stay tuned - we're just getting started! ๐
๐ค Contributing
We welcome contributions!.
Development Setup
๐ License
Regine is open-sourced software licensed under the MIT license.
๐ Acknowledgments
- Inspired by Laravel's Eloquent ORM fluent interface design
- Built with PHP 8.3+ features for modern development
- Tested with Pest PHP for reliable quality assurance
All versions of reginephp with dependencies
ext-mbstring Version *