Download the PHP package lekoala/odoo-php-client without Composer

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

Odoo PHP Client

A PHP 8.3+ client for Odoo 19's External JSON-2 API, with generic model calls and optional typed services for partners, invoices, subscriptions, products, payments, API keys, portal PDFs, Stripe and Peppol.

Installation

Until the first release is published, install the package from its Git repository or a Composer path repository.

Quick start

Every JSON-2 method remains available through named parameters:

Single and batch creation have distinct return contracts:

Pagination and iteration

Typed service lists no longer apply a hidden result cap. Use QueryOptions for an explicit page, or iterate() to process large result sets in bounded requests:

limit: null (the default) means no overall cap. Iterators remain bounded by batchSize; array-returning list() methods load all matching rows, so prefer iterate() for large tables. Passing an integer as the second argument remains supported as shorthand for an explicit limit.

Low-level searchRead() sends only the options you actually provide: an empty $fields, a zero limit/offset or a null order is omitted from the request body instead of being sent as []/0/null.

See examples.

AI agents: the generic integration skill shipped with this package is .agents/skills/odoo-php-client/SKILL.md.

Design guarantees

HTTP transport

The public HTTP boundary is transport-agnostic. With ext-curl installed, no additional configuration is needed. To reuse Guzzle, Symfony HttpClient, or another PSR-18 client, inject Psr18Transport through the configuration.

Guzzle:

Symfony HttpClient:

Redirects are handled consistently by this package. Sensitive JSON-2 headers are removed when a redirect changes origin, and portal PDF requests never receive the API bearer token.

Development

License

MIT. See LICENSE.


All versions of odoo-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^3.0
psr/event-dispatcher Version ^1.0
composer/ca-bundle Version ^1.5
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 lekoala/odoo-php-client contains the following files

Loading the files please wait ...