PHPackages                             esign/laradoo - 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. esign/laradoo

ActiveLibrary

esign/laradoo
=============

Odoo ERP API for Laravel

3.5.0(3y ago)045MITPHPPHP ^7.3 || ^8.0

Since May 17Pushed 3y agoCompare

[ Source](https://github.com/esign/laradoo)[ Packagist](https://packagist.org/packages/esign/laradoo)[ RSS](/packages/esign-laradoo/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (26)Used By (0)

Laradoo
=======

[](#laradoo)

[![](https://raw.githubusercontent.com/Edujugon/laradoo/master/docs/assets/laradoo.png)](https://raw.githubusercontent.com/Edujugon/laradoo/master/docs/assets/laradoo.png)

Odoo ERP API for Laravel. [Odoo website](https://www.odoo.com)

[![Build Status](https://github.com/esign/laradoo/workflows/CI/badge.svg)](https://github.com/Esign/laradoo/actions)[![Total Downloads](https://camo.githubusercontent.com/411e5da531a391ba27f025337ae1ea3709444a35859cba8f5b66885383729c7e/68747470733a2f2f706f7365722e707567782e6f72672f657369676e2f6c617261646f6f2f646f776e6c6f616473)](https://packagist.org/packages/esign/laradoo)[![Latest Stable Version](https://camo.githubusercontent.com/7cddbea1504a9d56387f9e184b32887a7f7e3068b9f492ccaac2cc3b46b86653/68747470733a2f2f706f7365722e707567782e6f72672f657369676e2f6c617261646f6f2f762f737461626c65)](https://packagist.org/packages/esign/laradoo)[![License](https://camo.githubusercontent.com/bc66c9d9a22981fd489904d1889e481b0501f8838ad4a59271687a1949f514c9/68747470733a2f2f706f7365722e707567782e6f72672f657369676e2f6c617261646f6f2f6c6963656e7365)](https://packagist.org/packages/esign/laradoo)

Compatibility
-------------

[](#compatibility)

Laravel versionPHP versionPackage version^8.0^7.4^V3.0^5.1^5.6^V2.0^5.1^5.5^V1.1Installation
------------

[](#installation)

type in console:

```
composer require esign/laradoo

```

Register Laradoo service by adding it to the providers array.

```
'providers' => [
    ...
    Esign\Laradoo\Providers\OdooServiceProvider::class,
],
```

Let's add the Alias facade, add it to the aliases array.

```
'aliases' => array(
        ...
        'Odoo' => Esign\Laradoo\Facades\Odoo::class,
    )
```

Publish the package's configuration file to the application's own config directory

```
php artisan vendor:publish --provider="Esign\Laradoo\Providers\OdooServiceProvider" --tag="config"
```

### Configuration

[](#configuration)

After publishing the package config file, the base configuration for laradoo package is located in config/laradoo.php

Also, you can dynamically update those values calling the available setter methods:

`host($url)`, `username($username)`, `password($password)`, `db($name)`, `apiSuffix($name)`

Usage samples
-------------

[](#usage-samples)

Instance the main Odoo class:

```
$odoo = new \Esign\Laradoo\Odoo();
```

You can get the Odoo API version just calling the version method:

```
$version = $odoo->version();
```

> This methods doesn't require to be connected/Logged into the ERP.

Connect and log into the ERP:

```
$odoo = $odoo->connect();
```

All needed configuration data is taken from `laradoo.php` config file. But you always may pass new values on the fly if required.

```
$this->odoo = $this->odoo
            ->username('my-user-name')
            ->password('my-password')
            ->db('my-db')
            ->host('https://my-host.com')
            ->connect();
```

> // Note: `host` should contain 'http://' or 'https://'

After login, you can check the user identifier like follows:

```
$userId= $this->odoo->getUid();
```

You always can check the permission on a specific model:

```
$can = $odoo->can('read', 'res.partner');
```

> Permissions which can be checked: 'read','write','create','unlink'

Method `search provides a collection of ids based on your conditions:

```
$ids = $odoo->where('customer', '=', true)
            ->search('res.partner');
```

You can limit the amount of data using `limit` method and use as many as condition you need:

```
$ids = $odoo->where('is_company', true)
            ->where('customer', '=', true)
            ->limit(3)
            ->search('res.partner');
```

If need to get a list of models, use the `get` method:

```
$models = $odoo->where('customer', true)
                ->limit(3)
                ->get('res.partner');
```

Instead of retrieving all properties of the models, you can reduce it by adding `fields` method before the method `get`

```
$models = $odoo->where('customer', true)
                ->limit(3)
                ->fields('name')
                ->get('res.partner');
```

If not sure about what fields a model has, you can retrieve the model structure data by calling `fieldsOf` method:

```
$structure = $odoo->fieldsOf('res.partner');
```

Till now we have only retrieved data from the ERP but you can also Create and Delete records.

In order to create a new record just call `create` method as follows:

```
$id = $odoo->create('res.partner',['name' => 'Jonh Odoo']);
```

> The method returns the id of the new record.

For Deleting records we have the `delete` method:

```
$result = $odoo->where('name', 'Jonh Odoo')
            ->delete('res.partner');
```

> Notice that before calling `delete` method you have to use `where`.

You can also remove records by ids like follows:

```
$result = $odoo->deleteById('res.partner',$ids);
```

Update any record of your ERP:

```
$updated = $odoo->where('name', 'John Odoo')
            ->update('res.partner',['name' => 'John Odoo Odoo','email' => 'Johndoe@odoo.com']);
```

Notice that all `delete` and `update` methods always returns `true` except if there was an error.

`call` method is also available for those who want to set a custom API call:

```
$odoo->call('res.partner', 'search',[
        [
            ['is_company', '=', true],
            ['customer', '=', true]
        ]
    ],[
        'offset'=>1,
        'limit'=>5
    ]);
```

[Full API list](https://edujugon.github.io/laradoo/build/master/Edujugon/Laradoo/Odoo.html)
-------------------------------------------------------------------------------------------

[](#full-api-list)

###  Health Score

33

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% 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 ~85 days

Recently: every ~143 days

Total

22

Last Release

1431d ago

Major Versions

1.1.2 → 2.0.02019-09-20

2.2.0 → 3.0.02020-06-11

PHP version history (3 changes)1.0.0PHP ^7.0

2.0.0PHP ^5.6||^7.0

3.2.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4599d7a8f6fdb63dd04305a49ae5ec9700b7a6eacdbe3a54f89584d75e34503f?d=identicon)[esign](/maintainers/esign)

---

Top Contributors

[![Edujugon](https://avatars.githubusercontent.com/u/4853751?v=4)](https://github.com/Edujugon "Edujugon (73 commits)")[![ruuter](https://avatars.githubusercontent.com/u/3863648?v=4)](https://github.com/ruuter "ruuter (2 commits)")[![Okipa](https://avatars.githubusercontent.com/u/5328934?v=4)](https://github.com/Okipa "Okipa (1 commits)")[![TijlCl](https://avatars.githubusercontent.com/u/28731481?v=4)](https://github.com/TijlCl "TijlCl (1 commits)")[![winboyvn](https://avatars.githubusercontent.com/u/57658032?v=4)](https://github.com/winboyvn "winboyvn (1 commits)")[![raakesh](https://avatars.githubusercontent.com/u/2386374?v=4)](https://github.com/raakesh "raakesh (1 commits)")[![jordyvanderhaegen](https://avatars.githubusercontent.com/u/24370626?v=4)](https://github.com/jordyvanderhaegen "jordyvanderhaegen (1 commits)")

---

Tags

laravelpackageodooERP

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/esign-laradoo/health.svg)

```
[![Health](https://phpackages.com/badges/esign-laradoo/health.svg)](https://phpackages.com/packages/esign-laradoo)
```

###  Alternatives

[edujugon/laradoo

Odoo ERP API for Laravel

16468.5k](/packages/edujugon-laradoo)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

981161.4k2](/packages/awssat-laravel-visits)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162143.3k1](/packages/joisarjignesh-bigbluebutton)[threesquared/laravel-paymill

Laravel wrapper for the Paymill API

121.3k](/packages/threesquared-laravel-paymill)

PHPackages © 2026

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