Skip to content

Build and release PHAR #25

@hussainweb

Description

@hussainweb

Provide PHAR releases for conventional-commits

Right now, the documented way to install this would be to use composer require --dev. I would also like the option of downloading a PHAR file for this.

Background/problem

The dependencies of this package are quite strict which would not let me add this package where I would want to use this. For example, different versions of Drupal depend on different releases of Symfony packages and the version requirements here are quite strict. I can avoid this to an extent with cgr or composer global require --dev but there is a chance of conflicts anyway.

Next, there is a hard dependency on CaptainHook but I would want to use this with GrumPHP. It doesn't make sense to include both in a project. Another way could be to move captainhook to suggests instead of require but that's a big change and might need rewriting and testing.

A third way could be to break the package into supporting libraries and I could use that library in GrumPHP. Again, it's a lot of work.

Considering all this, I think creating a PHAR file is the easiest way out of all of these problems.

Proposal/solution

I suggest building and making PHAR files available and I can help with a PR if you're open to this. Of course, I can only contribute with the way to create PHAR files and I believe the maintainers will need to add it to releases or make it available to Phive, for example. My thought is to use https://github.com/box-project/box but I am open to other methods as well.

Alternatives

Already described in the background above.

Additional context

Already described in the background above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions