Skip to content

Commit b61487f

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 3e1a16a commit b61487f

2 files changed

Lines changed: 146 additions & 4 deletions

File tree

WARP.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# WARP.md - Working AI Reference for php-vitexsoftware-ease-html-widgets
2+
3+
## Project Overview
4+
**Type**: PHP Project/Debian Package
5+
**Purpose**: Welcome to the VitexSoftware Ease HTML Widgets project! This repository contains a collection of reusable HTML widgets for PHP applications.
6+
**Status**: Active
7+
**Repository**: git@github.com:VitexSoftware/php-vitexsoftware-ease-html-widgets.git
8+
9+
## Key Technologies
10+
- PHP
11+
- Composer
12+
- Debian Packaging
13+
14+
## Architecture & Structure
15+
```
16+
php-vitexsoftware-ease-html-widgets/
17+
├── src/ # Source code
18+
├── tests/ # Test files
19+
├── docs/ # Documentation
20+
└── ...
21+
```
22+
23+
## Development Workflow
24+
25+
### Prerequisites
26+
- Development environment setup
27+
- Required dependencies
28+
29+
### Setup Instructions
30+
```bash
31+
# Clone the repository
32+
git clone git@github.com:VitexSoftware/php-vitexsoftware-ease-html-widgets.git
33+
cd php-vitexsoftware-ease-html-widgets
34+
35+
# Install dependencies
36+
composer install
37+
```
38+
39+
### Build & Run
40+
```bash
41+
dpkg-buildpackage -b -uc
42+
```
43+
44+
### Testing
45+
```bash
46+
composer test
47+
```
48+
49+
## Key Concepts
50+
- **Main Components**: Core functionality and modules
51+
- **Configuration**: Configuration files and environment variables
52+
- **Integration Points**: External services and dependencies
53+
54+
## Common Tasks
55+
56+
### Development
57+
- Review code structure
58+
- Implement new features
59+
- Fix bugs and issues
60+
61+
### Deployment
62+
- Build and package
63+
- Deploy to target environment
64+
- Monitor and maintain
65+
66+
## Troubleshooting
67+
- **Common Issues**: Check logs and error messages
68+
- **Debug Commands**: Use appropriate debugging tools
69+
- **Support**: Check documentation and issue tracker
70+
71+
## Additional Notes
72+
- Project-specific conventions
73+
- Development guidelines
74+
- Related documentation

debian/README.Debian

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,76 @@
11
php-vitexsoftware-ease-html-widgets for Debian
2+
===============================================
23

3-
Please edit this to provide information specific to
4-
this php-vitexsoftware-ease-html-widgets Debian package.
4+
PHP Autoloader
5+
--------------
56

6-
(Automatically generated by debmake Version 4.4.0)
7+
This package uses the **Debian PHP autoloader system** (pkg-php-tools).
78

8-
-- Vítězslav Dvořák <info@vitexsoftware.cz> Sat, 19 Oct 2024 11:12:51 +0200
9+
Classes are installed in: `/usr/share/php/Ease/Html/Widgets`
10+
Autoloader: `/usr/share/php/Ease/Html/Widgets/autoload.php`
11+
12+
To use in your PHP code:
13+
14+
```php
15+
require_once '/usr/share/php/Ease/Html/Widgets/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 php-vitexsoftware-ease-html-widgets
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/vitexsoftware-ease-html-widgets": "*"
46+
},
47+
"repositories": [
48+
{
49+
"type": "path",
50+
"url": "/usr/share/php/Ease/Html/Widgets",
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/Ease/Html/Widgets/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:41 CET 2026

0 commit comments

Comments
 (0)