Composer packages Pro
Install the PHP packages in composer.lock into vendor/, without Composer on the server.
For a theme or plugin with a composer.json and a composer.lock, Temper installs the locked packages into vendor/ without Composer, and writes an autoloader.
Install#
- Open the Build tab in the side panel. The PHP dependencies row shows how many packages the lock file lists, and whether they're not installed, installed, or the lock file changed since the last install.
- Click Install.
Temper downloads each package's zip from the lock file into vendor/ and writes vendor/autoload.php. It supports psr-4, psr-0, classmap and files autoloading, with Composer's file identifiers, so a package shared with another plugin loads once.
When a package needs a newer PHP than the server runs, the row shows a warning for it.
What it needs#
- A
composer.lock. Temper installs exactly what it lists. Installing fromcomposer.jsonalone isn't supported: runcomposer updateonce on a computer and commit the lock file. - A zip download (
dist) for each package in the lock file. A package without one can't be installed this way.
What it doesn't do#
- Composer plugins don't run. For the Jetpack autoloader, Temper writes its entry point instead.
- Downloads from private or internal network addresses are refused, because the lock file comes from the working copy, which imports and AI assistants can write.
- Your GitHub connection is used for downloads from GitHub's API only, over HTTPS.
When packages are missing#
A preview of a project whose packages aren't installed says so: "This theme uses Composer packages that are not installed. In Temper, open the Build panel and click Install next to PHP dependencies." Importing a plugin whose Composer packages aren't in the download notes it too.
vendor/ is usually in .gitignore, so it isn't committed, but it's published with the project.
From an AI assistant#
An assistant can run the install with install_php_dependencies. See the MCP tool reference.