brightlogic-tech/project-template
最新稳定版本:v1.0.1
Composer 安装命令:
composer require brightlogic-tech/project-template
包简介
Package with common classes used across multiple projects.
README 文档
README
Commonly used patterns & services for PHP projects hosted on AWS using Bref, Nette and GraPHPinator.
Bootstrap
TBA
Preloading
Simple preloader class to recursively walk directory and preload *.php files.
Create simple PHP file and initializer preloader.
<?php declare(strict_types = 1); \chdir(__DIR__); include __DIR__ . '/../vendor/autoload.php'; $paths = [ \BrightLogic\Template\Bootstrap::PROJECT_ROOT, ]; $preloader = new \BrightLogic\Template\Bootstrap(...$paths); $preloader->load();
StorageFile (S3)
TBA
Mailer (SES)
TBA
Messaging/Queue of tasks (SQS)
TBA
Logging
Redirects logs to database instead of filesystem.
Register services in configuration neon file.
services: - BrightLogic\Template\Logging\LogTable tracy.logger: BrightLogic\Template\Logging\DbLogger
log table needs to be created. You may use provided bean to generate this table.
CREATE TABLE `log` ( `id` int(11) unsigned auto_increment primary key, `time` datetime default current_timestamp() not null, `level` varchar(20) not null, `head` varchar(255) not null, `message` longtext null ) CHARSET = utf8mb4; CREATE INDEX `log_level_index` ON `log` (level);
Commands
Commonly used commands which ease deploying and development.
Register services in configuration neon file.
services: - BrightLogic\Template\Command\ClearCacheCommand - BrightLogic\Template\Command\CompareDbCommand(%projectName%) - CoolBeans\Command\SqlGeneratorCommand
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-02