BrianHenryIE / strauss

Prefix PHP namespaces and classnames to allow multiple versions of libraries to exist without conflict.
https://brianhenryie.github.io/strauss/
MIT License
141 stars 23 forks source link

Distribute through PHIVE #6

Open szepeviktor opened 3 years ago

szepeviktor commented 3 years ago

phive install strauss would be nice :)

Needs a published GPG key and a signature per release.

BrianHenryIE commented 3 years ago

I've taken only a brief look so far but will familiarise myself with it soon.

I originally had curl -o strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/download/0.8.1/strauss.phar as part of the composer script but it was resulting in an unsigned code error, which I understand Phive would solve, and I understand it could always download the latest version, which would also be nice.

szepeviktor commented 3 years ago

Currently ignoring the missing signature works.

phive install --force-accept-unsigned brianhenryie/strauss

But it goes against the core principle of PHIVE.

szepeviktor commented 3 years ago

BTW strauss.phar is built in a way that you rename it and it won't start.

PHP Warning:  include(phar://strauss.phar/vendor/autoload.php): failed to open stream: phar error: 
invalid url or non-existent phar "phar://strauss.phar/vendor/autoload.php" 
in phar:///home/viktor/.phive/phars/brianhenryie/strauss-0.10.3.phar/bin/strauss on line 23