PHPABTPL(1) | pkg-php-tools | PHPABTPL(1) |
phpabtpl - generate phpab templates with dependency autoloading
phpabtpl [OPTION...] [composer.json]
phpabtpl is a command-line tool used to generate phpab autoloader templates. In addition to the regular autoloading of the package's own class files, the generated template will also include automatic loading of dependencies and statically loaded files, based on the specification read from a composer.json file.
This option can be used to adjust the paths for statically loaded files (Composer's "files" section), to treat them as relative to the specified directory rather than to the source's root. This would typical be used for packages where the actual source files are kept in a sub-directory (commonly "src").
Limitation: This directory must be somewhere above the to-be-loaded files in the file hierarchy. It will not traverse upwards.
composer_package is the name of a Composer package, e.g. "vendor/project". It is treated as an extra entry in the composer.json "require" section.
This option can be repeated to add multiple dependencies.
composer_package is the name of a Composer package, e.g. "vendor/project". It is treated as an extra entry in the composer.json "suggest" section.
This option can be repeated to add multiple dependencies.
The file path will be adapted to --basedir, if given. It is treated as an extra entry in the composer.json "autoload.files" section.
This option can be repeated to add multiple files.
The format is a set of lines, with each line having the following fields:
It can be installed in /usr/share/pkg-php-tools/autoloaders/package.
2023-01-28 | 1.44 |