1. Go to this page and download the library: Download spoje.net/flexibee library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
spoje.net / flexibee example snippets
// AbraFlexi API URL
define('ABRAFLEXI_URL', 'https://abraflexi-dev.spoje.net:5434');
// AbraFlexi API User
define('ABRAFLEXI_LOGIN', 'apiuser');
// AbraFlexi API Password
define('ABRAFLEXI_PASSWORD', 'apipass');
// Company in AbraFlexi
define('ABRAFLEXI_COMPANY', 'test_s_r_o_');
// Or if you do not want to use username and password
define('ABRAFLEXI_AUTHSESSID', '6QuifebMits'); // Optional
// Slow server, large database, and over a modem
define('ABRAFLEXI_TIMEOUT', 60); // Optional
// Return PHP exception if AbraFlexi returns an error
define('ABRAFLEXI_EXCEPTIONS', true); // Optional
/**
* @link https://demo.abraflexi.eu/c/demo/merna-jednotka/properties Properties of the record
*/
class MernaJednotka extends /AbraFlexi/RW
{
/**
* Record used by the object.
*
* @var string
*/
public $evidence = 'merna-jednotka';
}
$jednotky = new MernaJednotka();
print_r( $jednotky->getAllFromAbraFlexi() );