PHPackages                             yodawy/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. [API Development](/categories/api)
4. /
5. yodawy/laradoo

ActiveLibrary[API Development](/categories/api)

yodawy/laradoo
==============

Odoo ERP API for Laravel

v1.0.0(2y ago)011MITPHPPHP ^5.6||^7.0||^8.0

Since Dec 3Pushed 2y agoCompare

[ Source](https://github.com/selfeky/yodawy-laradoo)[ Packagist](https://packagist.org/packages/yodawy/laradoo)[ RSS](/packages/yodawy-laradoo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)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://camo.githubusercontent.com/211355457df67b8fb019654a6915e1217c5e0157ce6ea054073140f6b494f987/68747470733a2f2f6170692e7472617669732d63692e6f72672f4564756a75676f6e2f6c617261646f6f2e737667)](https://api.travis-ci.org/Edujugon/laradoo)[![Total Downloads](https://camo.githubusercontent.com/213eb5f78035cad53c78663e04f3c53c8de26baf7115b8f21ff71c96409feacd/68747470733a2f2f706f7365722e707567782e6f72672f6564756a75676f6e2f6c617261646f6f2f646f776e6c6f616473)](https://packagist.org/packages/edujugon/laradoo)[![Latest Stable Version](https://camo.githubusercontent.com/11730989cd5dd3699b4b42d9439a4a42dc8214b0915604eaf72cd1f527175f27/68747470733a2f2f706f7365722e707567782e6f72672f6564756a75676f6e2f6c617261646f6f2f762f737461626c65)](https://packagist.org/packages/edujugon/laradoo)[![License](https://camo.githubusercontent.com/0738e51f584be90d1be461b064f40f7f7c6b2ee3a41eac6509a0100eb7a89f75/68747470733a2f2f706f7365722e707567782e6f72672f6564756a75676f6e2f6c617261646f6f2f6c6963656e7365)](https://packagist.org/packages/edujugon/laradoo)

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

[](#compatibility)

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

[](#installation)

type in console:

```
composer require edujugon/laradoo

```

Register Laradoo service by adding it to the providers array.

```
'providers' => array(
        ...
        Edujugon\Laradoo\Providers\OdooServiceProvider::class
    )
```

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

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

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

```
php artisan vendor:publish --provider="Edujugon\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 \Edujugon\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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

888d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e3c1700fb0d1055b2af1cdad52a5b93595e316d1858fd33c9f3f40ad8e32faf?d=identicon)[selfeky](/maintainers/selfeky)

---

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)")[![raakesh](https://avatars.githubusercontent.com/u/2386374?v=4)](https://github.com/raakesh "raakesh (1 commits)")[![selfeky](https://avatars.githubusercontent.com/u/886365?v=4)](https://github.com/selfeky "selfeky (1 commits)")[![winboyvn](https://avatars.githubusercontent.com/u/57658032?v=4)](https://github.com/winboyvn "winboyvn (1 commits)")

---

Tags

laravelpackageodooERP

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[edujugon/laradoo

Odoo ERP API for Laravel

16468.6k](/packages/edujugon-laradoo)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[joggapp/laravel-aws-sns

Laravel package for the SNS events by AWS

3171.8k](/packages/joggapp-laravel-aws-sns)[gregoriohc/laravel-trello

A Laravel wrapper and facade package for the Trello API

3366.8k](/packages/gregoriohc-laravel-trello)[nikolag/laravel-square

Square API integration with Laravel built on nikolag/core

3827.3k](/packages/nikolag-laravel-square)[hernandev/hipchat-laravel

HipChat PHP Client Wrapper for Laravel 4 and 5

2733.2k](/packages/hernandev-hipchat-laravel)

PHPackages © 2026

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