1. Go to this page and download the library: Download asocial-media/subiekt-sfera 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/ */
asocial-media / subiekt-sfera example snippets
/**
* Used namespaces
*/
use AsocialMedia\Sfera\GT;
use AsocialMedia\Sfera\Program;
// Creating an instance of GT
$gt = new GT('(local)\INSERTGT', 'Test', 'sa', '', 'Szef', 'password123');
// We are going to run Subiekt GT
$subiekt = new Program(
$gt,
Program::SUBIEKT_GT,
Program::ADJUST_OPERATOR,
Program::RUN_NORMAL
);
// You can also run program in background (no user interface)
$subiekt = new Program(
$gt,
Program::SUBIEKT_GT,
Program::ADJUST_OPERATOR,
Program::RUN_IN_BACKGROUND
);
// We are now accessing Subiekt Sfera GT and trying to load product with id 1
$subiekt->TowaryManager->Wczytaj(1);
// Available programs:
// Program::SUBIEKT_GT, Program::RACHMISTRZ_GT, Program::REWIZOR_GT
// Program::GRATYFIKANT_GT, Program::MIKRO_GRATYFIKANT_GT, Program::GESTOR_GT,
// Available adjust modes:
// Program::ADJUST_NORMAL, Program::ADJUST_USERNAME, Program::ADJUST_OPERATOR
// Available running modes:
// Program::RUN_NORMAL, Program::RUN_IF_NOT_BLOCKED, Program::RUN_IN_BACKGROUND
/**
* Used namespaces
*/
use AsocialMedia\Sfera\Navireo;
# Navireo is using *.iqa file instead of logging in
# You can create *.iqa file using "Pulpit Konfiguracyjny" application
# See: Users -> Select user for Sfera purposes -> Create start shortcut
// Creating new instance
$navireo = new Navireo('C:\your-iqa-file.iqa');
// We are now accessing Sfera and trying to load product with id 1
$navireo->TowaryManager->Wczytaj(1);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.