Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nabeghe/tepade-php
A text detector with support for named parameters.
https://github.com/nabeghe/tepade-php
named-parametr namedparameter php php-string php-string-helper php-strings php-text-analysis string tepade text text-detection
Last synced: about 1 month ago
JSON representation
A text detector with support for named parameters.
- Host: GitHub
- URL: https://github.com/nabeghe/tepade-php
- Owner: nabeghe
- License: mit
- Created: 2024-10-12T22:11:14.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-10-12T22:11:45.000Z (about 1 month ago)
- Last Synced: 2024-10-12T23:43:37.513Z (about 1 month ago)
- Topics: named-parametr, namedparameter, php, php-string, php-string-helper, php-strings, php-text-analysis, string, tepade, text, text-detection
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Tepade
> 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:
```bash
composer require nabeghe/tepade
```### Examples
Check the examples folder in the repositiry.
- [Example 1: Return](examples/1-return.php)
- [Example 2: Callback](examples/2-callback.php)
- [Example 3: Callback Custom Args](examples/3-callback-custom-args.php)
- [Example 4: Validators](examples/4-validators.php)
- [Example 5: Builder](examples/5-builder.php)
- [Example 6: Multiple Patterns](examples/6-multiple-patterns.php)
- [Example 7: Structure](examples/7-structure.php)## 📖 License
Copyright (c) 2024 Hadi Akbarzadeh
Licensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.