Skip to content
SPECIFICTION
Get listed

Composer vs Hex

Composer

getcomposer.org

Hex

hex.pm

Side by side

FigureComposerHex
Price fromFree$7.50/mo
Free planYesYes
Free trial—Yes
Open source——
Web—Yes
WindowsYes—
macOSYes—
LinuxYes—
API—Yes
Self-hostedYesYes
Plans published15
Spec score · Package Managers8.9 (#5)8.3 (#26)
Free planYesYes
SupportThe project says commercial support and consulting are available through its sponsorship page.Hex directs users to [email protected] for direct contact with the core team and general support.

Plans

Composer

  • ComposerFree

Composer pricing →

Hex

  • Open SourceFree
  • Private Packages$9 a month
  • Open SourceFree
  • Private Packages (annual)$90 a year
  • EnterprisePriced on request

Hex pricing →

In their own words

Composer

Composer manages dependencies for PHP projects, installing and updating the libraries each project declares. By default, it keeps those dependencies in a directory within the project, and it can also manage a global project. It resolves dependencies and supports lockfiles, workspaces, private registry authentication, and offline installation. Packagist is its default package source; custom Composer, version-control, and local-path repositories are also supported. Composer integrates with Fossil, Git, Mercurial, Perforce, and Subversion. It can be installed locally or as a system-wide executable on Windows, Linux, and macOS. The latest version requires PHP 7.2.5 or later; the 2.2.x LTS line supports PHP 5.3.2 and later. Its audit command checks installed packages for security advisories, abandoned packages, malware flags, and other dependency policies. Composer is free under the MIT license. Plugins and scripts can run with the user's permissions, so the project advises against running Composer as root with untrusted packages.

Visit getcomposer.org

Hex

Hex is a package manager for the BEAM ecosystem, including Elixir and Erlang. Its services include an HTTP API, a website, a package and index repository, HexDocs, Mix integration, and other components. Packages work with Mix, Rebar, and erlang.mk, and the site provides usage guidance for Gleam. Developers can fetch dependencies without creating an account.

Organizations can publish and retrieve private packages and manage which users can access them. Free organizations can publish public dependency policies; paid organizations can make policies private and apply them to public and private packages. A private package can depend only on packages in its organization’s repository and the global hexpm repository. Documentation explains how to build and serve a repository on infrastructure an organization operates. Hex supports organization authentication keys for CI, and its source code is licensed under the Apache 2 License. The Open Source plan is free. Private Packages are listed at $9 / user / month, with an annual option at $90 / per user / per year. Enterprise pricing is by contacting sales. Hex lists API, self-hosted, and web platforms.

Visit hex.pm