2017 © Pedro Peláez
 

library zf-development-mode

Zend Framework development mode script

image

zfcampus/zf-development-mode

Zend Framework development mode script

  • Monday, May 7, 2018
  • by zendframework
  • Repository
  • 9 Watchers
  • 41 Stars
  • 967,317 Installations
  • PHP
  • 67 Dependents
  • 0 Suggesters
  • 30 Forks
  • 3 Open issues
  • 19 Versions
  • 9 % Grown

The README.md

zf-development-mode

Repository abandoned 2019-12-31

This repository has moved to laminas/laminas-development-mode., (*1)

Build Status Coverage Status Total Downloads, (*2)

This package provides a script to allow you to enable and disable development mode for zend-mvc (both versions 2 and 3) and Expressive applications. The script allows you to specify configuration and modules that should only be enabled when in development, and not when in production., (*3)

Note to v2 users

If you were using a v2 version of this package previously, invocation has changed. Previously, you would invoke it via the MVC CLI bootstrap:, (*4)

$ php public/index.php development enable  # enable development mode
$ php public/index.php development disable # disable development mode

v3 releases now install this as a vendor binary, with no dependencies on other components:, (*5)

$ ./vendor/bin/zf-development-mode enable  # enable development mode
$ ./vendor/bin/zf-development-mode disable # disable development mode

Installation

Install this package using Composer:, (*6)

$ composer require zfcampus/zf-development-mode

Once installed, you will need to copy a base development configuration into your application; this configuration will allow you to override modules and bootstrap configuration:, (*7)

$ cp vendor/zfcampus/zf-development-mode/development.config.php.dist config/

Optionally, if you want to also have development-specific application configuration, you can copy another base configuration into your configuration autoload directory:, (*8)

$ cp vendor/zfcampus/zf-development-mode/development.local.php.dist config/autoload/

In order for the bootstrap development configuration to run, you may need to update your application bootstrap. Look for the following lines (or similar) in public/index.php:, (*9)

// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();

Replace the above with the following:, (*10)

// Config
$appConfig = include 'config/application.config.php';
if (file_exists('config/development.config.php')) {
    $appConfig = Zend\Stdlib\ArrayUtils::merge($appConfig, include 'config/development.config.php');
}

// Run the application!
Zend\Mvc\Application::init($appConfig)->run();

To enable development mode

$ cd path/to/project
$ ./vendor/bin/zf-development-mode enable

Note: enabling development mode will also clear your module configuation cache, to allow safely updating dependencies and ensuring any new configuration is picked up by your application., (*11)

To disable development mode

$ cd path/to/project
$ ./vendor/bin/zf-development-mode disable

Note: Don't run development mode on your production server!, (*12)

The Versions

07/05 2018

dev-develop

dev-develop

Zend Framework development mode script

  Sources   Download

BSD-3-Clause

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

framework zf2 zendframework zf

07/05 2018

dev-master

9999999-dev

Zend Framework development mode script

  Sources   Download

BSD-3-Clause

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

framework zf2 zendframework zf

07/05 2018

3.2.0

3.2.0.0

Zend Framework development mode script

  Sources   Download

BSD-3-Clause

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

framework zendframework zf

10/01 2017

3.1.0

3.1.0.0 http://github.com/zfcampus/zf-development-mode

Zend Framework development mode script

  Sources   Download

BSD-3-Clause

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

framework zf2

22/06 2016

3.0.0

3.0.0.0 http://github.com/zfcampus/zf-development-mode

Zend Framework development mode script

  Sources   Download

BSD-3-Clause

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

framework zf2

21/12 2015

2.1.2

2.1.2.0 http://github.com/zfcampus/zf-development-mode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework zf2

31/08 2015

2.1.1

2.1.1.0 http://github.com/zfcampus/zf-development-mode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework zf2

15/07 2015

2.1.0

2.1.0.0 http://github.com/zfcampus/zf-development-mode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework zf2

14/07 2015
16/04 2015
15/04 2015
19/08 2014

2.0.3

2.0.3.0 http://github.com/zfcampus/zf-development-mode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework zf2

04/06 2014

2.0.2

2.0.2.0 http://github.com/zfcampus/zf-development-mode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework zf2

06/05 2014

2.0.1

2.0.1.0 http://github.com/zfcampus/zf-development-mode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework zf2

28/02 2014

0.9.0

0.9.0.0 http://github.com/zfcampus/zf-development-mode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

framework zf2

28/02 2014

0.9.1

0.9.1.0 http://github.com/zfcampus/zf-development-mode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

framework zf2

10/02 2014
07/01 2014

1.1

1.1.0.0 http://github.com/19ft/NFDevelopmentMode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

framework zf2

22/12 2013

1.0

1.0.0.0 http://github.com/19ft/NFDevelopmentMode

ZF2 development mode module

  Sources   Download

BSD-3-Clause

The Requires

 

framework zf2