PHPackages                             chh/shellwords - 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. chh/shellwords

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

chh/shellwords
==============

Lame port of Ruby's Shellwords.rb

v0.1.0(13y ago)23.5k1MITPHPPHP &gt;=5.3.3

Since Dec 28Pushed 13y ago1 watchersCompare

[ Source](https://github.com/CHH/shellwords)[ Packagist](https://packagist.org/packages/chh/shellwords)[ RSS](/packages/chh-shellwords/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (1)

Shellwords
==========

[](#shellwords)

Shellwords splits argument strings into an array of individual arguments, much like the Bourne Shell does it. It's a crappy port of the Ruby Standard Library's `Shellwords.rb`.

Install
-------

[](#install)

Install via composer:

```
{
    "require": {
        "chh/shellwords": "*"
    }
}

```

Usage
-----

[](#usage)

To split a string according to the Bourne Shell's rules use the static `split` method.

```
