ang3/php-odoo-dbal

PHP Odoo Database Abstraction Layer (DBAL)

Installs: 106

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:component

v0.1.0 2024-01-17 16:21 UTC

This package is auto-updated.

Last update: 2024-12-17 18:32:06 UTC


README

Code Quality PHPUnit tests Latest Stable Version Latest Unstable Version Total Downloads

This component allows you to manage your Odoo instance as database like Doctrine by managing records. This library uses the PHP Odoo API client >=8.x with JSON-RPC by default.

Main features

  • Record manager - Main entrypoint of DBAL API
  • Schema - Get models and fields metadata
  • Custom metadata caching
  • Types converter and custom types
  • Query builder to make queries easily
  • Repositories for built-in methods and reusable queries
  • Lazy result for massive data (select/search)

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of the client:

$ composer require ang3/php-odoo-dbal

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Usage

Please read the documentation.

Tests

To run tests:

$ git clone git@github.com:Ang3/php-odoo-dbal.git
$ composer install
$ vendor/bin/simple-phpunit

License

This software is published under the MIT License.