承接 bitkorn/code-create 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

doc.nette.org

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-09-11