https://github.com/spoje-net/pohodasql
PHP Library for Pohoda SQL Tables access
https://github.com/spoje-net/pohodasql
fintech mssql php-library pohoda
Last synced: about 2 months ago
JSON representation
PHP Library for Pohoda SQL Tables access
- Host: GitHub
- URL: https://github.com/spoje-net/pohodasql
- Owner: Spoje-NET
- Created: 2020-05-22T15:59:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-22T05:03:23.000Z (6 months ago)
- Last Synced: 2025-03-04T09:43:23.767Z (3 months ago)
- Topics: fintech, mssql, php-library, pohoda
- Language: PHP
- Size: 304 KB
- Stars: 8
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PohodaSQL
=========
[](https://php.net/)
[](https://opensource.org/licenses/MIT)
[](https://getcomposer.org/)
[](http://repo.vitexsoftware.com/pool/main/p/php-spojenet-pohoda-sql/)This is a PHP Library for direct access to Pohoda SQL database tables
Use at your own risk!
Requirements
------------* PHP 7.2+
* php-sqlsrv
* php-ease-fluentpdoComposer
--------```shell
composer require spojenet/pohoda-sql
```Configuration
-------------Please set up this constants or environment variables:
* `DB_TYPE` We use sqlsrv
* `DB_HOST` IP or Hostname machine with SQL Server
* `DB_PORT` default is 1433
* `DB_DATABASE` something like StwPh_01234567_2019
* `DB_USERNAME` sqlserver login
* `DB_PASSWORD` sqlserver pass
* `DB_SETTINGS` eg. encrypt=falseYou can also int object like this:
```php
$addr = new Adresar(234,['database'=>'StwPh_01234567_2020']); //Load record by ID from overriden Database
$addr = new Adresar(['ICO'=>'69438676']); //Load record by ICO
```See https://github.com/VitexSoftware/php-ease-fluentpdo for mor informations
Debian Package
--------------also package for debian/ubuntu is availble:
```shell
wget -qO- https://repo.vitexsoftware.com/keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/vitexsoftware.gpg] https://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo apt updatesudo apt install php-spojenet-pohoda-sql
````