2017 © Pedro Peláez
 

library satis-http-client

Dedicated http client for satis deployment

image

holisticagency/satis-http-client

Dedicated http client for satis deployment

  • Tuesday, May 5, 2015
  • by gillesodret
  • Repository
  • 2 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

satis-http-client

Dedicated http client for satis deployment, (*1)

This lirary helps to deploy composer repositories on a web server., (*2)

add the code below to your composer.json file :, (*3)

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

add the code below in a PHP file :
```php
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., (*4)

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

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., (*6)

The Versions

05/05 2015

dev-master

9999999-dev https://github.com/holisticagency/satis-http-client

Dedicated http client for satis deployment

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gil

composer http deployment satis

15/04 2015

1.0.0-alpha2

1.0.0.0-alpha2 https://github.com/holisticagency/satis-http-client

Dedicated http client for satis deployment

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gil

composer http deployment satis

07/04 2015

1.0.0-alpha1

1.0.0.0-alpha1 https://github.com/holisticagency/satis-http-client

Dedicated http client for satis deployment

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Gil

composer http deployment satis