Browse Source

Merge branch 'feature/refactor-php' of github.com:rtCamp/easyengine into feature/refactor-php

feature/refactor-php
harshadyeola 9 years ago
parent
commit
42e9494a22
  1. 26
      php/apt.php
  2. 13
      php/pkgm/package_manager.php

26
php/apt.php

@ -0,0 +1,26 @@
<?php
class APT extends PKG_MANAGER
{
function install() {
$this->cmd = 'apt-get install '.$this->pkg ;
$this->execute_local();
}
function execute_local() {
$output = array();
$res = exec( $this->cmd, $output, $return );
$this->res = $output;
print_r( $this->res );
}
}

13
php/pkgm/package_manager.php

@ -0,0 +1,13 @@
<?php
/**
* Base class for package managements
*
*/
abstract class PKG_MANAGER {
public function __construct() {}
}
Loading…
Cancel
Save