2017 © Pedro Peláez
 

library zf2-phing-task

A collection of Phing Tasks for a ZF2 app.

image

heartsentwined/zf2-phing-task

A collection of Phing Tasks for a ZF2 app.

  • Wednesday, July 6, 2016
  • by heartsentwined
  • Repository
  • 1 Watchers
  • 4 Stars
  • 511 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

zf2-phing-task

A collection of Phing Tasks for a ZF2 app., (*1)

Note: it will look for config/application.config.yml instead of config/application.config.php on bootstrap. If you use PHP config files, you'll have to change the code in each Task's main() method., (*2)

Installation

Composer:, (*3)

{
  "require": {
    "yalesov/zf2-phing-task": "2.*"
  }
}

Phing is not bundled with this package., (*4)

You can install it through Composer and use the CLI at vendor/bin/phing:, (*5)

{
  "require": {
    "phing/phing": "*"
  }
}

or through PEAR and use the CLI at phing:, (*6)

$ pear channel-discover pear.phing.info
$ pear install [--alldeps] phing/phing

Usage

You must initialize an instance of your Zf2 application through ZfTask before using any of the remaining Tasks., (*7)

ZfTask

Bootstrap the ZF2 application using the file foo/bootstrap.php. The bootstrap file must return an instance of Zend\Mvc\Application., (*8)

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="zf" classname="ZfTask" />
    <zf bootstrap="foo/bootstrap.php" />
  </target>
</project>

foo/bootstrap.php:, (*9)

/* do some bootstrap */
$application = Zend\Mvc\Application::init(/* config array */);
return $application;

DoctrineEntityTask

Generate entities for the EntityManager doctrine.entitymanager.orm_default, base directory at foo/src, with filter Foo\Entity., (*10)

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-entity" classname="DoctrineEntityTask" />
    <d-entity em="doctrine.entitymanager.orm_default" filter="Foo\Entity" output="foo/src" />
  </target>
</project>

DoctrineRepoTask

Generate repositories for the EntityManager doctrine.entitymanager.orm_default, base directory at foo/src, with filter Foo\Entity., (*11)

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-repo" classname="DoctrineRepoTask" />
    <d-repo em="doctrine.entitymanager.orm_default" filter="Foo\Entity" output="foo/src" />
  </target>
</project>

DoctrineProxyTask

Generate proxies for the EntityManager doctrine.entitymanager.orm_default, at directory foo/cache/proxy, with filter Foo\Entity., (*12)

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-proxy" classname="DoctrineProxyTask" />
    <d-proxy em="doctrine.entitymanager.orm_default" filter="Foo\Entity" output="foo/cache/proxy" />
  </target>
</project>

DoctrineUpdateTask

Update database schema for the EntityManager doctrine.entitymanager.orm_default., (*13)

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-update" classname="DoctrineUpdateTask" />
    <d-update em="doctrine.entitymanager.orm_default" />
  </target>
</project>

DoctrineDropTask

Drop all database tables from the connection of the EntityManager doctrine.entitymanager.orm_default., (*14)

This Task differs from Doctrine CLI's behavior. It drops ALL tables, not just those found in the metadata mapping files., (*15)

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="d-drop" classname="DoctrineDropTask" />
    <d-drop em="doctrine.entitymanager.orm_default" />
  </target>
</project>

TwigTask

Load the Twig template foo/bar., (*16)

<project>
  <target>
    <includepath classpath="vendor/yalesov/zf2-phing-task/src/task" />
    <taskdef name="twig" classname="TwigTask" />
    <twig file="foo/bar" />
  </target>
</project>

The Versions

06/07 2016

dev-master

9999999-dev https://github.com/yalesov/zf2-phing-task

A collection of Phing Tasks for a ZF2 app.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

phing

06/07 2016

v2.1.3

2.1.3.0 https://github.com/yalesov/zf2-phing-task

A collection of Phing Tasks for a ZF2 app.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

phing

06/07 2016

v2.1.2

2.1.2.0 https://github.com/yalesov/zf2-phing-task

A collection of Phing Tasks for a ZF2 app.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

phing

06/07 2016

v2.1.1

2.1.1.0 https://github.com/yalesov/zf2-phing-task

A collection of Phing Tasks for a ZF2 app.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

phing

05/07 2016

v2.1.0

2.1.0.0 https://github.com/yalesov/zf2-phing-task

A collection of Phing Tasks for a ZF2 app.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

phing

05/07 2016

v2.0.0

2.0.0.0 https://github.com/yalesov/zf2-phing-task

A collection of Phing Tasks for a ZF2 app.

  Sources   Download

ISC

The Requires

 

by Yulij Andreevich Lesov

phing

10/10 2012
28/09 2012
19/09 2012
17/09 2012
16/09 2012

1.1.0

1.1.0.0 https://github.com/heartsentwined/phing-task

A collection of Phing Tasks for a ZF2 app.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

phing

15/09 2012

1.0.1

1.0.1.0 https://github.com/heartsentwined/phing-task

A collection of Phing Tasks for a ZF2 app.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar heartsentwined

phing

15/09 2012