Install on a PHP site (no WordPress)

Use the PHP SDK for custom sites, Magento 2 or OpenCart.

The PHP SDK serves optimized pages from a local cache before your application runs, and reports pages that are not optimized yet.

  1. Copy the connectors/php-sdk folder to your server.
  2. Run bin/speedpack connect with your API key, API secret and site address. It writes the cache configuration.
  3. Add the two-line snippet from the README at the very top of your front controller (index.php).

Step-by-step guides for Magento 2 and OpenCart are in the SDK docs folder.