Skip to content

Commit 3e0ef4f

Browse files
committed
Migrace na Debian PHP autoloader systém
- Aktualizován debian/README.Debian s instrukcemi pro Debian autoloader - Přechod z vendor/autoload.php na /usr/share/php/*/autoload.php - Využití pkg-php-tools a phpab pro generování autoloaderu - Dokumentace pro migraci existujících aplikací
1 parent e7086c0 commit 3e0ef4f

1 file changed

Lines changed: 54 additions & 35 deletions

File tree

debian/README.Debian

Lines changed: 54 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,76 @@
1-
Ease framework TWB5 for Debian
2-
------------------------------
3-
4-
Is installed by standard way in /usr/share/php/EaseTWB5
1+
php-ease-twbootstrap5 for Debian
2+
=================================
53

6-
Then you can use system wide installed libraries in your package using this
7-
minimal template of composer.json
4+
PHP Autoloader
5+
--------------
86

7+
This package uses the **Debian PHP autoloader system** (pkg-php-tools).
8+
9+
Classes are installed in: `/usr/share/php/Ease/TWB5`
10+
Autoloader: `/usr/share/php/Ease/TWB5/autoload.php`
11+
12+
To use in your PHP code:
13+
14+
```php
15+
require_once '/usr/share/php/Ease/TWB5/autoload.php';
916
```
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.
23+
24+
Installation
25+
------------
26+
27+
For Debian, Ubuntu & friends please use repo:
28+
29+
```shell
30+
sudo apt install lsb-release wget
31+
echo "deb http://repo.vitexsoftware.cz $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
32+
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg
33+
sudo apt update
34+
sudo apt install php-ease-twbootstrap5
35+
```
36+
37+
Composer Integration
38+
--------------------
39+
40+
If using Composer in your application, you can reference the Debian package:
41+
42+
```json
1043
{
11-
"name": "deb/your-package",
12-
"description": "App using Ease framework installed as debian package",
13-
"config": {
14-
"vendor-dir": "/var/lib/your-package"
15-
},
1644
"require": {
17-
"deb/ease-core": "*",
18-
"deb/ease-html": "*",
19-
"deb/ease-bootstrap5": "*"
45+
"deb/ease-twbootstrap5": "*"
2046
},
2147
"repositories": [
2248
{
2349
"type": "path",
24-
"url": "/usr/share/php/EaseCore",
25-
"options": {
26-
"symlink": true
27-
}
28-
},
29-
{
30-
"type": "path",
31-
"url": "/usr/share/php/EaseHtml",
32-
"options": {
33-
"symlink": true
34-
}
35-
},
36-
{
37-
"type": "path",
38-
"url": "/usr/share/php/EaseTWB5",
50+
"url": "/usr/share/php/Ease/TWB5",
3951
"options": {
4052
"symlink": true
4153
}
4254
}
4355
]
4456
}
57+
```
58+
59+
Migration from Composer vendor/autoload.php
60+
--------------------------------------------
4561

62+
If you're migrating from Composer's autoloader, replace:
63+
64+
```php
65+
require_once __DIR__ . '/../vendor/autoload.php';
4666
```
4767

48-
```shell
49-
wget -qO- https://repo.vitexsoftware.com/keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg
50-
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
51-
sudo apt update
68+
with:
5269

53-
sudo apt install php-vitexsoftware-ease-bootstrap5
70+
```php
71+
require_once '/usr/share/php/Ease/TWB5/autoload.php';
5472
```
5573

56-
-- Vítězslav Dvořák <vitex@hippy.cz> Ne říj 21 15:17:56 CEST 2012
74+
This ensures you're using the system-wide Debian packages instead of bundled dependencies.
5775

76+
-- VitexSoftware <info@vitexsoftware.cz> Tue Mar 03 23:31:41 CET 2026

0 commit comments

Comments
 (0)