Karel Wintersky's Application µFramework

2.12.0 2024-07-07 12:06 UTC

README

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