定制 khal3d/phpline 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

khal3d/phpline

Composer 安装命令:

composer require khal3d/phpline

包简介

Execute command line using php

README 文档

README

PHPLine is a PHP class that allow you to execute commands through PHP script.

Installation

The recommended way to install PHPLine is through composer.

Just create a composer.json file for your project:

{
	"require": {
		"khal3d/phpline": "*"
	}
}

And run these two commands to install it:

$ wget http://getcomposer.org/composer.phar
$ php composer.phar install

Now you can add the autoloader, and you will have access to the library:

<?php
include 'vendor/autoload.php';

If you don't use Composer in your application, just include the class file:

<?php
include_once( 'src/PHPLine/PHPLine.php' );
$PHPLine = new PHPLine\PHPLine();

You're done!

Usage

example

$PHPLine = new PHPLine\PHPLine();
print_r($PHPLine->run('ls -al'));

another example:

$PHPLine = new PHPLine\PHPLine();
$PHPLine->run('ping google.com', TRUE);

Credits

Khaled Attia. @khal3d.

License

This project is released under GPL v3 license.

Please free to contact me if you have any question.

统计信息

  • 总下载量: 38
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2013-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固