Need advice about which tool to choose?Ask the StackShare community!

Bower

5.3K
3.7K
+ 1
927
Composer

840
457
+ 1
13
Add tool

Bower vs Composer: What are the differences?

Developers describe Bower as "A package manager for the web". Bower is a package manager for the web. It offers a generic, unopinionated solution to the problem of front-end package management, while exposing the package dependency model via an API that can be consumed by a more opinionated build stack. There are no system wide dependencies, no dependencies are shared between different apps, and the dependency tree is flat. On the other hand, Composer is detailed as "Dependency Manager for PHP". Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

Bower belongs to "Front End Package Manager" category of the tech stack, while Composer can be primarily classified under "Package Managers".

"Package management" is the primary reason why developers consider Bower over the competitors, whereas "Must have dependency manager for PHP" was stated as the key factor in picking Composer.

Bower and Composer are both open source tools. It seems that Composer with 20.2K GitHub stars and 5.54K forks on GitHub has more adoption than Bower with 15.2K GitHub stars and 1.97K GitHub forks.

According to the StackShare community, Bower has a broader approval, being mentioned in 803 company stacks & 396 developers stacks; compared to Composer, which is listed in 95 company stacks and 55 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Bower
Pros of Composer
  • 483
    Package management
  • 214
    Open source
  • 142
    Simple
  • 53
    Great for for project dependencies injection
  • 27
    Web components with Meteor
  • 8
    Portable dependencies Management
  • 7
    Must have dependency manager for PHP
  • 3
    Centralized autoload.php
  • 3
    Large number of libraries

Sign up to add or upvote prosMake informed product decisions

Cons of Bower
Cons of Composer
  • 2
    Deprecated
  • 1
    Front end only
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    What is Bower?

    Bower is a package manager for the web. It offers a generic, unopinionated solution to the problem of front-end package management, while exposing the package dependency model via an API that can be consumed by a more opinionated build stack. There are no system wide dependencies, no dependencies are shared between different apps, and the dependency tree is flat.

    What is Composer?

    It is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Bower?
    What companies use Composer?
    See which teams inside your own company are using Bower or Composer.
    Sign up for Private StackShareLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Bower?
    What tools integrate with Composer?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Bower and Composer?
    npm
    npm is the command-line interface to the npm ecosystem. It is battle-tested, surprisingly flexible, and used by hundreds of thousands of JavaScript developers every day.
    Yarn
    Yarn caches every package it downloads so it never needs to again. It also parallelizes operations to maximize resource utilization so install times are faster than ever.
    Webpack
    A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows to load parts for the application on demand. Through "loaders" modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
    gulp
    Build system automating tasks: minification and copying of all JavaScript files, static images. More capable of watching files to automatically rerun the task when a file changes.
    NuGet
    A free and open-source package manager designed for the Microsoft development platform. It is also distributed as a Visual Studio extension.
    See all alternatives