Provide a phar version
Opened this issue · 2 comments
In my ci/cd pipeline i have a step which checks if .editorconfig
definitions are met.
currently this runs as a docker command.
most other tools (phpunit
, php-cs-fixer
) are run as .phar
, it would be great if editorconfig-checker.php
is also available as phar.
Hey @tomtomsen, thanks for your issue. 👍
Could you explain what needs to be done to provide editorconfig-checker as a .phar
?
I'm not so much into the PHP-world anymore, but still want to maintain this project.
Hey @mstruebing, to be honest, i'm also not an expert.
but i managed to make a working version here: tomtomsen/editorconfig-checker.php-phar
it uses humbug/box
to make it work, i had to change the Utilities::getBasePath()
method to work with the sys_get_temp_dir
(096ab9441eb191e66bcb6cf0bf21ac1ec665a8df)
otherwise the path would point into the phar itself.
i haven't tried it to sign it.
i haven't tried to automate it.
but i can have a look.