Download the PHP package ang3/odoo-bundle without Composer

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

Odoo bundle

Build Status Latest Stable Version Latest Unstable Version Total Downloads

This bundle is a Symfony integration of packages ang3/php-odoo-api-client and ang3/php-odoo-orm.

Main features:

Documentation of both packages:

Package Documentation
ang3/php-odoo-api-client https://github.com/Ang3/php-odoo-api-client
ang3/php-odoo-orm https://github.com/Ang3/php-odoo-orm

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Configure your app

Create the file and paste the configuration below:

Finally, set needed vars to your project:

Work with multiple connections (optional)

You can add more connection under section . Here is an example for another connection:

The parameter is used to define the default connection to use.

Usage

Registry

If you want to work with all your configured clients, then you may want to get the registry. It stores all configured clients by connection name. You can get it by dependency injection:

The registry contains three useful methods:

If you don't use autowiring, you must pass the service as argument of your service:

Clients

It could be useful to get a client directly without working with the registry.

For example, the get the default client by autowiring, use the argument :

If the connection name is , then the autowired argument is .

Of course if you don't use autowiring, you must pass the service as argument of your service:

For each client, the bundle creates a public alias following this naming convention: .

ORM

To enable ORM features, you must edit the file to configure it:

Usage

Get the manager of a connection easily by using dependency injection and autowiring:

If the connection name is , then the autowired argument is . By default, the default manager is autowired.

Of course if you don't use autowiring, you must pass the service as argument of your service:

For each manager, the bundle creates a public alias following this naming convention: .

Please read the documentation of the ORM package ang3/php-odoo-orm to know more information about the object manager.

Validator

This bundle provides a useful validator according to the package symfony/validator to validate a record by ID, domains and/or connection. It resides to a basic annotation.

Here is an example of an object storing the ID of a company and invoice:

Here is the list of all options you can pass to the annotation:

As you can see, the validator uses both symfony/expression-language and the expression builder provided with the client. By this way, you can filter allowed records easily.

Here are the variable passed to the evaluated expression:

Upgrades & updates

v0.1.0 (beta-release)


All versions of odoo-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
ang3/php-odoo-api-client Version ^6.1
ang3/php-odoo-orm Version ^0.1
symfony/cache Version >=4.2
symfony/console Version >=4.2
symfony/dependency-injection Version >=4.2
symfony/config Version >=4.2
symfony/http-kernel Version >=4.2
symfony/security-core Version >=4.2
symfony/validator Version >=4.2
symfony/expression-language Version >=4.2
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 ang3/odoo-bundle contains the following files

Loading the files please wait ....