Distribute php command line tool

I have a php command line tool that I would like to share with the world. Well, actually I plan to write it, and it is a tool for uploading project documents to couchdb, but that is not entirely true.

In any case, is there a best practice for packaging php scripts so that they can be distributed for easy installation? I think something like the line of the old old ".configure and make and make install", but what to do for the php script? I read about phar, but it seems to be intended mainly for libraries. So any ideas? Or examples of how other projects did this?

+5
source share
3 answers

Composer , , , . phar , "composer --options args"

+1

composer PEAR, , CLI. PEAR, Pirum SensioLabs ( Symfony) .

.

0

CLIFramework , , (, , , ) zsh/bash .

The compilation team is also ready to use to help you compile the console application into a phar file for distribution. (phpbrew uses this method to distribute the application in the world)

Here is a screencast using the zsh completion generator (it completes the arguments and options):

zsh completion generator

There are also many popular applications using CLIFramework and GetOptionKit. e.g. PHPBrew , LazyRecord

0
source

All Articles