PHP code example of phalcon-kit / core

1. Go to this page and download the library: Download phalcon-kit/core 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/ */

    

phalcon-kit / core example snippets


// index.php


use Phalcon\Autoload\Loader;
use PhalconKit\Bootstrap;

$loader = new Loader();
$loader->setFiles(['vendor/autoload.php']);
$loader->setNamespaces(['MyApp' => 'src/']);
$loader->register();

echo (new Bootstrap())->run();
shell
php -S 0.0.0.0:8000 /public/index.php