承接 gud3/yii2-helpers 相关项目开发

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

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

gud3/yii2-helpers

Composer 安装命令:

composer require gud3/yii2-helpers

包简介

This is the package of classes that I use from project to project.

README 文档

README

This is the package of classes that I use from project to project.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist gud3/yii2-helpers "*"

or add

"gud3/yii2-helpers": "*"

to the require section of your composer.json file.

Migration

Usage for create template migration file, it saves you time, creates an empty template, to create a table.

return [
    'components' => [
        ...
    ],
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'templateFile' => '@vendor/gud3/yii2-helpers/migrations/templates/base.php'
        ],
    ],
    ...
];

If you need create index in table use class gud3\helpers\migrations\Indexes need extends of his and set and override the $indexes property. Where key in array it is a table name and value it's column example:

public $indexes = [
    'user' => ['email', 'status']
    ...
];

And delete function of the up, down. They are in Indexes class.

To create a table with countries in short codes for them, also inherit in the migration class from the Country class gud3\helpers\migrations\Countries, remove the functions up, down.

统计信息

  • 总下载量: 178
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-07-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固