panlatent / yii2-odoo
Yii2 Odoo extension
Installs: 736
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Open Issues: 0
Type:yii2-extension
Requires
- graze/guzzle-jsonrpc: ^3.0
- yiisoft/yii2: ^2.0
Requires (Dev)
- codeception/codeception: ^2.5
- php-coveralls/php-coveralls: ^2.1
- yiisoft/yii2-debug: ^2.0
- yiisoft/yii2-gii: ^2.0
This package is auto-updated.
Last update: 2024-04-14 17:15:55 UTC
README
Odoo JSON-RPC Client, Query and ActiveRecord for Yii2
This extension provides the Odoo integration for the Yii framework 2.0.
It includes Web Service API support and also implements
the Query
and ActiveRecord
pattern.
Documentation is at Read The Docs.
Requirements
- PHP 7.0 or higher
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist panlatent/yii2-odoo "*"
or add
"panlatent/yii2-odoo": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
Add the component to your application.
'components' => [ 'odoo' => [ 'class' => 'panlatent\odoo\Connection', 'dsn' => 'localhost:8000/jsonrpc', 'database' => '', 'username' => '', 'password' => '', ] ]
The extension support Yii2 Debug extension:
Add the panel component to your application.
'modules' => [ 'debug' => [ 'panels' => [ 'odoo' => [ 'class' => panlatent\odoo\debug\OdooPanel::class, ] ] ] ]
The extension support Yii2 Gii extension:
Add the panel component to your application.
'modules' => [ 'gii' => [ 'generators' => [ \panlatent\odoo\gii\generators\model\Generator::class, ] ] ]
License
The Yii2 Odoo is open-sourced software licensed under the MIT license.