rudashi/optima is a Laravel package for unofficial wrapper for erp comarch optima..
It currently has 3 GitHub stars and 52 downloads on Packagist (latest version v2.0.0).
Install it with composer require rudashi/optima.
Discover more Laravel packages by rudashi
or browse all Laravel packages to compare alternatives.
Last updated
Unofficial wrapper for ERP Comarch OPTIMA.
If necessary, use the composer to download the library
composer require rudashi/optima
If not working, add repository to yours composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/rudashi/optima.git"
}
],
Add to .env your sqlSRV database configuration
MS_HOST=127.0.0.1
MS_PORT=1433
MS_DATABASE=cdn_optima
MS_USERNAME=su
MS_PASSWORD=
MS_SOCKET=
To get access to optima query you can use it:
optima()->from('table')->get();
To get information about customer you can use one of two methods:
(new CustomerRepository(optima(false)))->findByCode('TEST!');
(new CustomerRepository(optima(false)))->find(1111, 222, 3333);