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

Composer

951
509
+ 1
13
Docker

146.8K
114K
+ 1
3.8K
Add tool

Composer vs Docker: What are the differences?

Composer: 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; Docker: Enterprise Container Platform for High-Velocity Innovation. The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere.

Composer can be classified as a tool in the "Package Managers" category, while Docker is grouped under "Virtual Machine Platforms & Containers".

"Must have dependency manager for PHP" is the primary reason why developers consider Composer over the competitors, whereas "Rapid integration and build up" was stated as the key factor in picking Docker.

Composer and Docker are both open source tools. Docker with 54K GitHub stars and 15.6K forks on GitHub appears to be more popular than Composer with 20.2K GitHub stars and 5.54K GitHub forks.

Spotify, Pinterest, and Twitter are some of the popular companies that use Docker, whereas Composer is used by Walls.io, Zumba, and Infoshare. Docker has a broader approval, being mentioned in 3527 company stacks & 3449 developers stacks; compared to Composer, which is listed in 95 company stacks and 55 developer stacks.

Decisions about Composer and Docker
Florian Sager
IT DevOp at Agitos GmbH · | 2 upvotes · 290.5K views
Chose
LXDLXD
over
DockerDocker

lxd/lxc and Docker aren't congruent so this comparison needs a more detailed look; but in short I can say: the lxd-integrated administration of storage including zfs with its snapshot capabilities as well as the system container (multi-process) approach of lxc vs. the limited single-process container approach of Docker is the main reason I chose lxd over Docker.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Composer
Pros of Docker
  • 7
    Must have dependency manager for PHP
  • 3
    Centralized autoload.php
  • 3
    Large number of libraries
  • 823
    Rapid integration and build up
  • 689
    Isolation
  • 519
    Open source
  • 505
    Testa­bil­i­ty and re­pro­ducibil­i­ty
  • 459
    Lightweight
  • 217
    Standardization
  • 184
    Scalable
  • 105
    Upgrading / down­grad­ing / ap­pli­ca­tion versions
  • 87
    Security
  • 84
    Private paas environments
  • 33
    Portability
  • 25
    Limit resource usage
  • 16
    Game changer
  • 15
    I love the way docker has changed virtualization
  • 13
    Fast
  • 11
    Concurrency
  • 7
    Docker's Compose tools
  • 5
    Fast and Portable
  • 5
    Easy setup
  • 4
    Because its fun
  • 3
    Makes shipping to production very simple
  • 2
    It's dope
  • 2
    Highly useful
  • 1
    Very easy to setup integrate and build
  • 1
    Package the environment with the application
  • 1
    Does a nice job hogging memory
  • 1
    Open source and highly configurable
  • 1
    Simplicity, isolation, resource effective
  • 1
    MacOS support FAKE
  • 1
    Its cool
  • 1
    Docker hub for the FTW
  • 1
    HIgh Throughput

Sign up to add or upvote prosMake informed product decisions

Cons of Composer
Cons of Docker
    Be the first to leave a con
    • 8
      New versions == broken features
    • 6
      Unreliable networking
    • 6
      Documentation not always in sync
    • 4
      Moves quickly
    • 3
      Not Secure

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    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.

    What is Docker?

    The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere

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

    Jobs that mention Composer and Docker as a desired skillset
    CBRE
    United States of America California Sunnyvale
    CBRE
    United States of America Texas Dallas
    CBRE
    United States of America Texas Dallas
    CBRE
    United States of America Texas Richardson
    CBRE
    United States of America Texas Richardson
    CBRE
    United States of America Texas Richardson
    What companies use Composer?
    What companies use Docker?
    See which teams inside your own company are using Composer or Docker.
    Sign up for StackShare EnterpriseLearn More

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

    What tools integrate with Composer?
    What tools integrate with Docker?

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

    Blog Posts

    PythonDockerKubernetes+7
    3
    761
    PythonDockerKubernetes+14
    11
    2224
    Jul 9 2019 at 7:22PM

    Blue Medora

    DockerPostgreSQLNew Relic+8
    11
    1924
    DockerAmazon EC2Scala+8
    6
    2317
    GitHubDockerReact+17
    35
    33384
    What are some alternatives to Composer and Docker?
    Docker Compose
    With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.
    Kubernetes
    Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.
    Docker Swarm
    Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.
    Elementor
    Create beautiful websites using a simple, intuitive drag and drop Interface.It offers pixel perfect design, yet produces 100% clean code. Take your design vision and turn it into a stunning custom-made website. It's fast and easy.
    Conductor
    Conductor is an orchestration engine that runs in the cloud.
    See all alternatives