2017 © Pedro Peláez
 

library openerp-php-connector

Connect your PHP driven web application with Open ERP

image

previewict/openerp-php-connector

Connect your PHP driven web application with Open ERP

  • Thursday, June 4, 2015
  • by shahariaazam
  • Repository
  • 7 Watchers
  • 1 Stars
  • 206 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 5 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

OpenErp Logo, (*1)

OpenERP PHP Connector

Connect your PHP driven web application with OpenERP through PHP XML RPC, (*2)

Installation & Usage

To get started you need to install this library via Composer. If you have ready composer.json file then just add "previewict/openerp-php-connector": "dev-master" as a dependency. Or if you don't have any composer.json ready then copy/paste the below code and create your composer.json file., (*3)

{
    "name": "YourProjectName",

    "description": "YourProjectDescription",

    "require": {
        "php": ">=5.3.0",
        "previewict/openerp-php-connector": "dev-master"
    }
}

Now just run composer update command and this openerp php connector library will be cloned into your vendor directory., (*4)

Now I am assuming that you already cloned this repository via composer.json or direct clone from GitHub. Now to use this you have to write down the following codes on your script., (*5)

require_once 'vendor/autoload.php';

use OpenErp\Modules\Sales\Customer;

/**
* USERNAME = Your OpenERP username. i.e: admin
* PASSWORD = Your OpenERP password. i.e: 123456
* DATABASE = Your OpenERP database name. i.e: openerp_demo
* SERVER = Your OpenERP Server. i.e: http://yourOpenERPServer.com
*/
$sales = new Customer(USERNAME, PASSWORD, DATABASE, SERVER);
$result = $sales->read($customerID);   // a customer ID to get details from your OpenERP. i.e: 10
var_dump($result); die();

Now it will give you a PHP array. And now you can use the data however you want., (*6)

Please Form and send me Pull request if you added something useful for this. Happy PHP-ing!, (*7)

The Versions

04/06 2015

dev-master

9999999-dev

Connect your PHP driven web application with Open ERP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php openerp erp xmlrpc

06/04 2015

v1.0

1.0.0.0

Connect your PHP driven web application with Open ERP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php openerp erp xmlrpc