Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.49 KB

README.md

File metadata and controls

67 lines (42 loc) · 1.49 KB

Arris µ-Framework

Class collection for some my projects

Sub-packages

How to use

App - Реестр

$app = App::factory();

$app->set('PDO', new PDO(/* params */));
$app->set(PHPAuth::class, new PHPAuth($pdo, (new PHPAuthConfig())->loadENV('_env')->getConfig() ));
$app->set(Smarty::class, new Smarty());

$app->addService('pdo.main', new PDO());

later:

$app = App::factory(); // or ::handle()

$dbc = $app->get('PDO');

// or

$dbc = (App::access())->get('PDO');

// or

$dbc = (App::factory())->getService('pdo.main'); 

CLIConsole

  • todo

DB

  • todo

DBPool

  • todo

Hook

  • todo

Utils\Timer