PHP Classes
elePHPant
Icontem

PHP RPM Packager: Create RPM packages for PHP applications

Recommend this page to a friend!
  Info   View files Documentation   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-05-22 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 219 All time: 7,948 This week: 400Up
Version License PHP version Categories
php-rpm-package 0.1.9MIT/X Consortium ...5.3PHP 5, Utilities and Tools, Unix, Com...
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
PHP Programming Innovation award nominee
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
  Performance   Level  
Name: Sergey Vanyushin <contact>
Classes: 15 packages by
Country: Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 15x

Winner: 2x

Details

RPM packager (PHP)

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:

<?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 folder image Files  
File Role Description
Files folder imagesrc (2 files)
Files folder imagetests (2 files)
Plain text file .travis.yml Data Auxiliary data
Plain text file composer.json Data Auxiliary data
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file Packager.php Class Class source
  Plain text file Spec.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file PackagerTest.php Test Unit test script
  Plain text file SpecTest.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:219
This week:0
All time:7,948
This week:400Up