2017 © Pedro PelĂĄez
 

library phing-symfony-command-task

This Phing task allows you to call commands from a Symfony Console Application comfortably.

image

vasek-purchart/phing-symfony-command-task

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  • Friday, September 22, 2017
  • by VasekPurchart
  • Repository
  • 2 Watchers
  • 4 Stars
  • 7,171 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 9 % Grown

The README.md

Phing Symfony Command Task

This Phing task allows you to call commands from a Symfony Console Application comfortably., (*1)

There is a built in SymfonyConsoleTask in Phing, but with this custom task you can:, (*2)

  • see the output as soon as it is ready (displaying progress bars)
  • configure default Symfony Application Console location
  • configure the executable with which the Console is run (environments on Windows usually require running the console trough PHP binary, not executing directly), again with a configurable default value
  • escaping argument values and paths as in the ExecTask

Usage

To call the commands in the simplest possible way like this:, (*3)

<symfony-cmd cmd="test:test"/>

you have to configure the default values:, (*4)

<property name="symfony-command.default.app" value="path/to/console"/>
<property name="symfony-command.default.executable" value="php"/>

Of course you can set these properties in any other regular way., (*5)

If you do not want to use the defaults, or you want to override them you can always specify both or one of them:, (*6)

<symfony-cmd executable="php-cgi" app="path/to/another/console" cmd="test:test"/>

If you want to pass any additional parameters, you can use <arg> elements to do so (as in ExecTask):, (*7)

<symfony-cmd cmd="test:test">
  <arg value="--strict"/>
  <arg path="path/to/tests"/>
</symfony-cmd>

Installation

1) Install package vasek-purchart/phing-symfony-command-task with Composer:, (*8)

composer require vasek-purchart/phing-symfony-command-task

2) Register this task under a name of your choosing., (*9)

There are several ways how to register a task, see the TaskDefTask documentation. The recommended way is putting this in your build.xml:, (*10)

<taskdef name="symfony-cmd" classname="VasekPurchart\Phing\SymfonyCommand\SymfonyCommandTask"/>

You can pick any other name for the command if you would like to., (*11)

The Versions

22/09 2017

dev-master

9999999-dev

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

The Development Requires

command console task symfony phing

16/06 2017

dev-dev-dependencies

dev-dev-dependencies

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

The Development Requires

command console task symfony phing

27/03 2017

dev-typos

dev-typos

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

The Development Requires

command console task symfony phing

22/03 2017

2.0

2.0.0.0

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

The Development Requires

command console task symfony phing

20/01 2015

1.3

1.3.0.0

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

command console task symfony phing

02/12 2014

1.2

1.2.0.0

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

command console task symfony phing

28/07 2014

1.1

1.1.0.0

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

command console task symfony phing

28/04 2014

1.0.1

1.0.1.0

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

command console task symfony phing

26/04 2014

1.0

1.0.0.0

This Phing task allows you to call commands from a Symfony Console Application comfortably.

  Sources   Download

MIT

The Requires

 

command console task symfony phing