Download the PHP package peakhour/magento2 without Composer
On this page you can find all versions of the php package peakhour/magento2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peakhour/magento2
More information about peakhour/magento2
Files in peakhour/magento2
Package magento2
Short Description Peakhour module for Magento 2.4.x
License BSD-3-Clause
Informations about the package magento2
Peakhour website acceleration for Magento 2
Congratulations on choosing Peakhour to accelerate your Magento 2 store. The Peakhour_Cdn extension uses Magento's built in page caching functionality to list Peakhour.io as a full page cache option. This enables greatly simplified full page caching with Peakhour and automated flushing of Peakhour's global cache when editing content through the Magento admin.
Prerequisites
Before installing make a backup of your Magento site as a precaution. If you have a development environment it is strongly recommended that you install the plugin there first to test and confirm functionality.
You will need a Peakhour account to be able to utilise this plugin. If you don't already have one you can sign up here, pricing is based on page views and all new signups get a free trial. Once you have your account the only other change you need to make to activate our acceleration and web application firewall is a DNS change. Do not enable the plugin until you have successfully configured your domain behind the Peakhour service.
Install via Magento marketplace
This is only available for Magento 2.2.x and greater, see the official magento doc page
Install via Composer
This will be done via command line on your Magento server. You will have to make sure you have composer installed.
php composer.phar require peakhour/magento2
php bin/magento module:enable Peakhour_Cdn
php bin/magento setup:upgrade
php bin/magento cache:clean
Then you can log in to the Magento admin and finish configuration.
Install via zip file
- Visit our github page
- Click on the 'clone or download' button and choose 'Download zip'
- Upload the zip file to your Magento server.
- Log onto the Magento server as the Magento user (if not possible to log in as the Magento User you will need to do some extra steps)
- Change directory to the Magento home and create the directory
app/code/Peakhour/Cdn
- Change directory to the newly created directory from step 5.
- unzip the zip file
- change directory back to the Magento Home
- verify with
php bin/magento module:status
and make sure Peakhour is listed - Enable module with
php bin/magento module:enable Peakhour_Cdn
- then run
php bin/magento setup:upgrade
- then clear caches with
php bin/magento cache:clean
Configuration
- Log in to your Magento admin
- Navigate to Stores -> Configuration, then Advanced -> System, then Full Page Cache
- Untick Use System Value
- Select Peakhour.io from the dropdown for Caching Application
- Expand the Peakhour.io Settings section
- Enter your Peakhour API Key:
- Log in to your Peakhour account
- Click on API Keys in the left menu.
- If you don't have a key for your domain then enter your domain name and click Create
- Copy the generated key and paste into the API Key field in the Peakhour.io settings section
- Enter your domain name and save config
- Click 'Test Connection', you will hopefully see 'Success!'
Trouble shooting
- If you installed via zip file/command line you may run into file permission issues if you did not do everything as the Magento user. See this stack overflow post to help resolve issues.
- If any of the bin/magento commands are failing make sure you have the same php version on the command line as the one that is running on your webserver.
- If you cannot resolve then disable the module
php bin/magento module:disable Peakhour_Cdn
and clean cachesphp bin/magento cache:clean
All versions of magento2 with dependencies
magento/module-config Version >=101.2.0
magento/module-store Version >=101.1.0
magento/module-page-cache Version >=100.4.0
magento/module-cache-invalidate Version >=100.4.0
magento/framework Version >=103.0.0
laminas/laminas-http Version ^2.6.0
ext-json Version *