Download the PHP package 19ft/nf-development-mode without Composer
On this page you can find all versions of the php package 19ft/nf-development-mode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download 19ft/nf-development-mode
More information about 19ft/nf-development-mode
Files in 19ft/nf-development-mode
Download 19ft/nf-development-mode
More information about 19ft/nf-development-mode
Files in 19ft/nf-development-mode
Vendor 19ft
Package nf-development-mode
Short Description ZF2 development mode module
License BSD-3-Clause
Homepage http://github.com/19ft/NFDevelopmentMode
Package nf-development-mode
Short Description ZF2 development mode module
License BSD-3-Clause
Homepage http://github.com/19ft/NFDevelopmentMode
Please rate this library. Is it a good library?
Informations about the package nf-development-mode
NFDevelopmentMode
UPDATE: There is now an offical version of this module at
https://github.com/zfcampus/zf-development-mode
This ZF2 development mode module is an extraction of the Apigility Skeleton's Development Mode Controller to its own module for use in ZF2 applications.
Installation with Composer
- Add
"19ft/nf-development-mode": "1.*"
to the"require"
section yourcomposer.json
file and runphp composer.phar update
. - Copy
development.config.dist
toconfig/development.config.dist
and edit as required. Commit this file to your VCS. -
Add any development modules to the
"require-dev"
section of your application'scomposer.json
. e.g:"zendframework/zend-developer-tools": "dev-master", "zendframework/zftool": "dev-master"
and run
composer.update
. - If you're using Zend Developer Tools, Copy
./vendor/zendframework/zend-developer-tools/config/zenddevelopertools.local.php.dist
to./config/autoload/zenddevelopertools.local.php
. Change any settings in it according to your needs. - Add
'NFDevelopmentMode'
to the list of Modules in yourconfig/application.config.php
file. -
In
public/index.php
, replace these lines:// Run the application! Zend\Mvc\Application::init(require 'config/application.config.php')->run();
with
// Config $appConfig = include APPLICATION_PATH . '/config/application.config.php'; if (file_exists(APPLICATION_PATH . '/config/development.config.php')) { $appConfig = Zend\Stdlib\ArrayUtils::merge($appConfig, include APPLICATION_PATH . '/config/development.config.php'); } // Run the application! Zend\Mvc\Application::init($appConfig)->run();
To enable development mode
cd path/to/install
php public/index.php development enable
To disable development mode
cd path/to/install
php public/index.php development disable
Note: Don't run development mode on your production server.
All versions of nf-development-mode with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
zendframework/zend-console Version >=2.2.2
zendframework/zend-mvc Version >=2.2.2
zendframework/zend-console Version >=2.2.2
zendframework/zend-mvc Version >=2.2.2
The package 19ft/nf-development-mode contains the following files
Loading the files please wait ....