vdlp / oc-phast-plugin
Boost your October CMS powered website load speed and rank better in search engines!
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 7
Forks: 0
Open Issues: 2
Type:october-plugin
Requires
- php: ^7.1||^8.0
- composer/installers: ^1.0
- kiboit/phast: ^1.100
This package is auto-updated.
Last update: 2021-07-13 14:17:31 UTC
README
Vdlp.Phast
Boost your OctoberCMS powered website load speed and rank better in search engines!
DISCLAIMER: This is a wrapper plugin for the awesome
kiboit/phast
package. All credits go to Kibo IT for creating this. The only thing we did is wrap it into a OctoberCMS plugin. If you have any issues with having this plugin to work, please go to the official GitHub repository: https://github.com/kiboit/phast
Features
- Image Compression
- Asynchronous CSS and JS Loading
- Critical CSS Optimization
- Resources Request Bundling
- Leverage Browser Caching
- Optimized for Google PageSpeed
More information can be found at: https://www.phast.io/
Configuration
- For the Phast engine to work you need to white-list a php file. To do so add the following lines to the
.htaccess
sections:
##
## White listed folders
##
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} !^/plugins/vdlp/phast/phast\.php*
...
...
##
## Block all PHP files, except index
##
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} !^/plugins/vdlp/phast/phast\.php*
...
...
To configure this plugin execute the following command:
php artisan vendor:publish --provider="Vdlp\Phast\ServiceProvider" --tag="config"
This will create a config/phast.php
file in your app where you can modify the configuration.
Please check the default configuration in vendor/kiboit/phast/src/Environment/config-default.php
.