PHPackages                             ilya/buffer - 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. ilya/buffer

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

ilya/buffer
===========

Context-aware implementation of explode().

1.0.0(12y ago)0211MITPHP

Since May 14Pushed 12y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Buffer
======

[](#buffer)

Buffer is a context-aware implementation of explode(), the string function from PHP.

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

[](#installation)

Open up your terminal, `cd` to your project directory and type:

```
# run this command if you have Composer installed globally on your machine
composer require "ilya/buffer:~1"

# or run this command if you have it installed locally
php composer.phar require "ilya/buffer:~1"
```

Press `Enter` and give Composer just a second to install the package as your project's dependency.

How to use this thing
---------------------

[](#how-to-use-this-thing)

Let's get started by creating an instance of Buffer:

```
$buffer = new Buffer\Buffer('foo:"bar:baz":wow');
```

Now, tell Buffer that the `"` character has a special meaning:

```
$buffer->beAwareOf("\"");
```

Finally, split the string you've passed to the constructor by `:`:

```
$buffer->explode(':'); // => ['foo', 'bar:baz', 'wow']
```

Alright, that's basically it.

License
-------

[](#license)

Buffer is licensed under the MIT license.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

4388d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/776b7b64a5d05531a18e8874c09069a25dce24b2e3efa60ea521e25e9a35281a?d=identicon)[ilya.s](/maintainers/ilya.s)

---

Top Contributors

[![ilya-dev](https://avatars.githubusercontent.com/u/6959318?v=4)](https://github.com/ilya-dev "ilya-dev (26 commits)")

---

Tags

Contextimplementationexplodeaware

### Embed Badge

![Health badge](/badges/ilya-buffer/health.svg)

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

###  Alternatives

[kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

27564.8k6](/packages/kartik-v-yii2-nav-x)

PHPackages © 2026

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