PHP code example of highperapp / highper-php
1. Go to this page and download the library: Download highperapp/highper-php 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/ */
highperapp / highper-php example snippets
use HighPerApp\HighPer\Foundation\Application;
// Create application with auto-discovery
$app = new Application([
'packages' => [
'auto_discover' => true, # Automatically load installed packages
'websockets' => true, # Enable WebSocket support
'database' => true, # Enable async database
'cache' => true, # Enable high-performance caching
]
]);
// Bootstrap and run
$app->bootstrap();
$app->run();
bash
composer