Composer vs. Yarn

Overview
ProductRatingMost Used ByProduct SummaryStarting Price
Composer
Score 9.0 out of 10
N/A
Composer is a free and open source dependency manager for PHP. It allows the user to declare the libraries a project depends on and it will manage (install/update) them. it manages packages on a per-project basis, installing them in a directory (e.g. vendor) inside a project and by default, it does not install anything globally. Thus, it is a dependency manager.N/A
Yarn
Score 9.6 out of 10
N/A
Yarn is a package manager for JavaScript designed to provide secure dependency management, with project manager features such as offering a workspace that allows users to split projects into sub-components within a single repository. Developed by personnel at Facebook, Yarn is free and open source and associated to no company.N/A
Pricing
ComposerYarn
Editions & Modules
No answers on this topic
No answers on this topic
Offerings
Pricing Offerings
ComposerYarn
Free Trial
NoNo
Free/Freemium Version
YesNo
Premium Consulting/Integration Services
NoNo
Entry-level Setup FeeNo setup feeNo setup fee
Additional Details
More Pricing Information
Community Pulse
ComposerYarn
Considered Both Products
Composer
Chose Composer
If you're familiar with npm or Yarn, you'll feel right at home with composer. The work in pretty much the same way. You can use a composer.json file in your repo to reference specific version of public community modules, and enterprise internal ones. You can also hook some …
Yarn
Chose Yarn
Compared to npm, Yarn is a clear winner here. npm does not look to be getting any improvements recently. And it's much much slower to run when installing project dependencies. This has a clear impact on the developer productivity but also makes deployments slower. So Yarn is …
Best Alternatives
ComposerYarn
Small Businesses
Salt
Salt
Score 7.2 out of 10
Salt
Salt
Score 7.2 out of 10
Medium-sized Companies
Salt
Salt
Score 7.2 out of 10
Salt
Salt
Score 7.2 out of 10
Enterprises
Perforce Helix Core
Perforce Helix Core
Score 6.3 out of 10
Perforce Helix Core
Perforce Helix Core
Score 6.3 out of 10
All AlternativesView all alternativesView all alternatives
User Ratings
ComposerYarn
Likelihood to Recommend
9.0
(2 ratings)
9.0
(1 ratings)
User Testimonials
ComposerYarn
Likelihood to Recommend
Open Source
I do highly recommend it whenever you have some PHP projects, especially if you need to have reusable modules that you want to share across teams. With a good branching an tagging strategy, you can go a long way in making your developers' life easier. They will only need to work on the modules that are of interest of them, and not have to touch the whole codebase.
Also, it's quite necessary if you are planning to use community PHP modules, as the vast majority of them is distributed, and versionned via packagist.org, and thus via composer.
Read full review
Open Source
There is really no real reason why not to use Yarn today. It's much faster than npm, and you will need a dependency management system anyway. The only thing that might be missing is the fact that it doesn't come natively with NodeJS, and you have to install it yourself. I'd like to see the NodeJS ecosystem include Yarn by default.
Read full review
Pros
Open Source
  • Controlling dependencies
  • Fast dependency resolver
  • Easy to use dependency injection
Read full review
Open Source
  • Package management
  • Speed of download compared to npm
  • Moduel version control
Read full review
Cons
Open Source
  • Sometimes a bit slow, but v2 made a lot of improvements on that
  • If everything is modular, setting up a local dev environment is a bit trickier than having everything in the same repo
  • Might be hard to adopt with some frameworks which have not fully embraced it, like Wordpress
Read full review
Open Source
  • Rarely, some server connection error appear, while npm works alright.
  • Sometimes, deleting the whole vendor directory is the best solution to solve weird issues.
  • You still might need npm to install Yarn.
Read full review
Alternatives Considered
Open Source
If you're familiar with npm or Yarn, you'll feel right at home with composer. The work in pretty much the same way. You can use a composer.json file in your repo to reference specific version of public community modules, and enterprise internal ones. You can also hook some scripts that you would want to execute, like for testing, building your code ...
Read full review
Open Source
Compared to npm, Yarn is a clear winner here. npm does not look to be getting any improvements recently. And it's much much slower to run when installing project dependencies. This has a clear impact on the developer productivity but also makes deployments slower. So Yarn is still a much superior choice.
Read full review
Return on Investment
Open Source
  • Composer only has had positive impacts in our business. It saves a lot of time and resource in order to develop a software.
Read full review
Open Source
  • Deployments happen much faster.
  • Building and testing our apps is much more streamlined and efficient.
  • Makes it easier to write reusable code.
Read full review
ScreenShots