PHP code example of bearcms / universal
1. Go to this page and download the library: Download bearcms/universal 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/ */
bearcms / universal example snippets
$bearCMS = new BearCMS\Universal([
'dataDir' => __DIR__ . '/../bearcms/data', // The directory where the website data will be stored
'logsDir' => __DIR__ . '/../bearcms/logs', // The directory for logs
'appSecretKey' => 'TODO' // Get your app secret key from https://bearcms.com/
]);
$bearCMS->captureStart();
// Place the HTML code of your page here (or
$response = $bearCMS->makeResponse('SOME HTML CODE');
$bearCMS->send($response);