First, a new PHP Maven web project is generated using the PHP web project - 5 minute starter guide. In this web project, the typical Zend Framework project structure must be integrated:
my-project
|-- pom.xml
`-- src
`-- main
|-- php
| `-- org
| `-- sample
| |-- controllers
| |-- forms
| |-- layouts
| |-- models
| `-- views
`-- webapp
|-- images
|-- styles
`-- index.php
<?php
require_once "Zend/Loader.php";
Zend_Loader::registerAutoload();
?>
<plugin>
<groupId>org.phpmaven</groupId>
<artifactId>maven-php-plugin</artifactId>
<extensions>true</extensions>
<version>1.0-BETA-2</version>
<configuration>
<compileArgs> -d auto_prepend_file=registerautoload.php
</compileArgs> <ignoreValidate>false</ignoreValidate>
</configuration>
</plugin>