PHP code example of bootpress / page
1. Go to this page and download the library: Download bootpress/page 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/ */
bootpress / page example snippets
$page->response->request->query->get('key'); // or ...
$page->post('key'); // ie. a $_POST['key'] with benefits
php
use BootPress\Page\Component as Page;
$page = Page::html();
php
echo $page->display('<p>Content</p>');
php
$page->title = 'Page Title';
$page->description = 'Page description.';
$page->charset = 'UTF-8';
$page->language = 'en-us';
echo '<h1>'.$page->title.'</h1>'; // <h1>Page Title</h1>