承接 johnitvn/composer-runtime 相关项目开发

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

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

johnitvn/composer-runtime

最新稳定版本:1.0.0

Composer 安装命令:

composer require johnitvn/composer-runtime

包简介

Library for run composer in runtime without worrying about where it is installed

README 文档

README

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

Library for run composer in runtime without worrying about where it is installed

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist johnitvn/composer-runtime "*"

or add

"johnitvn/composer-runtime": "*"

to the require section of your composer.json file.

Usage

$process = new ComposerProcess('path\to\working_dir');
$process->runDisplayOutput('install');

The defaut composer and composer.phar will searched in local working directory or in system enviroment path. Process will throw ComposerNotInstalledException if composer not found. You can custom composer command if you installed compsoer but not set it in system enviroment

$process = new ComposerProcess('path\to\working_dir');
$process->setCommand('php /path/to/composer.phar');
$process->runDisplayOutput('install');

You have 3 options for run composer command

// Run command whithout any output
process->run($params) 
// Run command and capture output to output reference variable
process->runCapture($params, array &$output) 
// Run command and display output directly
process->runDisplayOutput($params) 

You can see cli-runtime for more detail.

If you want to run composer command with multiple parameters. Let call run method with array. Example

process->run(['install','-v']) 
process->runCapture(['install','-v'],$output)
$process->runDisplayOutput(['install','-v']);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固