bitkorn/code-create
Composer 安装命令:
composer create-project bitkorn/code-create
包简介
Create Module, Data Entity, Controller with Factory, Table with Factory
关键字:
README 文档
README
CodeCreate creates:
- Controller (REST, AJAX, HTML)
- Factory
- module.config.php: controllers->factories
- Table
- Factory
- module.config.php: service_manager->factories
- Form
- Factory
- module.config.php: service_manager->factories
- Service
- Factory
- module.config.php: service_manager->factories
install instructions
require module \Bitkorn\Trinket
Syntax highlighting with prism
Some with jQuery & jQuery UI
Trial trinket
For Zend way (laminas/laminas-code):
composer require laminas/laminas-code
To generate Config Array (laminas/laminas-config):
composer require laminas/laminas-config
For Nette way (nette/php-generator, doc.nette.org/en/3.0/php-generator):
composer require nette/php-generator
use CodeCreate
To use CodeCreate
- all is PSR-4
- folder structure is ZF3
- e.g. the Module.php is in /src
- you will have a extra config file
- SomeModule/config/codecreate.config.php
- file owner must be the webserver user (e.g. www-data)
And in Module.php you will merge the configs:
public function getConfig()
{
return ArrayUtils::merge(include __DIR__ . '/../config/module.config.php', include __DIR__ . '/../config/codecreate.config.php');
}
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-09-11