PHPackages                             nabeghe/tepade - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nabeghe/tepade

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nabeghe/tepade
==============

A text detector with support for named parameters.

1.0.0(1y ago)45MITPHPPHP &gt;=7.4

Since Oct 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nabeghe/tepade-php)[ Packagist](https://packagist.org/packages/nabeghe/tepade)[ Docs](https://github.com/nabeghe/curly-brace-pattern-php)[ RSS](/packages/nabeghe-tepade/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Tepade for PHP ≥ 7.4
====================

[](#tepade-for-php--74)

 [![](https://private-user-images.githubusercontent.com/12207627/619657475-0781038b-443e-4c27-a203-47f7e9bc49f0.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODU2NTU2NjIsIm5iZiI6MTc4NTY1NTM2MiwicGF0aCI6Ii8xMjIwNzYyNy82MTk2NTc0NzUtMDc4MTAzOGItNDQzZS00YzI3LWEyMDMtNDdmN2U5YmM0OWYwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwODAyVDA3MjI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0NDQ0Njg1MjI1MjY3YWZkMGYzYjg5OGU0MDYwZjFiYmU4MGYzMmUzOWZjMzE4MzllZDVmNDk4NzkxNzhiOWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmpwZWcifQ.zW5-SQhh99iiG2_dQt2Xep2khZh6bSfm1UcrGFHWNpE)](https://private-user-images.githubusercontent.com/12207627/619657475-0781038b-443e-4c27-a203-47f7e9bc49f0.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODU2NTU2NjIsIm5iZiI6MTc4NTY1NTM2MiwicGF0aCI6Ii8xMjIwNzYyNy82MTk2NTc0NzUtMDc4MTAzOGItNDQzZS00YzI3LWEyMDMtNDdmN2U5YmM0OWYwLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwODAyVDA3MjI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0NDQ0Njg1MjI1MjY3YWZkMGYzYjg5OGU0MDYwZjFiYmU4MGYzMmUzOWZjMzE4MzllZDVmNDk4NzkxNzhiOWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmpwZWcifQ.zW5-SQhh99iiG2_dQt2Xep2khZh6bSfm1UcrGFHWNpE)

> 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, &amp; the underscore (\_) character.

🫡 Usage
-------

[](#-usage)

### 🚀 Installation

[](#-installation)

You can install the package via composer:

```
composer require nabeghe/tepade
```

### Examples

[](#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
---------

[](#-license)

Licensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance40

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

674d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12207627?v=4)[Hadi Akbarzadeh](/maintainers/nabeghe)[@nabeghe](https://github.com/nabeghe)

---

Top Contributors

[![nabeghe](https://avatars.githubusercontent.com/u/12207627?v=4)](https://github.com/nabeghe "nabeghe (4 commits)")

---

Tags

named-parametrnamedparameterphpphp-stringphp-string-helperphp-stringsphp-text-analysisstringtepadetexttext-detectionstringlibrarydetectortextpatterntext patternparamscurly bracetext detectortext matchernamed paramstext paramsnamed params detectortext params detectorpattern detectortext pattern detectorcurly brace patterncurly brace match

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nabeghe-tepade/health.svg)

```
[![Health](https://phpackages.com/badges/nabeghe-tepade/health.svg)](https://phpackages.com/packages/nabeghe-tepade)
```

###  Alternatives

[lolli42/finediff

PHP implementation of a Fine granularity Diff engine

1310.1M11](/packages/lolli42-finediff)[d4h/finediff

PHP implementation of a Fine granularity Diff engine

141.6M1](/packages/d4h-finediff)[edgaras/strsim

Collection of string similarity and distance algorithms in PHP including Levenshtein, Damerau-Levenshtein, Jaro-Winkler, and more

2971.4k7](/packages/edgaras-strsim)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
