Packagist

Open source

Packagist is the main public package repository for PHP, listing packages that anyone can install with Composer.

Open-source alternative to

packagist.org
Packagist homepage screenshot
GitHub stars
1.8k
Last 30 days
+2(+0%)
Last commit
yesterday
Repository age
15 years
Licence
MIT
Self-hosted
Yes

About Packagist

Packagist is the PHP package repository. It aggregates public packages that anyone can install with Composer, and the homepage reports more than 475,000 packages. A post from September 2026 marks fifteen years since monolog/monolog became package ID 1 in 2011. The code is released under the MIT licence.

To use a package, you list dependencies in a composer.json file at the project root, run Composer to install them, and load vendor/autoload.php in your code. To publish, you put a composer.json with the package name in your repository, check it with composer validate, then log in or register and submit the repository. Recent news covers supply chain security, immutable versions and a sponsorship program.

The homepage also shows live counts of published packages, versions and installs, and a news feed that tracks Composer releases such as 2.10, which added native malware filtering.

Key features

  • Aggregates public packages installable with Composer
  • Dependencies declared in composer.json
  • Autoloading of installed dependencies
  • Package validation before submission
  • Package browsing and search

Good fit for

  • Finding PHP libraries
  • Publishing a PHP package
  • Managing project dependencies
Built with
PHP tools
Tags
php
composer
package manager
dependencies
registry
open source

Packagist: questions and answers

What is Packagist used for?
Packagist is the main public package repository for PHP, listing packages that anyone can install with Composer. It is a good fit for finding PHP libraries, publishing a PHP package and managing project dependencies.
Is Packagist open source?
Yes. Packagist is open source under the MIT licence. Its source code is on GitHub at composer/packagist and is written mainly in PHP.
Is Packagist free?
Yes. Packagist is open source, so the software itself is free to use.
Can I self-host Packagist?
Yes. Packagist can be self-hosted on your own server or infrastructure.
What is Packagist an alternative to?
Packagist is an open-source alternative to Cloudsmith. Other open-source alternatives to Cloudsmith include Harbor, Gitea and Harness.
Is Packagist actively maintained?
Yes. The most recent commit to Packagist was on 12 November 2026. The project has 1.8k stars on GitHub, with 2 added in the last 30 days.

Open-source alternatives to Packagist

See all

SaaS alternatives to Packagist

See all