Shadow-Here


Server : Apache
System : Linux methusalix2 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
User : hios ( 1437)
PHP Version : 5.6.40-0+deb8u12
Disable Function : proc_close,proc_open,dl,shell_exec,passthru
Directory :  /usr/share/doc/pkg-php-tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : //usr/share/doc/pkg-php-tools/README.Composer
= Getting started

A Composer package using pkg-php-tools is initialized using dh_make (with dh7 rule
format, now default). Usual cleaning is done (replacing all boilerplate). Then
debian/control and debian/rules are edited as below (example with package
php-foo). Files should be installed using the standard debian/install file.

That's it!

debian/rules:
-------------
<<<---
#!/usr/bin/make -f
%:
	dh $@ --with phpcomposer
--->>>

debian/control:
---------------
<<<---
Source: php-foo
Section: php
Priority: extra
Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
Uploaders: Your Name <your.name@example.org>
Build-Depends: debhelper (>= 8.0.0), pkg-php-tools (>= 1.7~)
Standards-Version: 3.9.4
Homepage: https://packagist.org/packages/foo/foo
Vcs-Git: git://anonscm.debian.org/pkg-php/php-foo.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php-foo.git

Package: php-foo
Architecture: all
Depends: ${misc:Depends}, ${phpcomposer:Debian-require}
Suggests: ${phpcomposer:Debian-suggest}
Description: ${phpcomposer:description}
 (fill in long description)
--->>>

Note: You can also add the following fields (check that they behave as expected):
Replaces: ${phpcomposer:Debian-replace}
Breaks: ${phpcomposer:Debian-conflict}, ${phpcomposer:Debian-replace}
Provides: ${phpcomposer:Debian-provide}

= Advanced usage

Advanced usage is described in the various manpages. See pkg-php-tools(7).

Samx