2017 © Pedro Peláez
 

library openerpbyxmlrpc

Library to communicate into PHP and OpenERP

image

leblanc-simon/openerpbyxmlrpc

Library to communicate into PHP and OpenERP

  • Friday, January 29, 2016
  • by leblanc-simon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

OpenErpByXmlRpc

Library to communicate into PHP and OpenERP, (*1)

SensioLabsInsight, (*2)

Usage

use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use OpenErpByXmlRpc\OpenErpByXmlRpc;

// Configure Logger (if you want log request and response)
$logger = new Logger('xmlrpc');
$handler = new StreamHandler(__DIR__.'/logs/xmlrpc-'.date('Ymd').'.log', Logger::DEBUG);
$handler->setFormatter(new \Monolog\Formatter\LineFormatter(null, null, true));
$logger->pushHandler($handler);

// Init the communication
$xmlrpc = new OpenErpByXmlRpc('localhost', 8069, 'database', 'username', 'password');
$xmlrpc->setLogger($logger); // Not required

// Search datas
$user = $xmlrpc->search('res.users', array(array('login', '=', 'admin')));
// or
$user = $xmlrpc->search(
    'res.users',
    \OpenErpByXmlRpc\Criteria::create()->equal('login', 'admin')
);

// Get and retrieve data
$user = $xmlrpc->read('res.users', 1, array('login'));
$users = $xmlrpc->read('res.users', array(1, 2), array('login'));

// Call another method
$res = $xmlrpc->call('res.users', 'another_method', 'param1', 'param2', ...);

Others methods exists, check in the source code !, (*3)

Authors

  • Simon Leblanc : contact@leblanc-simon.eu

License

MIT, (*4)

The Versions

29/01 2016

dev-master

9999999-dev

Library to communicate into PHP and OpenERP

  Sources   Download

MIT

The Requires

 

The Development Requires

29/01 2016

v2.1.0

2.1.0.0

Library to communicate into PHP and OpenERP

  Sources   Download

MIT

The Requires

 

The Development Requires

08/07 2015

v2.0.0

2.0.0.0

Library to communicate into PHP and OpenERP

  Sources   Download

MIT

The Requires

 

The Development Requires

02/02 2014

1.0.0

1.0.0.0

Library to communicate into PHP and OpenERP

  Sources   Download

MIT

The Requires

 

The Development Requires