Comcast/php-legal-licenses

Distribute as PHAR

feamsr00 opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
It's not as easy to keep and shuffle around composer global tools as it is PHAR tools.

Describe the solution you'd like
It would be great if you folks could distribute this as a PHAR app.

Additional context
I've used box-project/box a great deal and it's an easy way to get started.

Tried it out on the spur of the moment and it was pretty effortless:

> composer create-project Comcast/php-legal-licenses pll
Creating a "Comcast/php-legal-licenses" project at "./pll"
Info from https://repo.packagist.org: #StandWithUkraine
Installing comcast/php-legal-licenses (v1.2.0)

 [...snip...]

> cd .\pll\
>box compile

    ____
   / __ )____  _  __
  / __  / __ \| |/_/
 / /_/ / /_/ />  <
/_____/\____/_/|_|


Box version 4.1.0@fb068b2 2022-09-25 14:01:25 UTC

 // Loading without a configuration file.

🔨  Building the PHAR "C:/dev/projects/onx/pll/bin/php-legal-licenses.phar"

? No compactor to register
? Adding main file: C:/dev/projects/onx/pll/bin/php-legal-licenses
? Adding requirements checker
? Adding binary files
    > No file found
? Auto-discover files? Yes
? Exclude dev files? Yes
? Adding files
    > 196 file(s)
? Generating new stub
  - Using shebang line: #!/usr/bin/env php
  - Using banner:
    > Generated by Humbug Box 4.1.0@fb068b2.
    >
    > @link https://github.com/humbug/box
? Dumping the Composer autoloader
? Removing the Composer dump artefacts
? No compression
? Setting file permissions to 0755
* Done.

No recommendation found.
No warning found.

 // PHAR: 238 files (1.21MB)
 // You can inspect the generated PHAR with the "info" command.

 // Memory usage: 14.84MB (peak: 14.95MB), time: 9secs

>bin\php-legal-licenses --version
PHP Legal Licenses 1.2.0

>bin\php-legal-licenses gen
Generating Licenses file...
Done!

php-legal-licenses.phar.zip