wdalmut / php-deb-describe
PHP应用程序的简单Debian打包器包装
0.0.1
2015-04-12 13:52 UTC
Requires
- symfony/console: ~2.6
- symfony/yaml: ~2.6
- wdalmut/php-deb-packager: >=0.0.10
Requires (Dev)
- mikey179/vfsstream: 1.4.*
- phpspec/phpspec: ~2
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-09-14 17:16:18 UTC
README
只是一个围绕wdalmut/php-deb-packager
包的简单包装
使用Yaml文件描述deb
包
output_path: /mnt/out mount: - {src: "/first", dest: "/somewhere"} - {src: "/src", dest: "/usr/shara/mysw"} control: package: my-package-name version: 0.0.1 depends: php5, php5-cli, php5-curl maintainer: Walter Dal Mut [an-email@email.tld] provides: something, something-else replaces: first-package, second-package suggests: php5-mcrypt, php5-xsl pre_depends: build-essentials, libc6 architecture: all section: web
与composer一起使用
只需引入它!
composer require wdalmut/php-deb-describe:dev-master
然后使用它!
./vendor/bin/pdpkg package your.yml
作为phar
包使用
你可以使用clue/phar-composer创建你的phar
包
phar-composer.phar build wdalmut/php-deb-describe:dev-master
直接使用库
只需准备一个简单的compile.php
文件
<?php use Symfony\Component\Yaml\Parser; use wdm\debian\Packager; use wdm\debian\control\StandardFile; $parser = new Parser(); $packager = new Packager(); $packager->setControl(new StandardFile()); $describer = new Describer($parser, $packager); echo $describer->compose(file_get_contents("/path/to/file.yml"));
然后运行它!
$(php compile.php)
现在你有了你的.deb
包!