previewict/openerp-php-connector 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

previewict/openerp-php-connector

Composer 安装命令:

composer require previewict/openerp-php-connector

包简介

Connect your PHP driven web application with Open ERP

README 文档

README

OpenErp Logo

OpenERP PHP Connector

Connect your PHP driven web application with OpenERP through PHP XML RPC

#####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.

{
    "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.

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.

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.

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

统计信息

  • 总下载量: 225
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固