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.
You can install the package via composer:
composer require nabeghe/tepade
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
Copyright (c) 2024 Hadi Akbarzadeh
Licensed under the MIT license, see LICENSE.md for details.