2017 © Pedro Peláez
 

library phast

A toolbox for optimizing web page performance

image

kiboit/phast

A toolbox for optimizing web page performance

  • Wednesday, July 25, 2018
  • by kiboit
  • Repository
  • 3 Watchers
  • 24 Stars
  • 89 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 8 Open issues
  • 35 Versions
  • 3 % Grown

The README.md

Phast

Phast is a unique automated page optimization suite for PHP by Kibo IT., (*1)

Phast applies advanced optimization techniques to any PHP-based site without changing any code. Optimizations are applied in such a way that no changes to your site are necessary. Sites optimized by Phast easily score 90+ in Google PageSpeed Insights, and usually reach 100/100 with small adjustments., (*2)

A free integration for WordPress is available as PhastPress (GitHub)., (*3)

Van der Let & Partners have contributed an OctoberCMS plugin for Phast., (*4)

Contact Kibo IT (email): We'd love your feedback. We can help you try out Phast and provide custom services for website optimization., (*5)

Getting started

Install Phast into your project using Composer:, (*6)

composer install kiboit/phast:dev-master

Create http://your.site/phast.php to serve optimized versions of resources:, (*7)

<?php
require 'vendor/autoload.php';
\Kibo\Phast\PhastServices::serve();

Load Phast on all of your pages:, (*8)

<?php
// At the top of your index.php
require 'vendor/autoload.php';
\Kibo\Phast\PhastDocumentFilters::deploy();

Test your site!, (*9)

Features

  • Image optimization: Images are recompressed, optimised (via pngquant and jpegtran) and converted to WebP, when supported by the browser., (*10)

  • CSS optimization: We break down included stylesheets and remove all class-based selectors that cannot apply to the current document. The optimised CSS is inlined. After the page has loaded, the original CSS is included, so any classes used in JavaScript will be available., (*11)

  • CSS inlining: Small stylesheets (including Google Fonts) get inlined., (*12)

  • Delay IFrames: IFrames are loaded after the page finishes, to prevent stealing bandwidth and resources from the main page load., (*13)

  • Scripts rearrangement: We move all <script> tags to the bottom of the page, so the important stuff gets loaded first., (*14)

  • Scripts deferring: Scripts are loaded asynchronously with full compatibility. To make sure that legacy scripts work while being loaded asynchronously, we use a custom script loader that loads the scripts in order, and triggers DOMContentLoaded when they have finished., (*15)

  • Scripts proxy: External scripts such as Google Analytics are loaded through a proxy script. This allows us to extend the cache duration., (*16)

Browser compatibility

Phast is tested to work on all browser versions equal or higher than the following:, (*17)

  • Firefox 56
  • Chrome 62
  • Edge (any version)
  • Safari 6.2
  • IE 11

Thanks, BrowserStack!

BrowserStack, (*18)

BrowserStack generously provides us with free access to their browser testing platform, so we can make sure Phast works on all supported browsers., (*19)

The Versions

25/07 2018

dev-cloudflare-caching-fix

dev-cloudflare-caching-fix

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

24/07 2018

dev-master

9999999-dev

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0 AGPL-3.0-or-later

The Requires

 

The Development Requires

24/07 2018

dev-scripts-bundling

dev-scripts-bundling

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

11/07 2018

1.8.0

1.8.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

06/07 2018

dev-issues-06072018

dev-issues-06072018

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

05/07 2018

dev-bundler-short-urls

dev-bundler-short-urls

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

04/07 2018

1.7.0

1.7.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

27/06 2018

1.6.0

1.6.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

25/06 2018

1.5.6

1.5.6.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

18/06 2018

1.5.5

1.5.5.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

14/06 2018

1.5.4

1.5.4.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

11/06 2018

1.5.3

1.5.3.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

29/05 2018

1.5.2

1.5.2.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

23/05 2018

1.5.1

1.5.1.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

11/05 2018

1.5.0

1.5.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

03/05 2018

1.4.0

1.4.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

03/05 2018

1.3.2

1.3.2.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

27/04 2018

1.3.1

1.3.1.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

18/04 2018

1.3.0

1.3.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

13/04 2018

1.2.0

1.2.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

12/04 2018

1.1.0

1.1.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

02/04 2018

dev-css-bundling

dev-css-bundling

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

06/03 2018

dev-public-resources-storage

dev-public-resources-storage

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

01/03 2018

dev-images-inlining

dev-images-inlining

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

28/02 2018

dev-improvements

dev-improvements

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

23/02 2018

dev-babel

dev-babel

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

21/02 2018

dev-advertise

dev-advertise

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

20/02 2018

dev-compile

dev-compile

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

07/02 2018

dev-phar

dev-phar

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

30/01 2018

dev-css-optimizer

dev-css-optimizer

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0-or-later

The Requires

 

The Development Requires

16/01 2018

dev-phastpress

dev-phastpress

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

12/01 2018

1.0.0

1.0.0.0

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

22/12 2017

dev-phast-press

dev-phast-press

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

12/12 2017

dev-rewrite

dev-rewrite

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires

12/12 2017

dev-diagnostics

dev-diagnostics

A toolbox for optimizing web page performance

  Sources   Download

AGPL-3.0

The Requires

 

The Development Requires