Package Data | |
---|---|
Maintainer Username: | mjmarianetti |
Package Create Date: | 2014-09-15 |
Package Last Update: | 2015-06-30 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:14:06 |
Package Statistics | |
---|---|
Total Downloads: | 40 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 6 |
Total Open Issues: | 1 |
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!!