Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribute as PHAR #23

Open
feamsr00 opened this issue Dec 7, 2022 · 1 comment
Open

Distribute as PHAR #23

feamsr00 opened this issue Dec 7, 2022 · 1 comment

Comments

@feamsr00
Copy link

feamsr00 commented Dec 7, 2022

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.

@feamsr00
Copy link
Author

feamsr00 commented Dec 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant