configuredco / haulable

Create standalone PHP CLI applications with PHP Micro CLI
MIT License
163 stars 3 forks source link
cli laravel laravel-zero phar php symfony

Total Downloads Latest Stable Version License

image

Haulable is a CLI tool that packages your existing PHP CLI Phar with PHP Micro CLI for MacOS (Apple/Intel), Linux, and Windows. This enables your existing PHP CLI app built with something like Laravel Zero to be truly portable as the end user will no longer need PHP to be installed to run your application.

Requirements

Installation

To install Haulable, you can use composer to install globally, or you can use the Phar directly by downloading the latest build.

composer global require configured/haulable

Usage

To use Haulable, once installed, you can simply run haulable your_cli_app.phar. Haulable will then ask you for what target system(s) you'd like to package your CLI app for.

image

Options

Haulable accepts options and arguments to make it easier to use in CI pipelines

Platform

An option can be one of the following:

haulable your_cli_app.phar --platform="<option>"

License

Haulable is open-sourced software licensed under the MIT license.