RPM packager for PHP applications.

v0.1.6 2017-01-24 11:57 UTC

This package is auto-updated.

Last update: 2023-01-12 00:29:45 UTC


Composer package Build Status Scrutinizer Code Quality

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:


require_once __DIR__ . '/vendor/autoload.php';

$spec = new \wapmorgan\rpm\Spec();
    ->setDescription("My software description")
    ->setSummary('simple summary')

$packager = new \wapmorgan\rpm\Packager();


$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

//Get the rpmbuild command
echo $packager->build();

Create the Package

$(php pack.php)