PHPackages                             gbhorwood/macrame - 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. [CLI &amp; Console](/categories/cli)
4. /
5. gbhorwood/macrame

ActiveLibrary[CLI &amp; Console](/categories/cli)

gbhorwood/macrame
=================

A library for building command line applications

1.02(10mo ago)722[2 issues](https://github.com/gbhorwood/Macrame/issues)MITPHPPHP ^7.4|^8.0CI passing

Since Jan 10Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/gbhorwood/Macrame)[ Packagist](https://packagist.org/packages/gbhorwood/macrame)[ Docs](https://macrame.fruitbat.io)[ RSS](/packages/gbhorwood-macrame/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

Macrame
=======

[](#macrame)

Macrame is a library for building interactive command line scripts in PHP. It provides methods to create interactive menus, format text for the terminal, handle command-line arguments, read and validate user input, run processes in the background, and more. Macrame was developed as an internal project for Fruitbat Studios/Cloverhitch Technologies/Kludgetastic Implementations.

Install
-------

[](#install)

Macrame is installed via composer:

```
composer require gbhorwood/macrame
```

Documentation and Resources
---------------------------

[](#documentation-and-resources)

Full documentation and a set of examples are found on the [documentation site](https://macrame.fruitbat.studio), including:

- [Quick Start](https://macrame.fruitbat.studio/Quick_Start.html)
- [Crash Course](https://macrame.fruitbat.studio/Overview.html)
- [Full Manual](https://macrame.fruitbat.studio/Manual/Handling_Arguments.html)
- [Examples](https://macrame.fruitbat.studio/Cookbook/Intro.html)

Hello world
-----------

[](#hello-world)

The fastest way to get up and running is to use the 'hello world' example and replace the 'output text' line with your custom code.

```
#!/usr/bin/env php
