Giter Club home page Giter Club logo

Comments (8)

Seldaek avatar Seldaek commented on May 9, 2024

The "phppear" name above has really no meaning to composer, it's just for self-documentation purposes. The PEAR repository will read from the PEAR channel you give it, and create packages accordingly. The package name as defined by PEAR I believe is only MDB2, so that's what you should require, no phppear/ prefix.

from composer.

Seldaek avatar Seldaek commented on May 9, 2024

Also, I forgot to mention, this won't work until #61 is merged - which I hopefully will do tonight. If you want to try it anyway, use my fork's master branch in the meantime.

You can also use http://getcomposer.org/composer.phar to test stuff, it's built from my branch.

from composer.

kelvinj avatar kelvinj commented on May 9, 2024

Thanks Jordi.

So, if I add multiple pear repositories and then add a package to require, it will search all of the pear repositories for that package. Is that correct?

from composer.

Seldaek avatar Seldaek commented on May 9, 2024

That is correct. You never have to know where packages are, you just add repositories, and it'll find the fittest package in any of them, according to some rules (the DefaultPolicy class).

from composer.

kelvinj avatar kelvinj commented on May 9, 2024

Excellent… thanks so much.

from composer.

Seldaek avatar Seldaek commented on May 9, 2024

No problem, I just merged #61 btw, so you can now try with the sources if you like instead of the phar. And feel free to stop by on irc.freenode.org #composer-dev

from composer.

kelvinj avatar kelvinj commented on May 9, 2024

Thanks. BTW trying to build the phar from source and I get an error:

Call to undefined method Composer\Package\BasePackage::parseVersion() in phar:///Users/Shared/Sites/test/composer.phar/src/Composer/Repository/PearRepository.php on line 2

If this is just me being ignorant, then my apologies and please feel free to ignore this. :)

from composer.

Seldaek avatar Seldaek commented on May 9, 2024

I just pushed a couple fixes for the PEAR repository. Try recompiling the phar, it should go further but here I'm hitting another issue that I can't really fix right now. You might be more lucky with another PEAR repository though.

from composer.

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.