jj/phing-packagist

Phing extension to load task direct from packagist.org libs.

Installs: 103

Dependents: 1

Stars: 4

Watchers: 1

Open Issues: 2

Language: PHP

0.3.4-beta 2013-12-13 00:16 UTC

README

Build Status

Phing extension to load task direct from packagist.org libs.

How Use

Add to build.xml

<project name="some-project" default="some_target">
    ...
    <taskdef
        name="taskdef-packagist"
        classname="JJ\PhingPackagist\PackagistTaskDefTask"
    />
    ...
</project>

Configure module "test/module" adding to composer.json "phing" section.

{
    ...
    "autoload": {
        "psr-0": {"Test\\": "src/"}
    },
    ...
    "phing": {
        "tasks": {
            "test-module": "Test\\ModuleTask"
        }
    }
    ...
}

Add task from module to phing build.xml

<project name="some-project" default="some_target">
    ...
    <taskdef-packagist module="test/module"/>
    ...
</project>

Add task from main composer.json to phing build.xml

<project name="some-project" default="some_target">
    ...
    <taskdef-packagist/>
    ...
</project>