Giter VIP home page Giter VIP logo

Comments (2)

bamarni avatar bamarni commented on June 22, 2024

cf. #12, I didn't got that much feedback except from you :D but I think it's stable. At the moment the main interesting part missing would be some integration or something similar to the merge plugin, to avoid incompatibilities between project deps and bin deps.

I could tag a v1 after #11 is there probably. As per marking the classes final yes, why not.

from composer-bin-plugin.

theofidry avatar theofidry commented on June 22, 2024

At the moment the main interesting part missing would be some integration or something similar to the merge plugin, to avoid incompatibilities between project deps and bin deps.

Well actually that's what I'm working on :P https://github.com/theofidry/composer-inheritance-plugin

To recap, for using phars, I'm using https://github.com/tommy-muehle/tooly-composer-script. Easy and simple. However phars have two limitations: 1. no versioning (which can be and is ok most of the time) 2. cannot execute code (otherwise you may have silent dep conflicts).

So as described in #12, the main usage I have for this plugin is phars for which I need a versioning or framework bridges. In the later case, as we already discussed somewhere, as you child composer.json does not "inherit" from the parent one, there may still be dep conflicts besides you have to do two autoloadings: the one from the root vendor and the one from the child. The plugin I'm working on just wraps https://github.com/wikimedia/composer-merge-plugin to avoid any weird configuration for this specific usage, install it in the child composer.json and:

  • The autoload, autoload-dev, require and require-dev sections from the root composer.json will be merge with the children. As a result, you have no silent dep conflicts and you have only the autoload.php of the child to require.

On my end, I only need #11 before having everything I need from this plugin. But yeah it would be nice to have other people feedback as well :P

from composer-bin-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.