Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
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)
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
Data | Auxiliary data | ||
![]() |
Data | Auxiliary data | ||
![]() |
Lic. | License text | ||
![]() |
Doc. | Documentation |
![]() |
/ | tests |
File | Role | Description |
---|---|---|
![]() |
Test | Unit test script |
![]() |
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. |
![]() |
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.