Top Marks Composer Package Manager

If you like what we do, then a sponsorship, or one time donation would mean the world!

Why not join the discord community for devs everywhere:

Like it?
Leave a review
(please)
Something wrong?
Report an issue
Browse, install, update and remove the Composer dependencies of every composer.json in your
workspace, through Composer itself.
Project links
[!IMPORTANT]
This extension is in preview. It changes your projects by running Composer, so commit or back up
your work first, and report problems through GitHub Issues.
Features
- Installed, Vulnerable, Updates and Consolidate for every
composer.json in the workspace,
with the versions composer.lock records.
- Changes through Composer itself: Install, Uninstall, Update, Update all and Consolidate run
Composer in the project's folder, one command at a time, and never edit
composer.json or
composer.lock themselves.
- Vulnerabilities from Packagist's security advisories. A package that could not be checked is
named, never reported as clear.
- Sources lists each project's repositories, your global ones and Packagist, and adds or removes
a project's own Composer, git or local-folder repository.
- Browse searches Packagist and shows what you already use.
- Readable in every built-in theme, with the layout and controls the other managers share.
The user guide describes each tab and every rule in full.
Getting started
- Install this extension. The Top Marks Package Managers container in the Activity Bar comes
with it.
- Open a folder that holds a
composer.json, and open Composer Package Manager in that
container.
- Browse your packages and their updates straight away, from Packagist and your own global
repositories. Changes wait until you trust the workspace: until then nothing is run or changed,
and no credential is sent.
- Commit a
composer.lock: a project without one is listed but gets no updates or vulnerability
checks.
Requirements
- VS Code 1.116 or later. An older VS Code does not load the extension: it says the extension is
not compatible and names the version it requires.
- Listing and lookups need neither PHP nor Composer: the extension reads the manifests and locks
and asks the repositories itself.
- Changes need Composer 2.7.8 or later, on your
PATH outside the workspace or set in
composerPath. Composer 1 is refused; an older Composer 2 still runs changes, with a warning.
Settings
| Setting |
Default |
What it does |
topMarksComposerPackageManager.composerPath |
"" |
The Composer program: an absolute path, or a command name on the PATH. Empty uses composer |
topMarksComposerPackageManager.consolidateInOneCommand |
false |
Consolidate runs one composer require per project and section instead of one per package |
composerPath is a machine setting, read from your own settings only, so a workspace cannot choose
which program runs. If composer on your PATH is a version manager's shim, set composerPath to
the real program.
Private registries
Private repositories are read with the credentials Composer itself would use: your global
auth.json, the project's auth.json and COMPOSER_AUTH, a later one winning for the same host.
Only http-basic and bearer are used, each only for the exact host and port it names, and never
shown, logged or put in a command. Until you trust the workspace, the project's repositories and
auth.json are ignored and your own credentials are not sent, so a package one of your repositories
hides from a stranger waits for trust.
Private repositories and credentials
in the user guide has the details.
Part of Top Marks Package Managers
This extension is one of a family of package managers for VS Code that share a layout and a home in
the Top Marks Package Managers Activity Bar container. See the suite overview
for the rest of the family:
Licence
Copyright (c) 2026 Top Marks Development Limited. Licensed under
GNU Affero General Public License v3.0 only.
The view's icons are Codicons by Microsoft, licensed
under CC BY 4.0; the licence ships with the font in
media/codicons/.