定制 broeser/madpiper 二次开发

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

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

broeser/madpiper

Composer 安装命令:

composer require broeser/madpiper

包简介

MadPiper lets you create piped cli commands with a fluent interface

README 文档

README

MadPiper lets you create piped cli commands with a fluent interface.

Build Status codecov.io License SemVer 2.0.0

Goals

  • MadPiper shall be easy to use and easy to learn

Installation

MadPiper works with PHP 5.4, 5.5., 5.6 and 7.0.

The package can be installed via composer:

composer require broeser/madpiper

Check your safe mode settings and restrictions, in case you want to execute commands generated with MadPiper.

How to use

You can use MadPiper like this:

<?php
$madPiperCommand = new MadPiper\Command();

exec($madPiperCommand
    ->ps('u')
    ->grep('COMMAND')
);

Which will execute this (not very useful) command:

ps u|grep COMMAND

Note that neither ps() nor grep() are predefined methods, you can use almost any command you can imagine with as many arguments as you want.

<?php
$madPiperCommand = new MadPiper\Command();

exec($madPiperCommand
    ->ls('-ls', 'R*')
    ->
);

MadPiper does not execute, ist just returns the command as string. That means, that it should be easy to use MadPiper in your own project and with almost any framework.

MadPiper currently does not escape arguments.

Contributing?

Yes, please!

See CONTRIBUTING.md for details and/or open an issue with your questions.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

MadPiper?

A pun on the pipe-character | and the fact, that this project is slightly mad.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固