|
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 | +================================= |
5 | 3 |
|
6 | | -Then you can use system wide installed libraries in your package using this |
7 | | -minimal template of composer.json |
| 4 | +PHP Autoloader |
| 5 | +-------------- |
8 | 6 |
|
| 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'; |
9 | 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. |
| 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 |
10 | 43 | { |
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 | | - }, |
16 | 44 | "require": { |
17 | | - "deb/ease-core": "*", |
18 | | - "deb/ease-html": "*", |
19 | | - "deb/ease-bootstrap5": "*" |
| 45 | + "deb/ease-twbootstrap5": "*" |
20 | 46 | }, |
21 | 47 | "repositories": [ |
22 | 48 | { |
23 | 49 | "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", |
39 | 51 | "options": { |
40 | 52 | "symlink": true |
41 | 53 | } |
42 | 54 | } |
43 | 55 | ] |
44 | 56 | } |
| 57 | +``` |
| 58 | + |
| 59 | +Migration from Composer vendor/autoload.php |
| 60 | +-------------------------------------------- |
45 | 61 |
|
| 62 | +If you're migrating from Composer's autoloader, replace: |
| 63 | + |
| 64 | +```php |
| 65 | +require_once __DIR__ . '/../vendor/autoload.php'; |
46 | 66 | ``` |
47 | 67 |
|
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: |
52 | 69 |
|
53 | | -sudo apt install php-vitexsoftware-ease-bootstrap5 |
| 70 | +```php |
| 71 | +require_once '/usr/share/php/Ease/TWB5/autoload.php'; |
54 | 72 | ``` |
55 | 73 |
|
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. |
57 | 75 |
|
| 76 | + -- VitexSoftware <info@vitexsoftware.cz> Tue Mar 03 23:31:41 CET 2026 |
0 commit comments