Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2018-05-22 (3 months ago) | | Not enough user ratings | | Total: 219 | | All time: 7,948 This week: 400 |
|
Description | | Author |
This package can create RPM packages for PHP applications.
The spec class can define with several details of a RPM package like the name, version, description, summary, project URL, etc..
The packager class can map existing project directories to mount directories to be used in the RPM package, create the mount directories and build the RPM package from the files in the mounted directories. Innovation Award
June 2015
Number 11 |
RPM is a popular packaging format used by several Linux distributions to provide packages to be installed on the system.
This package can build RPM package files, so you can install them on Linux distributions based on RPM.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 15x
Winner: 2x |
|
Details
RPM packager (PHP)
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)
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.