https://github.com/vitexsoftware/php-primaerp
PHP Library for easy interaction with ABRA's primaERP
https://github.com/vitexsoftware/php-primaerp
easephp php-library
Last synced: 2 months ago
JSON representation
PHP Library for easy interaction with ABRA's primaERP
- Host: GitHub
- URL: https://github.com/vitexsoftware/php-primaerp
- Owner: VitexSoftware
- License: apache-2.0
- Created: 2017-10-05T11:48:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T12:41:21.000Z (about 2 years ago)
- Last Synced: 2024-03-29T14:43:41.489Z (almost 2 years ago)
- Topics: easephp, php-library
- Language: PHP
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# primaERP PHP Library
PHP Library for easy interaction with [ABRA](https://www.abra.eu/)'s [primaERP](http://devdoc.primaerp.com/index.html)
[](https://github.com/VitexSoftware/php-primaERP)
[](https://github.com/VitexSoftware/php-primaERP/releases)
[](https://github.com/VitexSoftware/php-primaERP/blob/master/LICENSE)
[](https://travis-ci.org/VitexSoftware/php-primaERP)
[](https://scrutinizer-ci.com/g/VitexSoftware/php-primaERP/?branch=master)
[](https://packagist.org/packages/VitexSoftware/php-primaERP)
[](https://packagist.org/packages/VitexSoftware/php-primaERP)
Installation
------------
composer require vitexsoftware/primaerp
Configuration
-------------
Please set up following constants:
```php
/*
* primaERP API user comany/account name
*/
define('PRIMAERP_COMPANY', 'vitexsoftware');
/*
* URL primaERP API
*/
define('PRIMAERP_URL',
'https://'.constant('PRIMAERP_COMPANY').'.api.primaerp.com');
/*
* Login is Email primaERP API user
*/
define('PRIMAERP_LOGIN', 'email@domain.tld');
/*
* primaERP API user password
*/
define('PRIMAERP_PASSWORD', 'password');
/*
* primaERP API KEY
*/
define('PRIMAERP_APIKEY', '1af7a44b-81f1-4de1-11e7-1e675acb1221');
```
nebo je možné přihlašovací údaje zadávat při vytváření instance třídy.
```php
$projector = new ApiClient(null, ['section' => 'time','user'=>'email@some.ser','password'=>'XXXX','apikey'=>'1af7a44b-81f1-4de1-11e7-1e675acb1221']);
$projects = $projector->requestData('projects');
```
Tento způsob nastavení má vyšší prioritu než výše uvedené definovaní konstant.
Debian/Ubuntu
-------------
Pro Linux jsou k dispozici .deb balíčky. Prosím použijte repo:
wget -O - http://v.s.cz/info@vitexsoftware.cz.gpg.key|sudo apt-key add -
echo deb http://v.s.cz/ stable main > /etc/apt/sources.list.d/ease.list
aptitude update
aptitude install php-primaerp