inditel / zend-skeleton-application
Inditel skeleton Application for ZF2
dev-master
2013-06-21 00:52 UTC
Requires
- php: >=5.3.3
- doctrine/doctrine-orm-module: 0.*
- inditel/bjy-profiler: dev-master
- inditel/zf2-whoops: dev-master
- phpunit/phpunit: 3.7.21
- widmogrod/zf2-assetic-module: 1.*
- zendframework/zend-developer-tools: dev-master
- zendframework/zendframework: 2.*
This package is not auto-updated.
Last update: 2024-12-30 15:29:16 UTC
README
Integrated modules:
- Zend Framework 2
- Phpunit
- Doctrine & DoctrineORMModule & DoctrineModule
- Whoops & Zf2Whoops
- Assetic & AsseticBundle
- ZendDeveloperTools & BjyProfiler
- Sample unit tests for controllers and services.
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