PHPackages                             tafhyseni/stringify - 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. tafhyseni/stringify

ActiveLibrary

tafhyseni/stringify
===================

A magical string helper buddy

20PHP

Since Mar 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tafhyseni/stringify)[ Packagist](https://packagist.org/packages/tafhyseni/stringify)[ RSS](/packages/tafhyseni-stringify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Stringify 👨‍🎨
=============

[](#stringify-‍)

**A framework agnostic** string manipulation package. *Start ❤️ string manipulations again!*Feeling paranoid about string manipulations? Hating regex? Hating string chunks, replacements, concatinations? This package is for you!

System Requirements
-------------------

[](#system-requirements)

- PHP &gt;= 7.2 (the latest stable version of PHP is highly recommended)

Installation
------------

[](#installation)

```
composer require tafhyseni/stringify
```

Usage
-----

[](#usage)

Stringify is a package made for human. Makes manipulation easier, simpler and elegant.

```
use \Tafhyseni\Stringify\Stringify;
```

### Examples

[](#examples)

Cutting a string after a certain word

```
Stringify::parse('Cut this string from here...')->removeAfter('from')->get();
```

Removing x-number of last characters

```
Stringify::parse('Remove3ofmylastcharacters')->removeLastChars(3)->get();
```

Removing HTML from a string/text expect a certain tag

```
$htmlInput = "Test paragraph. Other text";

Stringify::parse('Test paragraph. Other text')->removeHtmlExpect('');

```

Documentation
-------------

[](#documentation)

Please see [DOCUMENTATION](DOCUMENTATION.md) for all available methods on string/text/html manipulation.

Testing
-------

[](#testing)

```
./vendor/bin/pest
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mustafe Hyseni](https://github.com/tafhyseni)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/spatie/laravel-backup/blob/master/LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

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://www.gravatar.com/avatar/a3563c0eeabaace1af7b757a44f78451adf5cbf3cdde2b68940cbc4ed8414334?d=identicon)[tafhyseni](/maintainers/tafhyseni)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tafhyseni-stringify/health.svg)

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

PHPackages © 2026

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