ang3 / php-odoo-dbal
PHP Odoo Database Abstraction Layer (DBAL)
Package info
Type:component
pkg:composer/ang3/php-odoo-dbal
v0.1.0
2024-01-17 16:21 UTC
Requires
- php: >=8.1
- ang3/php-odoo-api-client: 8.x-dev
- symfony/cache: ^6.0
- symfony/string: ^6.0
Requires (Dev)
- symfony/test-pack: ^1.0
- symfony/var-dumper: ^6.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
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.