2017 © Pedro Peláez
 

library phpline

Execute command line using php

image

khal3d/phpline

Execute command line using php

  • Thursday, August 29, 2013
  • by khal3d
  • Repository
  • 2 Watchers
  • 4 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHPLine

PHPLine is a PHP class that allow you to execute commands through PHP script., (*1)

Installation

The recommended way to install PHPLine is through composer., (*2)

Just create a composer.json file for your project:, (*3)

``` json { "require": { "khal3d/phpline": "*" } }, (*4)


And run these two commands to install it: ``` bash $ wget http://getcomposer.org/composer.phar $ php composer.phar install

Now you can add the autoloader, and you will have access to the library:, (*5)

``` php <?php include 'vendor/autoload.php';, (*6)


If you don't use **Composer** in your application, just include the class file: ``` php <?php include_once( 'src/PHPLine/PHPLine.php' ); $PHPLine = new PHPLine\PHPLine();

You're done!, (*7)

Usage

example ``` php $PHPLine = new PHPLine\PHPLine(); print_r($PHPLine->run('ls -al'));, (*8)


another example: ``` php $PHPLine = new PHPLine\PHPLine(); $PHPLine->run('ping google.com', TRUE);

Credits

Khaled Attia. @khal3d., (*9)

License

This project is released under GPL v3 license., (*10)

Please free to contact me if you have any question., (*11)

The Versions

29/08 2013

dev-master

9999999-dev https://github.com/khal3d/phpline

Execute command line using php

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

console terminal cli command line shell cmd

09/05 2013

dev-development

dev-development https://github.com/khal3d/phpline

Execute command line using php

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

console terminal cli command line shell cmd

09/05 2013

v0.1

0.1.0.0 https://github.com/khal3d/phpline

Execute command line using php

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

console terminal cli command line shell cmd