1. Go to this page and download the library: Download iloveyou/alexandria 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/ */
iloveyou / alexandria example snippets
php
$loader = amespace = "", __DIR__ . "/app");
$output = alexandria\cms::start([
'db' => [
'driver' => 'pdo',
'dsn' => 'mysql:dbname=test;host=localhost',
'username' => 'user',
'password' => 'password',
],
'router' => [
'autoroute' => true, // pass routes to controllers that are matched with the namespace
'default_route' => 'index', // pass / queries to this controller
'fail_route' => 'pagenotfound', // pass not matched routes to this controller
],
'firewall' => [
'allow' => [
'192.168.0.0/16',
'remote.example.com',
],
'deny' => [
'all',
],
],
]);
echo $output;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.