Building the phar is KO with the following message :
php box.phar build
Building...
[RuntimeException]
failed to get contents of 'C:\temp\PHP-Parallel-Lint\parallel-lint.php'
build [-c|--configuration="..."]
The box.json file mention parallel-lint.php for the main key while the file didn't have the .php extension. So, I edit the file and remove the .php extension. I've thus "main": "parallel-lint", in box.json
I run php box.phar build once more and now building is correct.
But, now, running php parallel-lint.phar throw an error:
PHP Fatal error: Cannot declare class ComposerAutoloaderInit8d3d5124130cbc6652f1aad8a66cf923, because the name is already in use in phar://C:/temp/PHP-Parallel-Lint/parallel-lint.phar/vendor/composer/autoload_real.php on line 5
Hello
I'm trying to build the
.phar
file version and I'm thus following the guide as described in your README.md file (https://github.com/php-parallel-lint/PHP-Parallel-Lint#create-phar-package)box.json
file mentionparallel-lint.php
for themain
key while the file didn't have the.php
extension. So, I edit the file and remove the.php
extension. I've thus"main": "parallel-lint",
inbox.json
php box.phar build
once more and now building is correct.But, now, running
php parallel-lint.phar
throw an error:Can you take a look please ?
Note: I've also tried https://github.com/box-project/box for creating the phar but here too, it doesn't work.