承接 thelia/command-to-url-module 相关项目开发

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

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

thelia/command-to-url-module

最新稳定版本:2.0.0

Composer 安装命令:

composer require thelia/command-to-url-module

包简介

README 文档

README

This module allow you to execute command from url

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is CommandToUrl.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/command-to-url-module ~1.0.0

Usage

Configuration

By default all commands are disabled (for security reason).
You must enable them in module configuration page.

For each command you can (and its really encouraged) add two different security :

  • A token : you can specify a token who will be needed in url as parameter like this &token=MY_SECRET_TOKEN
  • Ips : you can specify some trusted ips separated by comma, only theses ips will be able to call this command by url

The two security check must be valid (if they are configured) to execute command

Execute command

The url to call commands look like this : /command?command=MY_COMMAND&token=MY_TOKEN&arguments[MY_ARGUMENT]=MY_ARGUMENT_VALUE&options[MY_OPTION]=MY_OPTION_VALUE

Some example with default Thelia commands:

  • /command?command=module:deactivate&token=e16sqdf46er8t4&arguments[module]=Carousel To deactivate carousel module
  • /command?command=cache:clear&token=e16sqdf46er8t4&options[--env]=prod To clear prod cache

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2019-06-21