承接 holisticagency/satis-http-client 相关项目开发

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

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

holisticagency/satis-http-client

最新稳定版本:1.0.0-alpha2

Composer 安装命令:

composer require holisticagency/satis-http-client

包简介

Dedicated http client for satis deployment

README 文档

README

Dedicated http client for satis deployment

This lirary helps to deploy composer repositories on a web server.

add the code below to your composer.json file :

"require": {
    "holisticagency/satis-http-client": "~1.0@alpha"
}

add the code below in a PHP file :

use holisticagency\satis\utilities\SatisHttpClient;

//Open repository
$client = new SatisHttpClient('http://domain.tld');
//Private repository (recommanded)
$client = new SatisHttpClient('http://domain.tld', array('user', 'password'));
//Retrieve the configuration
echo $client->getFile()->status()."\n";
echo $client->body()."\n";
// ...Code to eventually modify the configuration
// Update the configuration
echo $client->putFile()->status()."\n";
// ...Build a repository locally
// Update the repository with a bundled archive zip file
echo $client->putBundleZip($zipPath)->status()."\n";
// ...or put files one by one
echo $client->putDir($workingDir)->status()."\n";

$zipPath is a zip file containing the result of a satis build command.

$workingDir is where, locally, the result of a satis build is done. It is intended to contain a set of files like packages.json.

Finally, It is supposed to avoid sending every kind of files but Json or Zip files. It is strongly recommanded to check and set the web server parameters.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-07