nabeghe / tepade
A text detector with support for named parameters.
1.0.0
2024-10-12 22:11 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: 9.6
This package is auto-updated.
Last update: 2025-04-19 22:21:56 UTC
README
A text detector with support for named parameters.
Easily detect texts that contain named variables enclosed within curly braces. There's a bit of flair in this library that you can check in the examples.
Notice: You can change the regex related to capturing parameters. but the default regex can only be enclosed within curly braces, must start with an English letter, supports only letters, numbers, & the underscore (_) character.
🫡 Usage
🚀 Installation
You can install the package via composer:
composer require nabeghe/tepade
Examples
Check the examples folder in the repositiry.
- Example 1: Return
- Example 2: Callback
- Example 3: Callback Custom Args
- Example 4: Validators
- Example 5: Builder
- Example 6: Multiple Patterns
- Example 7: Structure
📖 License
Copyright (c) 2024 Hadi Akbarzadeh
Licensed under the MIT license, see LICENSE.md for details.