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
====================

1171PHP

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 3w 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 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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)
```

###  Alternatives

[mark-gerarts/auto-mapper-plus

An AutoMapper for PHP

5623.5M23](/packages/mark-gerarts-auto-mapper-plus)[veewee/composer-run-parallel

Run composer tasks in parallel

92810.6k20](/packages/veewee-composer-run-parallel)[supervisorphp/configuration

Manage Supervisor configuration in PHP

39614.9k4](/packages/supervisorphp-configuration)[element119/module-custom-admin-logo

A Magento 2 module that allows admins to set the logo for their admin panel and login screen.

155.2k](/packages/element119-module-custom-admin-logo)[bangnokia/laravel-backup-telegram

Upload your backup file to telegram channel for spatie/laravel-backup

143.8k](/packages/bangnokia-laravel-backup-telegram)

PHPackages © 2026

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