DH_PHPCOMPOSER(1)
π DH_PHPCOMPOSER(1) β the debhelper one, bestie π
okay so this is the manual page for dh_phpcomposer, part of the debhelper fam. pull up a chair, grab a boba, we're doing this π§β¨
β¨ NAME β¨
dh_phpcomposer β she calculates PHP Composer substvars π
no cap, that's literally her whole job
πΈ SYNOPSIS πΈ
dh_phpcomposer [debhelper options] [options]
π¦ DESCRIPTION π¦
so dh_phpcomposer is a debhelper program, and her entire main character moment is generating the ${phpcomposer:*} substitutions and dropping them into substvars files π
she goes looking for a composer.json file in the package root, and then uses that info to cook up:
${phpcomposer:name}and${phpcomposer:description}${phpcomposer:Debian-require},${phpcomposer:Debian-require-dev},${phpcomposer:Debian-conflict},${phpcomposer:Debian-replace},${phpcomposer:Debian-provide},${phpcomposer:Debian-suggest}and${phpcomposer:Debian-recommend}
those variables get substituted into the package's control file wherever you've placed the ${phpcomposer:*} token π
β οΈ heads up bestie: this feature needs pkg-php-tools (>= 1.7~). like, it will not work without it, periodt.
π OPTIONS π
--sourcedirectory=directoryβ tell her that the original package source tree lives in the directory you specify, instead of assuming it's sitting at the top level directory of the Debian source package tree ποΈ
β οΈ and this one specifically needs pkg-php-tools (>= 1.14~), so don't come crying to me if you're on an older version π
π FILES π
debian/pkg-php-tools-overridesβ if a package is being a lil rebel and does not want to follow the automatic Composer-package-name-to-Debian-package-name conversion, you can override that conversion by creating this file π«Ά
more info lives in dh_phppear(1), go read it, iykyk π
π CONFORMING TO π
Debian policy, version 3.9.6. β
PHP PEAR policy, version yet-to-be-written. π yeah. it's giving "coming soon" but make it 4-ever.
π SEE ALSO π
debhelper(7), pkg-php-tools(7), /usr/share/doc/pkg-php-tools/README.Composer β¨
π AUTHOR π
Mathieu Parent <sathieu@debian.org> β thank you for your service, icon π«‘
and that's the whole page, bestie!! this one's 1.49build1, dated 2025-12-06 β go forth and let dh_phpcomposer handle your substvars, she's got you π§ππ₯
π¦ where this page comes from
- ubuntu resolute: pkg-php-tools 1.49build1 Β· LGPL-3.0-only
- ubuntu stonking: pkg-php-tools 1.49build1 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms