Skip to content

Dependency Management

The Dependency Management card lets you browse Packagist and install PHP packages directly from your WordPress admin, without SSH access.

Loopress maintains its own composer.json under wp-content/lps/. Installed packages land in wp-content/lps/vendor/. This location is separate from the plugin itself so packages survive plugin updates and can be used anywhere on the site via the Composer autoloader.

wp-content/
lps/
composer.json ← managed by Loopress
vendor/
autoload.php ← require this in your snippets
guzzlehttp/guzzle/
...
  1. Type the package name or a keyword in the Search a Composer package field (minimum 2 characters)
  2. Select the package from the dropdown
  3. Choose a version (compatible versions are pre-selected automatically based on your PHP version)
  4. Click Install

Version compatibility indicators:

IconMeaning
🟢Compatible with your PHP version
šŸ”“Requires a different PHP version
ā“No PHP constraint declared

In the Installed Packages card, click Remove next to the package you want to uninstall.

The Repair action runs composer update against wp-content/lps/composer.json. Use it when:

  • The autoloader is missing after a server migration
  • The lockfile has drifted from composer.json
  • A previous install left the dependencies in an inconsistent state

The autoload error banner at the top of the page appears automatically when Loopress detects a missing or broken autoloader and prompts you to run Repair.

  • All write operations (install, remove, repair) are blocked on production environments.
  • Composer is executed in-process (via the composer/composer library). Long-running installs extend the PHP execution time limit to 5 minutes automatically.
  • Only stable versions are shown in the version picker (no dev-* releases).