1- FlexiPeeHP Debian
2- -------------------
3-
4- Is installed by standard way in /usr/share/php/AbraFlexi
5- You have to run refreshment script:
1+ php-abraflexi for Debian
2+ =========================
63
7- cd /usr/share/php/AbraFlexi/tools && ./update_all.sh
4+ PHP Autoloader
5+ --------------
86
9- When your AbaraFlexi server was updated
7+ This package uses the **Debian PHP autoloader system** (pkg-php-tools).
108
11- It is configured by /etc/abraflexi/client.json file or environment variables by
12- default specified by in /etc/profile.d/abraflexi-client.sh
9+ Classes are installed in: `/usr/share/php/AbraFlexi`
10+ Autoloader: `/usr/share/php/AbraFlexi/autoload.php`
1311
14- Install abraflexi-client-config package to modify connection settings
12+ To use in your PHP code:
1513
14+ ```php
15+ require_once '/usr/share/php/AbraFlexi/autoload.php';
16+ ```
17+
18+ The autoloader is automatically generated by `phpab` during package build and
19+ includes all package classes with proper dependency loading.
20+
21+ **Note:** This package NO LONGER ships vendor/autoload.php from Composer.
22+ Use the Debian autoloader instead for proper system integration.
1623
17- Debian/Ubuntu
18- -------------
24+ Installation
25+ ------------
1926
20- Pro Linux jsou k dispozici .deb balíčky. Prosím použijte repo:
27+ For Debian, Ubuntu & friends please use repo:
2128
2229```shell
2330sudo apt install lsb-release wget
2431echo "deb http://repo.vitexsoftware.cz $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
2532sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg
2633sudo apt update
27- sudo apt install php-spojenet- abraflexi
34+ sudo apt install php-abraflexi
2835```
2936
30- V tomto případě je potřeba do souboru composer.json vaší aplikace přidat:
37+ Composer Integration
38+ --------------------
39+
40+ If using Composer in your application, you can reference the Debian package:
3141
3242```json
43+ {
3344 "require": {
34- "deb/ease-core": "*",
3545 "deb/abraflexi": "*"
3646 },
3747 "repositories": [
@@ -41,55 +51,26 @@ V tomto případě je potřeba do souboru composer.json vaší aplikace přidat:
4151 "options": {
4252 "symlink": true
4353 }
44- },
45- {
46- "type": "path",
47- "url": "/usr/share/php/EaseCore",
48- "options": {
49- "symlink": true
50- }
5154 }
5255 ]
56+ }
5357```
5458
55- Takže při instalaci závislostí bude vypadat nějak takto:
56-
57- Loading composer repositories with package information
58- Installing dependencies from lock file
59- - Installing ease-core (2.0)
60- Symlinked from /usr/share/php/Ease
59+ Migration from Composer vendor/autoload.php
60+ --------------------------------------------
6161
62- - Installing abraflexi (2.3)
63- Symlinked from /usr/share/php/AbraFlexi
62+ If you're migrating from Composer's autoloader, replace:
6463
65- A aktualizaci bude možné dělat globálně pro celý systém prostřednictvím apt-get.
66-
67- Generujeme také balíček **php-spojenet-abraflexi-doc**, obsahující vývojářskou dokumentaci
68- generovanou pomcí programu ApiGen. Dokumnentace je online k nahlédnutí na adrese
69- http://abraflexi-dev.spoje.net/php-abraflexi/
70-
71- Testování:
72-
73- cd /usr/share/doc/AbraFlexi/
74- composer install
75- php -f abraflexiping.php
76-
77-
78- 
79-
80- Soubory tříd jsou v Debianu instalovány do složky /usr/share/php/AbraFlexi a
81- měl by se spouštět občerstvovací skript pokaždé když je AbaraFlexi server
82- aktualizován na novou verzi:
83-
84- ```shell
85- cd /usr/share/php/AbraFlexi/tools && sudo ./update_all.sh
64+ ```php
65+ require_once __DIR__ . '/../vendor/autoload.php';
8666```
8767
88- Server ze kterého se struktura získává se nastavuje v souboru /etc/abraflexi/client.json
89- nebo proměnnými prostředí definovanými zpravidla v /etc/profile.d/abraflexi-client.sh
90-
91- Nainstalujte balíček abraflexi-client-config pro snadnou změnu těchto nastavení
68+ with:
9269
70+ ```php
71+ require_once '/usr/share/php/AbraFlexi/autoload.php';
72+ ```
9373
94- -- Vítězslav Dvořák <info@vitexsoftware.cz> Ne říj 21 15:17:56 CEST 2021
74+ This ensures you're using the system-wide Debian packages instead of bundled dependencies.
9575
76+ -- VitexSoftware <info@vitexsoftware.cz> Tue Mar 03 23:31:36 CET 2026
0 commit comments