Submitting a theme to Packagist
This page is for designers whose theme is in a public Git repository with a valid composer.json. Packagist is the
main index Composer searches; once your theme is there, anyone can run composer require yourvendor/mytheme.
Before you start
- A public repository with
composer.jsonat its root (composer.json for a theme). composer validatepasses.- At least one release tag pushed (GitHub releases). Without a tag, Packagist lists only the
branch (
dev-main). - A Packagist account. Signing in with GitHub makes the automatic updates simplest (Keeping Packagist up to date automatically).
- The package name is free:
https://packagist.org/packages/yourvendor/mythemeshows "not found".
Step by step
Sign in on packagist.org.
Open Submit (
https://packagist.org/packages/submit).Enter the repository URL (
https://github.com/yourvendor/mytheme) and press Check. Packagist readscomposer.jsonand shows the package name it found.Confirm with Submit. The package page opens and the versions appear after Packagist has read the repository.
Check the package page: name, description, license, the README, and the versions (
v1.0.0shown as1.0.0, plusdev-main).Set up the automatic update right away (Keeping Packagist up to date automatically).
Test from a clean installation:
composer require yourvendor/mythemeExpected: Composer installs the newest tagged version into
extension/<name>.
What Packagist reads
Packagist reads composer.json from every tag and branch. The version comes from the tag name; a version field in
composer.json, if present, must agree with it. A theme that also uses the 7x theme repositories as a model can
compare: https://repo.packagist.org/p2/se7enxweb/cjw_themes_jumper.json lists every version with its license and
source.
Related pages
- Testing a Composer install before publishing
- Packagist shows an old version
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.