Class collection for some my projects
- Core classes
- Arris.AppLogger,
composer require karelwintersky/arris.logger
- Arris.AppRouter,
composer require karelwintersky/arris.router
- Arris.AppLogger,
- Helpers
- [Arris.Helpers]
- Utils
- Arris.PHP_FileDownload,
composer require karelwintersky/arris.php-file-download
- Arris.PHP_FileDownload,
- Toolkits
- Arris.Toolkit.MimeTypes,
composer require karelwintersky/arris.toolkit.mimetypes
- Arris.Toolkit.Nginx,
composer require karelwintersky/arris.toolkit.nginx
- Arris.Toolkit.Sphinx,
composer require karelwintersky/arris.toolkit.sphinx
- Arris.Toolkit.MimeTypes,
$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');
- todo
- todo
- todo
- todo