vdlp/oc-phast-plugin

This package is abandoned and no longer maintained. No replacement package was suggested.

Boost your October CMS powered website load speed and rank better in search engines!

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 6

Forks: 1

Open Issues: 2

Type:october-plugin

2.1.1 2021-05-28 14:43 UTC

This package is auto-updated.

Last update: 2025-09-15 12:08:25 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.