de ru en

PHP Manifest Builder


About this project

ManifestBuilder is a Open Source tool to create a manifest file that contains a list of the resources for the browser’s Application Cache dynamically.

Version 0.2.13


Features:


Usage:

If you are using your .htaccess to add text/cache-manifest type you can use "cache.manifest" as filename. Otherwise you need to use .php extension for your manifest file

Content of the .htaccess file:


AddType text/cache-manifest .manifest
<FilesMatch "\.(manifest)$">
    SetHandler application/x-httpd-php
</FilesMatch>

                    

Create manifest.php or cache.manifest File (dependent on your .htaccess settings).

Integration of Manifist builders in your manifest-file:


require(realpath('path/to/ManifestBuilder'));
$mb = new ManifestBuilder();
$mb->addResources(array('resource1', 'resource2'), ManifestBuilder::SECTION_CACHE);
$mb->addResourcesFromDirectory('./img', ManifestBuilder::SECTION_CACHE);
$mb->flush();

                    

Add manifest-file to <html> tag.

<html> tag:


<html manifest="manifest.php">

                    

Downloads

PHP Manifest Builder 0.2.13 (.zip)

Source code

Imprint

Vladimir Guloyants
Hinrichsring, 21
30177 Hannover Germany

vladimir.guloyants@gmx.de

Disclaimer:

Despite carefull control of the content I assume no liability for the contents of external links.