Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 225 | All time: 8,218 This week: 560 |
Version | License | PHP version | Categories | |||
php-rpm-package 0.1.9 | MIT/X Consortium ... | 5.3 | PHP 5, Tools, Unix, Compression |
Description | Author | |
This package can create RPM packages for PHP applications. Innovation Award
|
A simple rpm packager for PHP applications.
Get composer:
curl -sS http://getcomposer.org/installer | php
Install dependencies and autoloader
php composer.phar install
Use it:
<?php
require_once __DIR__ . '/vendor/autoload.php';
$spec = new \wapmorgan\rpm\Spec();
$spec
->setPackageName("my-package-name")
->setVersion("0.1.1")
->setDescription("My software description")
->setSummary('simple summary')
->setRelease('1')
->setUrl('http://...');
;
$packager = new \wapmorgan\rpm\Packager();
$packager->setOutputPath("/path/to/out");
$packager->setSpec($spec);
$packager->mount("/path/to/source-conf", "/etc/my-sw");
$packager->mount("/path/to/exec", "/usr/bin/my-sw");
$packager->mount("/path/to/docs", "/usr/share/docs");
//Creates folders using mount points
$packager->run();
//Get the rpmbuild command
echo $packager->build();
Create the Package
$(php pack.php)
Files (8) |
File | Role | Description | ||
---|---|---|---|---|
src (2 files) | ||||
tests (2 files) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (8) | / | tests |
File | Role | Description |
---|---|---|
PackagerTest.php | Test | Unit test script |
SpecTest.php | Test | Unit test script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.