1. Go to this page and download the library: Download wkeller/bigpipe-pipeline library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wkeller / bigpipe-pipeline example snippets
// Initiate Pagelet (creates new div with ID)
$element = new Pagelet('static-text');
// Adding the text content inside of the DIV element
$element->addContent('Static text content inside of the "static-text" DIV element.');
// Priting Pagelet element
echo $element;
// Initiate Pagelet (creates new div with ID)
$element = new Pagelet('it-is-a-file');
// Adding the content of the file inside of the DIV element
$element->addContent('path/to/file/filename.php', true);
// Priting Pagelet element
echo $element;
// Initiate Pagelet
$element = new Pagelet('css');
// Adding style files to the head
$pagelet->addCss([
'path/to/file/style.css',
'path/to/file/fonts.css'
]);
// Priting Pagelet element
echo $element;
// Initiate Pagelet
$element = new Pagelet('javascript');
// Adding JavaScript files to the footer
$pagelet->addJS([
'path/to/file/jQuery.js',
'path/to/file/script.js'
]);
// Priting Pagelet element
echo $element;
// Initiate Pagelet
$element = new Pagelet('footer', null, 30);
// Adding JavaScript files to the footer
$pagelet->addJS(['path/to/file/footer.js']);
// Adding the text content inside of the DIV element
$element->addContent('Footer content goes here.');
// Priting Pagelet element
echo $element;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.