Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.
/ php-plesk Public archive

Binding for PHP to communicate with the Plesk XML API

Notifications You must be signed in to change notification settings

DALTCORE/php-plesk

Repository files navigation

php-plesk

Origin

Original fork of: pmill/php-plesk

Introduction

This package contains a PHP client for the Plesk RPC API.

The following features are currently supported:

  • List IP addresses
  • List service plans
  • Get server information and stats
  • List/add/update/delete clients
  • List/add/update/delete subscriptions
  • List/add/update/delete sites
  • List/add/update/delete email addresses
  • List/add/update/delete domain aliases
  • List/add/update/delete subdomains
  • List database servers
  • List/add/delete databases
  • Add database users
  • Create single sign-on session
  • Further functionality can be seen in the examples folder
  • Open a ticket with requests for exposing further functionality

Requirements

This library package requires PHP 5.4 or later and Plesk 12.0 till 17.5

Usage

The following example shows how to retrieve the list of websites available for the supplied user.

$config = array(
    'host'=>'example.com',
    'username'=>'username',
    'password'=>'password',
);

$request = new \DALTCORE\Plesk\ListClients($config);
$info = $request->process();

Further examples are available in the examples directory.

Version History

See the CHANGELOG.md file.

Copyright and License

php-plesk Copyright (c) 2013 pmill (dev.pmill@gmail.com) Copyright (c) 2018 DALTCORE All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

About

Binding for PHP to communicate with the Plesk XML API

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages