Download the PHP package winternet-studio/odoo-jsonrpc-client without Composer

On this page you can find all versions of the php package winternet-studio/odoo-jsonrpc-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package odoo-jsonrpc-client

php-odoo-jsonrpc-client

A simple Odoo JSON-RPC client you can understand - and with examples. Written in PHP.

Let's just put the truth out there - Odoo's API documentation is terrible... if you can even find any! But with this library I'll try to make it a little less terrible to work with its API.

It's currently a work in progress. Feel free to help by doing pull requests.

Installation

The preferred way to install this extension is through composer.

Usage

Connecting to Odoo:

Continue with examples below and see the documentation for each method in the JsonRpcClient class file itself.

Examples

A very useful way of figuring out the possible requests, methods, fields and possible values is to look at the requests the browser makes when navigating the Odoo system. Open the developer tools and look at the Network requests.

Depending of Odoo version the fields might differ. These examples work for v14.

Get all models

Get all fields for a model

Get records by ID

Post a record that is currently a draft

Eg. post a payment (account.payment) or invoice (account.move).

Get invoices

Create invoice

This invoice example is originally a copy from the network request in the browser.

It is created as a draft and must be posted using the actionPost() method as in the example above. Seems not possible to post it at the same time as creating it.

Create payment

Get currencies

Get currencies, with array index values being the currency code.

Update currencies with today's rates

Update rates with data from European Central Bank.


All versions of odoo-jsonrpc-client with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package winternet-studio/odoo-jsonrpc-client contains the following files

Loading the files please wait ....