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

dev-master 2015-06-30 19:32 UTC

This package is not auto-updated.

Last update: 2024-11-23 17:50:06 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!!