kambuse/xml-rpc

A simple xml-rpc wrapper for laravel based on incutio xml_library

v1.0.0 2020-05-10 18:14 UTC

This package is not auto-updated.

Last update: 2025-07-01 18:04:58 UTC


README

Package to use xmlrpc (wordpress posts) with laravel 4

Installation:

Add to your composer.json:

"martinmarianetti/xml-rpc": "dev-master"

Add this to your config/app.php file:

'providers' => array(
    ....
    'Martinmarianetti\XmlRpc\XmlRpcServiceProvider',
),

Run this command:

composer update

Example usage:

$xmlrpc = new Xmlrpc;
$xmlrpc::configure($url . "xmlrpc.php", $username, $password);
$xmlrpc::create_post(utf8_encode($ttitle), utf8_encode($body), $imagePath, $category, utf8_encode($t));

Note: Not all functions documented.

You can look at the code for more functions or add yours!!