Skip to content

Access to your Dolibarr objects from Laravel app

License

Notifications You must be signed in to change notification settings

rycks/laravel-dolibarr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Access to your Dolibarr REST API from Laravel app

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) ...

About

Access to your Dolibarr objects from Laravel app

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages