PHP code example of debuss-a / piccolo-framework

1. Go to this page and download the library: Download debuss-a/piccolo-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/ */

    

debuss-a / piccolo-framework example snippets


// public/index.php
Kernel::boot(dirname(__DIR__))->http()->run();

// bin/console
exit(Kernel::boot(dirname(__DIR__))->console()->run());
text
config/
  configuration.php   optional: returns a Borsch\Config\Config (default: .env, then the environment variables)
  container.php       optional: static function (ContainerBuilder $builder, Config $config, Environment $environment): void
  pipeline.php        static function (Application $app, ContainerInterface $container): void
  routes.php          static function (Application $app, ContainerInterface $container): void
  commands.php        optional: returns ['name' => CommandClass::class, ...]
storage/
  cache/  logs/  templates/