1. Go to this page and download the library: Download mercury/framework 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/ */
mercury / framework example snippets
DROP TABLE IF EXISTS `m_blueprint`;
CREATE TABLE `m_blueprint` (
`blueprintid` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(10) DEFAULT NULL,
`content` longtext,
PRIMARY KEY (`blueprintid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `m_blueprint` (`blueprintid`, `type`, `content`)
VALUES
(1, 'CONTROLLER', '<?\nnamespace Mercury\\App\\{ModuleName}\\Controllers;\n\nuse Mercury\\Helper\\Controller;\n\nclass SampleController extends Controller {\n\n\n public function initcontroller() {\n\n /**\n * Avoid defining a constructor use this method instead\n */\n }\n\n public function indexAction() {\n\n echo \"Sample file\";\n }\n\n}'),
(2, 'VIEW', ' $this->layout($gs_template, $ga_templatedata)
<?
use Mercury\Helper\Application;
use Mercury\Helper\Profiler;
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Autoload
n
$go_app->runapp();
// Show the profiling result
$go_profiler->showresult();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.