Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vasekpurchart/phing-symfony-command-task
This Phing task allows you to call commands from a Symfony Console Application comfortably.
https://github.com/vasekpurchart/phing-symfony-command-task
command console phing phing-tasks symfony
Last synced: 22 days ago
JSON representation
This Phing task allows you to call commands from a Symfony Console Application comfortably.
- Host: GitHub
- URL: https://github.com/vasekpurchart/phing-symfony-command-task
- Owner: VasekPurchart
- License: other
- Created: 2014-04-26T14:19:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-06-12T18:58:56.000Z (over 1 year ago)
- Last Synced: 2024-10-13T11:09:00.928Z (23 days ago)
- Topics: command, console, phing, phing-tasks, symfony
- Language: PHP
- Size: 61.5 KB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
Phing Symfony Command Task
==========================This Phing task allows you to call commands from a Symfony Console Application comfortably.
There is a built in `SymfonyConsoleTask` in Phing, but with this custom task you can:
* 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:
```xml
```
you have to configure the default values:
```xml
```
Of course you can set these properties in any other regular way.
If you do not want to use the defaults, or you want to override them you can always specify both or one of them:
```xml
```
If you want to pass any additional parameters, you can use `` elements to do so (as in `ExecTask`):
```xml
```
Installation
------------1) Install package [`vasek-purchart/phing-symfony-command-task`](https://packagist.org/packages/vasek-purchart/phing-symfony-command-task) with [Composer](https://getcomposer.org/):
```bash
composer require vasek-purchart/phing-symfony-command-task
```2) Register this task under a name of your choosing.
There are several ways how to register a task, see the `TaskDefTask` documentation. The recommended way is putting this in your `build.xml`:
```xml
```
You can pick any other name for the command if you would like to.