PHPackages                             evheniy/html5-cache-bundle - 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. [Caching](/categories/caching)
4. /
5. evheniy/html5-cache-bundle

ActiveSymfony-bundle[Caching](/categories/caching)

evheniy/html5-cache-bundle
==========================

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

1.5.0(8y ago)12.4k1MITPHPPHP &gt;=7.1

Since Apr 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/evheniy/HTML5CacheBundle)[ Packagist](https://packagist.org/packages/evheniy/html5-cache-bundle)[ RSS](/packages/evheniy-html5-cache-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (11)Versions (9)Used By (1)

HTML5CacheBundle
================

[](#html5cachebundle)

This bundle provides HTML5 Application Cache for Symfony2

[![knpbundles.com](https://camo.githubusercontent.com/21d4f59f0bd86d1f9c2fd789ff41ac419133676faafef3e6cd8a8c3e1f5c75cd/687474703a2f2f6b6e7062756e646c65732e636f6d2f657668656e69792f48544d4c35436163686542756e646c652f6261646765)](http://knpbundles.com/evheniy/HTML5CacheBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/7c719b505a58c59d73827aa159b693c9e9bcca5e8f99a883f492d7afd7804627/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f68746d6c352d63616368652d62756e646c652f762f737461626c65)](https://packagist.org/packages/evheniy/html5-cache-bundle) [![Total Downloads](https://camo.githubusercontent.com/f9f304fdf22c9341c5a951345a010d31c8795ff10cd9e615cb50e2bbaa194edb/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f68746d6c352d63616368652d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/evheniy/html5-cache-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/d0bf7f3c3eccad94e76152ee2b41f794b7f3cef5fbc3f39828d4bc180850d5ec/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f68746d6c352d63616368652d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/evheniy/html5-cache-bundle) [![License](https://camo.githubusercontent.com/64459ae35dcb39616322792b687241583c54c4ba4beb2ef7cbdb6fbc4cd69344/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f68746d6c352d63616368652d62756e646c652f6c6963656e7365)](https://packagist.org/packages/evheniy/html5-cache-bundle)

[![Build Status](https://camo.githubusercontent.com/26a3c0f50124ceea2c6015c8c3cda6ad778c22c3801dc59fe7b277a1ef6926dc/68747470733a2f2f7472617669732d63692e6f72672f657668656e69792f48544d4c35436163686542756e646c652e737667)](https://travis-ci.org/evheniy/HTML5CacheBundle)[![Coverage Status](https://camo.githubusercontent.com/6faebbdf3a0e9e6e0db702cd088f708503d768c7c7a10a82c9d8149a0e9eebd1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f657668656e69792f48544d4c35436163686542756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/evheniy/HTML5CacheBundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0510286f50d4875039ea25c3e1dfde5bf2759dfce391c51125cc57f4c48580d3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f48544d4c35436163686542756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/HTML5CacheBundle/?branch=master) [![Build Status](https://camo.githubusercontent.com/683df044b60c644a5a686725cf562481923ccbe1acdaea9be2cf0bc58f0e48cf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f48544d4c35436163686542756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/HTML5CacheBundle/build-status/master)

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

[](#installation)

```
$ composer require evheniy/html5-cache-bundle "1.*"

```

Or add to composer.json

```
"evheniy/html5-cache-bundle": "1.*"

```

AppKernel:

```
public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\HTML5CacheBundle\HTML5CacheBundle(),
        );
        ...

```

config.yml:

```
#HTML5CacheBundle
html5_cache: ~

or

#HTML5CacheBundle
html5_cache:
    cdn: cdn.site.com
    http: true
    https: false
    custom_urls:
        - https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js
        - ...

```

layout.html.twig:

```

...

```

The last step

```
app/console manifest:dump

```

Documentation
-------------

[](#documentation)

You can use local CDN (domain):

```
html5_cache:
    cdn: cdn.site.com

```

Default value is empty

You can set protocols for local CDN:

```
html5_cache:
    cdn: cdn.site.com
    http:  true
    https: false

```

Default value: true (for both)

You can set custom urls:

```
html5_cache:
    custom_urls:
        - https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js
        - ...

```

Default value is empty

Partial using
-------------

[](#partial-using)

layout.html.twig:

```

...

```

page\_with\_cache.html.twig:

```
{%- extends "layout.html.twig" -%}
{%- block cache_manifest -%}{{- cache_manifest()|raw -}}{%- endblock -%}
...

```

page\_without\_cache.html.twig:

```
{%- extends "layout.html.twig" -%}
{%- block cache_manifest -%}{%- endblock -%}
...

```

JqueryBundle
------------

[](#jquerybundle)

If You are using [JqueryBundle](https://github.com/evheniy/JqueryBundle), this url:

```
https://ajax.googleapis.com/ajax/libs/jquery/{JqueryBundle.config.version}/jquery.min.js

```

will be inserted automatically

TwitterBootstrapBundle
----------------------

[](#twitterbootstrapbundle)

If You are using [TwitterBootstrapBundle](https://github.com/evheniy/TwitterBootstrapBundle), those urls:

```
- https://maxcdn.bootstrapcdn.com/bootstrap/{TwitterBootstrapBundle.config.version}/css/bootstrap.min.css
- https://maxcdn.bootstrapcdn.com/bootstrap/{TwitterBootstrapBundle.config.version}/css/bootstrap-theme.min.css
- https://maxcdn.bootstrapcdn.com/bootstrap/{TwitterBootstrapBundle.config.version}/js/bootstrap.min.js

```

will be inserted automatically

MaterializeBundle
-----------------

[](#materializebundle)

If You are using [MaterializeBundle](https://github.com/evheniy/MaterializeBundle), those urls:

```
- https://cdnjs.cloudflare.com/ajax/libs/materialize/{MaterializeBundle.config.version}/css/materialize.min.css
- https://cdnjs.cloudflare.com/ajax/libs/materialize/{MaterializeBundle.config.version}/js/materialize.min.js

```

will be inserted automatically

License
-------

[](#license)

This bundle is under the [MIT](https://github.com/evheniy/HTML5CacheBundle/blob/master/Resources/meta/LICENSE) license.

[Документация на русском языке](http://makedev.org/articles/symfony/bundles/html5_cache_bundle.html)

[Demo](http://makedev.org/) - Open page, then turn off network and update page

[HTML5 Application Cache](http://www.w3schools.com/html/html5_app_cache.asp)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 97% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~154 days

Recently: every ~237 days

Total

8

Last Release

2961d ago

PHP version history (3 changes)1.0PHP &gt;=5.3.0

1.3.0PHP &gt;=5.5.9

1.5.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e25a30b83f9493998640ece1013e05059e4dd4ac55a482c650eb760ac37d843?d=identicon)[evheniy](/maintainers/evheniy)

---

Top Contributors

[![evheniy](https://avatars.githubusercontent.com/u/1702242?v=4)](https://github.com/evheniy "evheniy (32 commits)")[![GenieTim](https://avatars.githubusercontent.com/u/8596965?v=4)](https://github.com/GenieTim "GenieTim (1 commits)")

---

Tags

symfonyHTML5cacheHTML5 Application CacheCache Manifest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/evheniy-html5-cache-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evheniy-html5-cache-bundle/health.svg)](https://phpackages.com/packages/evheniy-html5-cache-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
