Download the PHP package gbhorwood/macrame without Composer
On this page you can find all versions of the php package gbhorwood/macrame. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gbhorwood/macrame
More information about gbhorwood/macrame
Files in gbhorwood/macrame
Package macrame
Short Description A library for building command line applications
License MIT
Homepage https://macrame.fruitbat.io
Informations about the package 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
Macrame is installed via composer:
Documentation and Resources
Full documentation and a set of examples are found on the documentation site, including:
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.
A full walkthrough of 'hello world' is given in the quick start.
Requirements
Macrame is a pure PHP library. The requirements are:
- PHP 7.4 or higher
posix
extensionmbstring
extension
Since Macrame is for building command-line applications, it can be difficult to guarantee that the host system meets the minimum requirements. To address this, Macrame provides a preflight()
function to validate that the host can run Macrame scripts.
Contributing
Contributions submitted via pull request are welcome and will be fully credited.
- Use PSR-2 style: Using php-cs-fixer is recommended, but any tool is fine. Do not use windows line endings.
- Use gitflow: Create a new feature branch from
develop
for all new feature work. - One pull request per feature/fix: Pull requests should only contain work for one feature or fix.
- Use static analysis (phpstan): All code should pass
phpstan
at level 6. Use thephpstan.neon
in the repository. - Update documentation if needed: If documentation is required, update the daux pages in the
documentation/
directory. - Write tests (phpunit): Achieving 100% coverage is difficult, especially for anything that uses animations or forks child processes, but please try.
All versions of macrame with dependencies
mikey179/vfsstream Version ^1.6
povils/figlet Version ^1.0
gbhorwood/tabletown Version ^1.0