freshost / ispconfig-restapi
API class for ISPconfig RESTAPI
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 2
Type:package
Requires
- php: >=5.4.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2024-12-20 00:50:18 UTC
README
Introduction
A simple REST API PHP Client for ispconfig3 remote API.
Requirements
- PHP >= 5.4.0 (with json support)
Getting started
Composer
$ composer require freshost/ispconfig-restapi
Usage
The package can be included & used on any PHP application.
Examples
$call = new ISPconfigAPI(['user' => 'remote_user', 'pass' => 'changeme', 'url' => 'https://ispconfig.local:8080']); $client = $call->call("client_get", ["client_id" => 1]); print_r($client);
You can allow the self signed certificate by set verifySSL variable.
$call = new ISPconfigAPI(['user' => 'remote_user', 'pass' => 'changeme', 'url' => 'https://ispconfig.local:8080', 'verifySSL' => false]);
Feedback and questions
Found a bug or missing a feature? Don't hesitate to create a new issue here on GitHub.