PHPackages                             mecanik/laminas-turbo-speed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mecanik/laminas-turbo-speed

ActiveLibrary

mecanik/laminas-turbo-speed
===========================

Laminas Turbo Speed Module

111PHP

Since Apr 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Mecanik/laminas-turbo-speed)[ Packagist](https://packagist.org/packages/mecanik/laminas-turbo-speed)[ RSS](/packages/mecanik-laminas-turbo-speed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laminas Turbo Speed - Laminas Speed Optimization Module
=======================================================

[](#laminas-turbo-speed---laminas-speed-optimization-module)

[![Latest Stable Version](https://camo.githubusercontent.com/968f14ac40a7d308f799a3b482e9fcd70d695f4e9228ff5bfc96ef6be4b3fe5a/68747470733a2f2f706f7365722e707567782e6f72672f6d6563616e696b2f6c616d696e61732d747572626f2d73706565642f76)](//packagist.org/packages/mecanik/laminas-turbo-speed)[![Total Downloads](https://camo.githubusercontent.com/a007eeef6e370c41960736a866ff581a49b5f15d3d79d87e71f3e63624ed74af/68747470733a2f2f706f7365722e707567782e6f72672f6d6563616e696b2f6c616d696e61732d747572626f2d73706565642f646f776e6c6f616473)](//packagist.org/packages/mecanik/laminas-turbo-speed)[![Latest Unstable Version](https://camo.githubusercontent.com/faf425edaa2d3d4f3b3df6c6f9413e9bb1a10e55f942ae4044b97f7e30db0d17/68747470733a2f2f706f7365722e707567782e6f72672f6d6563616e696b2f6c616d696e61732d747572626f2d73706565642f762f756e737461626c65)](//packagist.org/packages/mecanik/laminas-turbo-speed)[![License](https://camo.githubusercontent.com/eb3ed9508fcae2ad12f77030e53291a836a5833539d2422d3cb9b0ce24516cf7/68747470733a2f2f706f7365722e707567782e6f72672f6d6563616e696b2f6c616d696e61732d747572626f2d73706565642f6c6963656e7365)](//packagist.org/packages/mecanik/laminas-turbo-speed)

Description
-----------

[](#description)

Out of the box module to supercharge your Laminas website performance by minifying/compressing HTML inline content and pushing assets via HTTP/2. This module works for HTML5 type for now, do not use with XHTML.

### Current Features:

[](#current-features)

- Events registered via ListenerAggregateInterface
- Easy to switch on/off any specific feature or the whole module
- Ability to force https for all routes (via onRoute)
- Ability to minify inline javascript (removes comments, spaces)
- Ability to minify inline stylesheet (removes comments, spaces, CDATA, line breaks)
- Ability to minify HTML (removes comments, spaces, line breaks)
- Ability to push scripts via HTTP/2
- Ability to push stylesheets via HTTP/2
- Ability to push images via HTTP/2
- PHP 7 friendly (and recommended)
- Does not "break" your pages/content
- Superfast processing, no cpu overhead (regex patterns have been optimised to be very fast)
- No other dependencies (than Laminas)

### Planned Features:

[](#planned-features)

- Caching via Redis
- Caching via Memcached
- Caching via CDN (push/pull)
- Better HTML, JS, CSS minify
- More...

Installation
------------

[](#installation)

Installation is done via Composer:

```
composer require mecanik/zf3turbo

```

Module Configuration
--------------------

[](#module-configuration)

Create config/autoload/laminas-turbo-speed.global.php with the content:

```
