mahmoudrdash/custome_packeg_connect_odoo 问题修复 & 功能扩展

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

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

mahmoudrdash/custome_packeg_connect_odoo

Composer 安装命令:

composer require mahmoudrdash/custome_packeg_connect_odoo

包简介

Odoo xml - RPC Connector using Ripcord with Repositry pattern and Solid archiecture

README 文档

README

Odoo xml - RPC Connector using Ripcord with Repositry pattern and Solid archiecture .

Installation

You can install the package via Composer:

composer require mahmoudrdash/custome_packeg_connect_odoo

Usage

To use the package, you first need to configure your Odoo connection details.

// Example usage

require_once __DIR__ . '/vendor/autoload.php';

use Mahmoudrdash\CustomePackegConnectOdoo\Client\ClientOdoo;
use Mahmoudrdash\CustomePackegConnectOdoo\Repositories\CustomerRepository;
use Mahmoudrdash\CustomePackegConnectOdoo\Services\CustomerService;


$clentOdoo = new ClientOdoo(
    "http://localhost:8069",
    "admin",
    "admin" ,
    "admin"
);

$customerRepository = new CustomerRepository($clentOdoo);
$customerService = new CustomerService($customerRepository);

$allCustomer  =  $customerService->getCustomerAll();

print_r($allCustomer);

// Create  Or Update 

$result = $customerService->syncCustomer([
    'name' => 'Mahmoud Reda',
    'email' => 'exampel@gmail.com',
    'phone' => '01000000000'
]);

print_r($result);

// Delete 
$customerService->deleteCustomerById(1);    

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-04