Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freshost/ispconfigrestapi
A simple REST API PHP Client for ispconfig3 remote API.
https://github.com/freshost/ispconfigrestapi
api api-client api-rest composer composer-project ispconfig ispconfig3 php php-library
Last synced: 3 days ago
JSON representation
A simple REST API PHP Client for ispconfig3 remote API.
- Host: GitHub
- URL: https://github.com/freshost/ispconfigrestapi
- Owner: Freshost
- License: apache-2.0
- Created: 2023-03-26T17:52:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-19T21:11:59.000Z (over 1 year ago)
- Last Synced: 2024-12-15T22:49:38.094Z (7 days ago)
- Topics: api, api-client, api-rest, composer, composer-project, ispconfig, ispconfig3, php, php-library
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ISPConfig 3 REST API PHP Client
## Introduction
A simple REST API PHP Client for ispconfig3 remote API.
## Requirements
* PHP >= 5.4.0 (with [json](https://www.php.net/manual/en/json.installation.php) support)
## Getting started
### Composer
```bash
$ composer require freshost/ispconfig-restapi
```## Usage
The package can be included & used on any PHP application.
## Examples
``` php
$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.
``` php
$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.