Download the PHP package tbondois/odoo-ripcord without Composer
On this page you can find all versions of the php package tbondois/odoo-ripcord. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package odoo-ripcord
Ripoo (odoo-ripcord)
Ripoo is a PHP7 XML-RPC client handler for Odoo.
Forked from robroypt/odoo-client, itself using darkaonline/ripcord, Ripoo is a PSR-compliance edition of ripcord, the library used in example in the Odoo External API documentation for PHP.
This library is on GitHub and Packagist.
- Ripoo (odoo-ripcord)
- Supported versions
- Changelog
- Installation
- Update
- Usage
- xmlrpc/2/common endpoint
- xmlrpc/2/object endpoint
- How to know the model names
- License
Supported versions
This library should work with all versions of Odoo, at least between 8.0 and 14.0, Community & Enterprise Editions. I personnaly tested it only with 11.0 but their API is the same. It can be used in all PHP frameworks, like Symfony, Laravel or Magento2. If you find any incompatibilities, please create an issue or submit a pull request.
Changelog
See CHANGELOG.md
Installation
Update
-
To update all your libraries included in your composer.json
- But if you want to update JUST this library :
Add --with-dependencies
to also update others libraries used by this one.
Usage
-
Instantiate a new client via instance itself :
- Or you can instanciate new client via ClientFactory, to centralize configuration use good Design Patterns .
Basic sample for Magento2 :
For the client to work you have to exclude the http://
and /xmlrpc/2
parts in the url. If you want to use another Odoo API, put it in the optional 5th parameter of constructor.
xmlrpc/2/common endpoint
Getting version information:
There is no login/authenticate method. The client does authentication for you, that is why the credentials are passed as constructor arguments.
xmlrpc/2/object endpoint
Search for records:
Search and count records.
Reading records:
Search and Read records:
Creating records:
Updating records:
Deleting records:
How to know the model names
- Model
ir.models
will return a list of reachable models. - You can also use
erppeek
:
License
MIT License. Copyright (c) 2018 Thomas Bondois. See LICENSE file.