定制 evolution7/craft-console 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

evolution7/craft-console

最新稳定版本:0.2

Composer 安装命令:

composer require evolution7/craft-console

包简介

CLI for CraftCMS.

README 文档

README

#Craft Console

Command/Task runner for Craft CMS. This enables you to run Craft's commands from the CLI.

Installation

This plugin can be easily added to any composer-managed Craft project.

composer require evolution7/craft-console

##Usage

From the project root, run:

vendor/bin/console

Alternatively, you can specify a bin folder in composer.json and call the executable from there ($projectRoot/bin/console).

    "config": {
        "bin-dir": "bin"
    },

This will give you a list of available commands.

Yii command runner (based on Yii v1.1.16)
Usage: bin/console <command-name> [parameters...]

The following commands are available:
 - base
 - migrate
 - querygen
 - shell
 - sync

To see individual command help, use the following:
   bin/console help <command-name>

Synchronise plugins between deployments

The plugin comes with an example sync task that activates the plugins you want (to be run on deployment):

bin/console sync plugin

This task reads the content of craft/config/plugins.php and activates/deactivates plugins accordingly:

<?php
//craft/config/plugins.php
return [
    'activePlugins' => [
        'Project',
        'ArtVandelay',
        'Bugsnag',
        'Console',
        'SproutForms',
        'SproutSeo',
    ]
];

Output:

$ php bin/console sync plugin
Synchronizing plugins
Plugin ArtVandelay is already active.
Installing Bugsnag plugin.
Plugin Console is already active.
Enabling Project plugin.
Plugin SproutForms is already active.
Plugin SproutSeo is already active.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固