承接 hphio/api-cli 相关项目开发

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

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

hphio/api-cli

Composer 安装命令:

composer require hphio/api-cli

包简介

Implements a CLI back-end for managing web apps and APIs

README 文档

README

Command line interface for APIs and WebApps.

Usage

Execution from the command line

If you want to execute CLI commands from the command line, use the '-x' argument followed by the command youw ant to execute.

Example: Suppose you want to create a cron job that executes database cleanup tokens, which will run once per minute and remove access tokens that have expired. You sould setup a cron job like this:

# m h  dom mon dow   command
  * *   *   *   *    /home/user/php/app/cli.php -x "database cleanup tokens"

Note on paths: the command above will not work out of the box. You must add the following to your cli.php file in order to change the working directory to that directory:

chdir(__DIR__);

This command will tell the system executing the scripts to change the working directory to the same directory where the cli.php directory is location. Otherwise, the cronjob will attempt to execute from the user's home directory, and it will not be able to run properly.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-10-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固