PHPackages                             alazzi-az/laraodoo-xmlrpc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. alazzi-az/laraodoo-xmlrpc

ActiveLibrary[API Development](/categories/api)

alazzi-az/laraodoo-xmlrpc
=========================

Odoo-Xmlrpc PHP for Laravel is a supercharged PHP API client that allows you to interact with the Odoo XML-RPC API

v1.0.3(2y ago)207.9k↓28.6%7MITPHPPHP ^8.1.0

Since Jul 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/alazzi-az/laraodoo-xmlrpc)[ Packagist](https://packagist.org/packages/alazzi-az/laraodoo-xmlrpc)[ RSS](/packages/alazzi-az-laraodoo-xmlrpc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Odoo XML-RPC Client
===================

[](#odoo-xml-rpc-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8c2f4cf60f1638cbbf88eb6956832bb2ccc0b06da09826ce9f07295dc373e38a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c617a7a692d617a2f6c6172616f646f6f2d786d6c7270632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alazzi-az/laraodoo-xmlrpc)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a7c9466743b961f02d203918191de65ae99c5c3be2fbaad7bb7b91998968faa1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c617a7a692d617a2f6c6172616f646f6f2d786d6c7270632f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/alazzi-az/laraodoo-xmlrpc/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/53c4578650fb1a2b86da53a0ad58c8f1f0625801806805e336f5fc0bc14dfb14/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c617a7a692d617a2f6c6172616f646f6f2d786d6c7270632f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/alazzi-az/laraodoo-xmlrpc/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/324a7685b3c59e223cd201d97b40a749410ae4ebaa6eced9f168e3632ddf1c6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c617a7a692d617a2f6c6172616f646f6f2d786d6c7270632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alazzi-az/laraodoo-xmlrpc)

---

The **Odoo XML-RPC Client** is a PHP package that provides a simple and easy-to-use interface for interacting with the Odoo XML-RPC API. Unlike other Odoo clients that require extensions or other dependencies, this client uses the laminas/laminas-xmlrpc package, which is a pure PHP implementation of the XML-RPC protocol.

Requirements
------------

[](#requirements)

- PHP 8.1 or later

Get Started
-----------

[](#get-started)

First, install laraodoo-xmlrpc via the Composer package manager:

```
composer require alazzi-az/laraodoo-xmlrpc
```

Next, publish the configuration file:

```
php artisan vendor:publish --provider="Alazzidev\LaraodooXmlrpc\ServiceProvider"
```

This will create a config/odoo-xmlrpc..php configuration file in your project, which you can modify to your needs using environment variables:

```
return [
    'url' => env('ODOO_URL', ''),
    'suffix' => 'xmlrpc/2',
    'db' => env('ODOO_DB', ''),
    'username' => env('ODOO_USERNAME', ''),
    'password' => env('ODOO_PASSWORD', ''),
];
```

Finally, you may use the Odoo facade to access the Odoo Xml API:

```
use Alazzidev\LaraodooXmlrpc\Facades\Odoo;

$result = Odoo::model('res.partner')->create([
            'test1'=>'test1-value',
            'test2'=>'test2-value'
            ]);
```

Usage
-----

[](#usage)

For usage examples, take a look at the [alazzi-az/odoo-xmlrpc](https://github.com/alazzi-az/odoo-xmlrpc) repository.

Use Case
--------

[](#use-case)

For Create Invoice in Cummonity Version "account.move"

```
use Alazzidev\LaraodooXmlrpc\Facades\Odoo;

// Define invoice line
$line = [
    0,
    false,
    [
        'currency_id' => $currency_id,
        'discount' => $discountPercentage,
        'display_type' => 'product',
        'name' => $name,
        'price_unit' => $price_unit,
        'product_id' => $product_id,
        'quantity' => $quantity,
        'tax_ids' => $tax_ids,
    ]
];

$invoice_lines = [$line];

// Define invoice data
$invoice = [
    'partner_id' => $partner_id,
    'name' => $name,
    'invoice_date' => $invoice_date,
    'invoice_date_due' => $invoice_date_due,
    'payment_reference' => $payment_reference,
    'invoice_line_ids' => $invoice_lines,
    'currency_id' => $currency_id,
    'invoice_payment_term_id' => $payment_term_id,
    'state' => $state,
    'journal_id' => $journal_id,
    'move_type' => 'out_invoice',
];

// Create invoice using Odoo External API
$odoo = Odoo::model('account.move');
$odoo_invoice_id = $odoo->create($invoice);
```

Testing
-------

[](#testing)

The Odoo facade comes with a fake() method that allows you to fake the API responses.

The fake responses are returned in the order they are provided to the fake() method.

All responses are having a fake() method that allows you to easily create a response object by only providing the parameters relevant for your test case.

```
use Alazzidev\LaraodooXmlrpc\Facades\Odoo;

  Odoo::fake([
        'test1'=>'test1-value',
        'test2'=>'test2-value'
    ]);

    $response = Odoo::create('res.partner',[
        'test1'=>'test1-value',
        'test2'=>'test2-value'
    ]);

    expect($response['test1'])->toBe('test1-value');
```

And here You Can run test

```
composer test:unit
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/alazzi-az/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mohammed Ali Azman](https://github.com/alazzi-az)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1031d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/750a1566a9f2ed8de9e8da9fee372b4426d7585bfdabdb65a1932a40e409a3e3?d=identicon)[alazzi](/maintainers/alazzi)

---

Top Contributors

[![mohammedazman](https://avatars.githubusercontent.com/u/56982649?v=4)](https://github.com/mohammedazman "mohammedazman (6 commits)")[![wychoong](https://avatars.githubusercontent.com/u/67364036?v=4)](https://github.com/wychoong "wychoong (3 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/alazzi-az-laraodoo-xmlrpc/health.svg)

```
[![Health](https://phpackages.com/badges/alazzi-az-laraodoo-xmlrpc/health.svg)](https://phpackages.com/packages/alazzi-az-laraodoo-xmlrpc)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[echolabsdev/prism

A powerful Laravel package for integrating Large Language Models (LLMs) into your applications.

2.3k388.3k10](/packages/echolabsdev-prism)[sburina/laravel-whmcs-up

WHMCS API client and user provider for Laravel

271.3k](/packages/sburina-laravel-whmcs-up)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
