定制 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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固