Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.67 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.67 KB

ZF2 skeleton application with extras

Integrated modules:

Installing project

  • Start composer project
  • Load inditel/zend-skeleton-application

Setting up local development environment

Add this line to your apache config

    SetEnv "APP_ENV" "development"

If you want to test staging, testing or production, update .htaccess file. Uncomment # SetEnv "APP_ENV" "development" Be careful not to commit with it!

To start unit testing (PHPStorm)

  • Open project settings -> PHP -> PHPUnit. Set "Use custom loader" and choose vendor/autoload.php file.

  • Open Run/Debug Configurations

  • Add new PHPUnit configuration
  • Add name
  • Select "Defined in the configuration file"
  • Check "Use alternative configuration file"
  • Choose module/YOUR_MODULE/test/phpunit.xml

Generating doctrine entities

  • Check doctrine-gen.php
  • Run doctrine-gen.php