|
1 | | -sms-input for Debian |
| 1 | +Sms-Input for Debian |
| 2 | +===================== |
2 | 3 |
|
3 | | -Please edit this to provide information specific to |
4 | | -this sms-input Debian package. |
| 4 | +PHP Autoloader |
| 5 | +-------------- |
5 | 6 |
|
6 | | - (Automatically generated by debmake Version 4.4.0) |
| 7 | +This package uses the **Debian PHP autoloader system** (pkg-php-tools). |
7 | 8 |
|
8 | | - -- Vítězslav Dvořák <info@vitexsoftware.cz> Sat, 13 Jan 2024 15:37:23 +0100 |
| 9 | +Classes are installed in: `/usr/share/php/SpojeNet/SmsInput` |
| 10 | +Autoloader: `/usr/share/php/SpojeNet/SmsInput/autoload.php` |
| 11 | + |
| 12 | +To use in your PHP code: |
| 13 | + |
| 14 | +```php |
| 15 | +require_once '/usr/share/php/SpojeNet/SmsInput/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. |
| 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 Sms-Input |
| 35 | +``` |
| 36 | + |
| 37 | +Composer Integration |
| 38 | +-------------------- |
| 39 | + |
| 40 | +If using Composer in your application, you can reference the Debian package: |
| 41 | + |
| 42 | +```json |
| 43 | +{ |
| 44 | + "require": { |
| 45 | + "deb/Sms-Input": "*" |
| 46 | + }, |
| 47 | + "repositories": [ |
| 48 | + { |
| 49 | + "type": "path", |
| 50 | + "url": "/usr/share/php/SpojeNet/SmsInput", |
| 51 | + "options": { |
| 52 | + "symlink": true |
| 53 | + } |
| 54 | + } |
| 55 | + ] |
| 56 | +} |
| 57 | +``` |
| 58 | + |
| 59 | +Migration from Composer vendor/autoload.php |
| 60 | +-------------------------------------------- |
| 61 | + |
| 62 | +If you're migrating from Composer's autoloader, replace: |
| 63 | + |
| 64 | +```php |
| 65 | +require_once __DIR__ . '/../vendor/autoload.php'; |
| 66 | +``` |
| 67 | + |
| 68 | +with: |
| 69 | + |
| 70 | +```php |
| 71 | +require_once '/usr/share/php/SpojeNet/SmsInput/autoload.php'; |
| 72 | +``` |
| 73 | + |
| 74 | +This ensures you're using the system-wide Debian packages instead of bundled dependencies. |
| 75 | + |
| 76 | + -- VitexSoftware <info@vitexsoftware.cz> Tue Mar 03 23:31:37 CET 2026 |
0 commit comments