PHPackages                             siteorigin/string-splitter - 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. siteorigin/string-splitter

ActiveLibrary

siteorigin/string-splitter
==========================

Splits strings into separate words. Useful for domain names.

1.0.1(4y ago)036↓100%1MITPHPPHP ^8.0

Since Nov 18Pushed 4y ago2 watchersCompare

[ Source](https://github.com/siteorigin/string-splitter)[ Packagist](https://packagist.org/packages/siteorigin/string-splitter)[ Docs](https://github.com/siteorigin/string-splitter)[ RSS](/packages/siteorigin-string-splitter/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Splits strings into separate words.
===================================

[](#splits-strings-into-separate-words)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a4f82f6204d05de00fe1e9d213887899a9cd002cddbd782dc214614337f20755/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736974656f726967696e2f737472696e672d73706c69747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/siteorigin/string-splitter)[![GitHub Tests Action Status](https://camo.githubusercontent.com/7580fd5cf24d99f0937852e734868ade7bb76c88115a2516ce54659e65a08176/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f736974656f726967696e2f737472696e672d73706c69747465722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/siteorigin/string-splitter/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/04dac0b0534e9bed1eccff5a2104abd14e252ee9f7d6d3b7b793bc9efbb0a1fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f736974656f726967696e2f737472696e672d73706c69747465722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/siteorigin/string-splitter/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/33d42d9a0c0b898b006e4cf1108fd6feb3a5b90210e907d950b54768c3314642/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736974656f726967696e2f737472696e672d73706c69747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/siteorigin/string-splitter)

A very simple library for splitting strings into separate words. It uses English word frequency data to guess the most likely combinations. The algorithm is fairly slow, so this is best suited to splitting short strings like domain names.

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

[](#installation)

You can install the package via composer:

```
composer require siteorigin/string-splitter
```

Usage
-----

[](#usage)

```
$splitter = new SiteOrigin\StringSplitter\StringSplitter('expertsexchange');
var_dump($splitter->split()); // ['experts', 'exchange']
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [Greg Priday](https://github.com/gregpriday)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Every ~1 days

Total

2

Last Release

1631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c936acc8bcc60aa08303d15f12692319c15ef4c3b783c057abb0570fd1e0f2fb?d=identicon)[gpriday](/maintainers/gpriday)

---

Top Contributors

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

---

Tags

SiteOriginstring-splitter

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/siteorigin-string-splitter/health.svg)

```
[![Health](https://phpackages.com/badges/siteorigin-string-splitter/health.svg)](https://phpackages.com/packages/siteorigin-string-splitter)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[illuminate/support

The Illuminate Support package.

583107.1M34.3k](/packages/illuminate-support)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[illuminate/validation

The Illuminate Validation package.

18936.7M1.4k](/packages/illuminate-validation)[illuminate/queue

The Illuminate Queue package.

20331.4M1.2k](/packages/illuminate-queue)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M54](/packages/timacdonald-log-fake)

PHPackages © 2026

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