jj/phing-packagist

This package is abandoned and no longer maintained. No replacement package was suggested.

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

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

This package is not auto-updated.

Last update: 2018-01-07 10:06:36 UTC


README

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>