PHPackages                             peidgnad/tag-wrapper - 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. peidgnad/tag-wrapper

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

peidgnad/tag-wrapper
====================

1170PHP

Since Mar 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/peidgnad/tag-wrapper)[ Packagist](https://packagist.org/packages/peidgnad/tag-wrapper)[ RSS](/packages/peidgnad-tag-wrapper/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Install
=======

[](#install)

```
composer require peidgnad/tag-wrapper
```

Usage
=====

[](#usage)

```
use Peidgnad\TagWrapper\TagWrapper;

$string = '
    This string contain a keyword
    This string contain keyword
    This string contain a keyword
    This string contain a keyword
    This string contain a keyword
    This string contain a keyword
    This string contain a keyword
    This string contain a keyword
    This string contain a keyword

';

$wrapper = TagWrapper::find(['a keyword', 'keyword'], $string);

$prepend = function ($keyword) {
    return '';
};

$wrapper->wrapWith($prepend, '');
$wrapper->ignoreIndex(0);

$result = $wrapper->exec();

var_dump(
    $result->getWrapped(),
    $result->getIndexes(),
    $result->getPositions()
);

echo $result;
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/76037511?v=4)[Điệp Đặng](/maintainers/peidgnad)[@peidgnad](https://github.com/peidgnad)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/peidgnad-tag-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/peidgnad-tag-wrapper/health.svg)](https://phpackages.com/packages/peidgnad-tag-wrapper)
```

PHPackages © 2026

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