caprel/laravel-dolibarr

Accessing to Dolibarr API

v1.0.6 2023-01-02 09:43 UTC

This package is auto-updated.

Last update: 2024-11-15 19:19:17 UTC


README

Installation

  • Require it with Composer:
composer require caprel/laravel-dolibarr

Please have a look at https://packagist.org/packages/caprel/laravel-dolibarr

Publish config file :

php artisan vendor:publish --provider="Caprel\Dolibarr\DolibarrServiceProvider" --tag="config"

Then add in your config .env file

DOLIBARR_USER_LOGIN=
DOLIBARR_USER_PASSWORD=
DOLIBARR_API_KEY=
DOLIBARR_SERVER_URI=
DOLIBARR_AUTH_ACCESS=false

Tests

php artisan dolibarr:search --help

Code

The main idea is to give "laravel" reflex, then you can make a search on ThirdParties like that

$tp = new DolibarrThirdparties;
$res = $tp->where("nom","LIKE", "%CAP%")->get();
print_r($res);

And for example you can put others options in your request :

$res = $tp->where("nom","LIKE", "%CAP%")->limit(10)->get();
$res = $tp->where("nom","LIKE", "%CAP%")->limit(10)->orderBy("nom")->get();

Whith all dolibarr objects:

  • Agendaevents
  • Bankaccounts
  • Boms
  • Categories
  • CommonObject
  • Contacts
  • Contracts
  • Documents
  • Expensereports
  • Invoices
  • Mos
  • Orders
  • Products
  • Projects
  • Proposals
  • Shipments
  • Stockmovements
  • Supplierinvoices
  • Supplierorders
  • Tasks
  • Thirdparties
  • Users
  • Warehouses

Demo App

There is a demo app:

Support

Please have a look at https://cap-rel.fr/services/soutien-rd/ (use a online translator to get it in your language) ...