alexxwiz / tiny-ssi
Tiny SSI - very small Server Side Includes parser
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/alexxwiz/tiny-ssi
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2026-01-17 23:14:23 UTC
README
A minimal implementation of Apache SSI (server-side includes) for PHP 5.4+
Usage
Currently only supports doing includes, set var and echo var.
<!--#include virtual="header.html" --> <div class="container"> <h1>title</h1> <p class="lead"> contents </p> </div> <!--#include virtual="footer.html" -->
expecting that 'header.html' and 'footer.html' are in the same folder as the above html file, you can then do:
require_once('tiny_ssi.php'); $parser = new TinySSI; echo $parser->parse('/test/ssi_test_body.html');
License
MIT