plesk / ext-php-api-lib-demo

Demonstrates how to use PHP library for Plesk API-RPC in the extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension PHP library for Plesk API-RPC demo

Apache 2

A test extension intended to demonstrate how to use PHP library for Plesk API-RPC

How to use PHP library for Plesk API-RPC in your extension

  1. Add composer.json with require of plesk/api-php-lib
  2. Add use PleskX\Api\InternalClient in you PHP file (controller or library class)
  3. Use necessary API calls

You can find an example in src/plib/controllers/IndexController.php

PHP library for Plesk API-RPC

Source coude of the library is here. You are welcome to contribute!

About

Demonstrates how to use PHP library for Plesk API-RPC in the extension


Languages

Language:PHP 69.1%Language:HTML 30.9%