eventum / rpc
Eventum RPC Client Library
Installs: 29 471
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 3
Requires
- php: ^5.3.0 || ^7.0
- phpxmlrpc/phpxmlrpc: ^4.2.2
This package is auto-updated.
Last update: 2024-10-29 04:19:34 UTC
README
Eventum RPC Client Library.
Install via Composer
We recommend installing this package with Composer.
Download Composer
To download Composer, run in the root directory of your project:
curl -sS https://getcomposer.org/installer | php
You should now have the file composer.phar
in your project directory.
Install Dependencies
Run in your project root:
php composer.phar require eventum/rpc
You should now have the files composer.json
and composer.lock
as well as
the directory vendor
in your project directory. If you use a version control
system, composer.json
should be added to it.
Require Autoloader
After installing the dependencies, you need to require the Composer autoloader from your code:
require __DIR__ . '/vendor/autoload.php';
Usage
<?php require __DIR__ . '/vendor/autoload.php'; $rpc_url = "http://example.org/rpc/xmlrpc.php"; $client = new \Eventum\RPC\EventumXmlRpcClient($rpc_url); $client->setCredentials("user@example.org", "password"); // add user@example.org as authorized replier in issue $issue_id belonging to project $project_id $client->addAuthorizedReplier($issue_id, $project_id, "user@example.org");
The available XMLRPC Methods can also be seen from XMLRPC.md.
Copyright and License
This software is Copyright (c) 2008 - 2020 Eventum Team.
This is free software, licensed under the GNU General Public License version 2.