Skip to content

lemonphp/phprun

Repository files navigation

Introduction

Build Status Coverage Status

A a simple command line application framework to develop simple tools based on Symfony2 components

Main features

  • Support PHP ^5.5.9
  • Support Dependency Injection
  • Support Event dispatcher
  • Support log output to file
  • Support output task durations
  • Support load tasks from file
  • Support task dependencies

Requirements

  • php >=5.5.9
  • pimple/pimple ^3.0
  • symfony/console ^3.0
  • symfony/event-dispatcher ^3.0

Installation

$ composer require --dev lemonphp/phprun

Usage

Make file phprun.php in root directory of project.

<?php
// file /path/to/project/phprun.php
namespace Lemon\PHPRun;

task('abc', function($input, $output, $env) {
    echo 'abc';
});

After that, run with your shell:

$ cd /path/to/project
$ ./vendor/bin/phprun

Changelog

See CHANGELOG.md

Contributing

All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send a pull request.

To ensure a consistent code base, you should make sure the code follows the PSR-2.

If you would like to help take a look at the list of issues.

License

This project is released under the MIT License. Copyright © 2015-2016 LemonPHP Team.

About

A task runner is made by PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages