Download the PHP package bannerstop/odoo-connect without Composer

On this page you can find all versions of the php package bannerstop/odoo-connect. 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-connect

odoo-connect

PHP client library for interacting with Odoo ERP via the odoo-relay API. Provides typed DTOs, fluent query builder, and domain-specific services.

Installation

Requires PHP 8.1+.

Setup

Configuration

Timezone

Odoo stores timestamps in UTC. The Config class converts them automatically in DTOs:

Fetching Data

With DTOs (typed objects)

When you call service methods without specifying fields, you get typed DTOs:

With raw arrays (specific fields)

Pass a fields array to get raw data with only the requested fields:

Filtering

Using where()

Build filters using the fluent where() method on the RequestBuilder:

Supported operators: =, !=, <, >, <=, >=, like

Filtering for NULL values

Pass false as the value to match records where a field is NULL (unset in Odoo):

Using state() shortcut

Pagination & Ordering

All search requests support limit, offset, and order parameters, matching Odoo's query format.

Via RequestBuilder

Via Services

All service methods returning multiple records accept optional limit, offset, and order:

Defaults

Parameter Default Description
limit 80 Max records returned (Odoo default)
offset 0 Records to skip
order none Sort string, e.g. "name ASC, id DESC"

Services

OrderService

CustomerService

InvoiceService

PurchaseOrderService

TrackingCodeService

Creating Records

Via service methods

Via RequestBuilder (any model)

Updating Records

Via service methods

Via RequestBuilder (any model)

Error Handling

The library throws three exception types:

Exception When
OdooRecordNotFoundException No record found for the query
OdooApiException Odoo API returned a non-success response
OdooClientException Network error, timeout, or max retries exceeded

OdooRecordNotFoundException extends OdooApiException, so catching OdooApiException catches both.

Available Models

Enum Odoo Model Service
Model::SALE_ORDER sale.order OrderService
Model::SALE_ORDER_LINE sale.order.line OrderService
Model::ACCOUNT_MOVE account.move InvoiceService
Model::RES_PARTNER res.partner CustomerService
Model::PURCHASE_ORDER purchase.order PurchaseOrderService
Model::BS_TRACKING_CODE bs_tracking_code TrackingCodeService

All versions of odoo-connect with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
guzzlehttp/guzzle Version ^7.4
spatie/guzzle-rate-limiter-middleware Version ^2.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 bannerstop/odoo-connect contains the following files

Loading the files please wait ...