Proposal for "Plesk"

» Metadata » Status
  • Category: Web Services
  • Proposer: Pedro Padron 
  • License: LGPL
  • Status: Proposed
» Description
Plesk is a webhosting control panel. This package provides access to the Plesk API, using PHP Arrays to make the requests (XML strings are also accepted).

The package must be used to send requests according to the official Plesk API RPC documentation. With it you can get domain data, create new accounts, manage services and many other operations.

It will receive a well-formed request Array, convert it to XML and perform the request to the Plesk Agent.

If the request was made using an Array, the response will be returned also as an Array. If it was sent using a XML string, the response will be returned as string also.

Why this package uses Arrays? Arrays in PHP are flexible and easy to manipulate. Please refer to the package documentation to see what it's all about.

This package IS NOT an implementation of Plesk API. This means you won’t find methods such as getAllDomains().

The reason why this package is not a full implementation of Plesk API is because of the flexibility that the API provides. In a single request you can perform several operations, which would save a precious time, and by creating a getAllDomains() method, for example, that flexibility would be lost.

Different applications have different integration needs, so the goal of Services_Plesk is to provide the lower layer of communication between the application and a Plesk server. This way, I recommend you to create your own functions using Services_Plesk to handle the requests to the Plesk server.
» Dependencies » Links
  • PHP >= 5.0
  • PHP Extension: cURL
  • PEAR >= 1.4.11
  • PEAR XML_Serializer >= 0.18.0
» Timeline » Changelog
  • First Draft: 2008-01-06
  • Proposal: 2008-01-06