Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Comparing Composer

Comparing Composer

This talk I did for PHPBenelux meetup in February 2015, at MCS in Wilrijk, Belgium.

This talk compares composer with npm, bower, bundler, pip, berkshelf,… and their ecosystems of packages. Compared to these, composer is excelling with some pretty awesome features. I will focus on the great advantages of composer. Things like virtual packages, custom scripts, calling static methods straight from composer.json, the replaces keyword, … Stuff that most people don’t know about because they don’t always have to use it, but it could help them if they would know about it. At last I will tell about what the packagist ecosystem can learn from other ecosystems, and what package developers can do to further improve it to become a more healthy ecosystem.

https://joind.in/13680

Hannes Van De Vreken

February 24, 2015
Tweet

More Decks by Hannes Van De Vreken

Other Decks in Programming

Transcript

  1. DEPENDENCY MANAGERS - APT PACKAGES <mongodb.org/dist/binary-amd64/Packages> … Package: mongodb-org-server Version:

    2.6.7 Installed-Size: 23291 Depends: libc6 (>= 2.3.2), libgcc1 (>= 1:4.1 …
  2. DEPENDENCY MANAGERS - APT The following packages have unmet dependencies:

    package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed
  3. ~1.4: >=1.4.0 and < 2.0.0 ~1.4.3: >=1.4.3 and < 1.5.0

    ^1.4.3: >=1.4.3 and < 2.0.0 IMPROVE ECOSYSTEM - SEMVER
  4. If all packages - Use Semver - Correctly define version

    constraints IMPROVE ECOSYSTEM - SEMVER
  5. • http:/ /mwl.be • http:/ /getcomposer.org/doc • http:/ /slides.seld.be/?file=2015-02-19+Composer+... •

    https:/ /hannesvdvreken.com/2015/01/14/gitattr... • https:/ /hannesvdvreken.com/2015/01/18/comp... • https:/ /hannesvdvreken.com/2015/01/28/autol... • https:/ /packagist.org/search/?q=psr%2Flog • https:/ /leanpub.com/principles-of-package-design • http:/ /php-and-symfony.matthiasnoback.nl/2014/... • http:/ /php-and-symfony.matthiasnoback.nl/2014/... REFERENCES