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: 5

Watchers: 7

Forks: 0

Open Issues: 2

Type:october-plugin

2.1.1 2021-05-28 14:43 UTC

This package is auto-updated.

Last update: 2021-07-13 14:17:31 UTC


README

68747470733a2f2f706c7567696e732e76646c702e6e6c2f6f63746f626572636d732f69636f6e732f56646c702e50686173742e737667

Vdlp.Phast

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

68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f76646c702f6f632d70686173742d706c7567696e 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f76646c702f6f632d70686173742d706c7567696e 68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f76646c702f6f632d70686173742d706c7567696e2f6c6174657374 68747470733a2f2f62616467656e2e6e65742f62616467652f636d732f4f63746f626572253230434d53 68747470733a2f2f62616467656e2e6e65742f62616467652f747970652f706c7567696e 68747470733a2f2f706c7567696e732e76646c702e6e6c2f6f63746f626572636d732f62616467652f696e7374616c6c6174696f6e732e7068703f706c7567696e3d76646c702d7068617374

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.