for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* FlexiPeeHP - / related functions.
*
* @author Vítězslav Dvořák <[email protected]>
* @copyright (C) 2015-2017 Spoje.Net
*/
namespace FlexiPeeHP;
* Description of Common
* @author vitex
class Root extends RW {
* Update HTTPS certificate
* @param string $pem
* @return boolean
public function uploadCertificate($pem) {
$this->postFields = $pem;
$this->performRequest('/certificate', 'PUT');
return $this->lastResponseCode == 201;
}
* Get availble companies listing
* @param array $condition applay to listing
* @return array
public function companies($conditions = []) {
return $this->getFlexiData('/c', $conditions);