PHPackages                             divyeshjesadiya/ladoo - 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. divyeshjesadiya/ladoo

ActiveLibrary[API Development](/categories/api)

divyeshjesadiya/ladoo
=====================

Odoo ERP API for Laravel

00PHP

Since Jul 7Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Ladoo
=====

[](#ladoo)

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

Installation
------------

[](#installation)

type in console:

```
composer require divyeshjesadiya/ladoo

```

Register LaravelOdoo service by adding it to the providers array.

```
'providers' => array(
        ...
        DivyeshJesadiya\Ladoo\Providers\OdooServiceProvider::class
    )
```

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

```
'aliases' => array(
        ...
        'Odoo' => DivyeshJesadiya\Ladoo\Facades\Odoo::class,
    )
```

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

```
php artisan vendor:publish --provider="DivyeshJesadiya\Ladoo\Providers\OdooServiceProvider" --tag="config"
```

### Configuration

[](#configuration)

After publishing the package config file, the base configuration for laravelodoo package is located in config/laravelodoo.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 \DivyeshJesadiya\Ladoo\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 `laravelodoo.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
    ]);
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/52ae7c3960d3557e6c2cbbb386c64b770c1eae17aab21b0a94487b255cd72ade?d=identicon)[divyeshjesadiya](/maintainers/divyeshjesadiya)

---

Top Contributors

[![divyeshjesadiya](https://avatars.githubusercontent.com/u/11956362?v=4)](https://github.com/divyeshjesadiya "divyeshjesadiya (5 commits)")

### Embed Badge

![Health badge](/badges/divyeshjesadiya-ladoo/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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