Git Product home page Git Product logo

subiekt-sfera's Introduction

README

The PHP library to access and manage Subiekt GT and Navireo Sfera

Requirements

  • PHP >= 5.2.4
  • COM extension (Windows)

Installation

Composer (recommended)

$ composer require asocial-media/subiekt-sfera

Manually

$ git clone https://github.com/asocial-media/subiekt-sfera.git

or just download zip archive

Basic usage of GT (Subiekt GT, Rachmistrz GT, Rewizor GT, Gratyfikant GT, Mikro Gratyfikant GT, Gestor GT)

/**
 * 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

Basic usage of Navireo

/**
 * 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);

Sfera Documentation

You can find diagrams, examples and documentation in *.chm file which is located in Subiekt GT / Navireo installation directory.

C:\Program Files (x86)\InsERT\InsERT GT\Pomoc\gta.chm
C:\Program Files (x86)\InsERT\Navireo\Pomoc\gta.chm

Authors

License

The files in this archive are released under the MIT LICENSE.

subiekt-sfera's People

Contributors

mstraczkowski avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

subiekt-sfera's Issues

com_dotnet dla linuxa?

Witam,

czy stworzone przez ciebie rozwiązanie będzie działać na Unixowych maszynach, czy da rade zastąpić klasę COM - klasą PDO?

Pozdrawiam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.