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



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


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

Integration of Manifist builders in your manifest-file:

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


Add manifest-file to <html> tag.

<html> tag:

<html manifest="manifest.php">



PHP Manifest Builder 0.2.13 (.zip)

Source code


Vladimir Guloyants
Hinrichsring, 21
30177 Hannover Germany


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