$ composer create-project mobingilabs/php-microservice-base your_service_name_hereFollow the composer instructions and it will generate the project using data provided in the wizard.
This skeleton comes with zf-development-mode. It provides a composer script to allow you to enable and disable development mode.
Note: Do NOT run development mode on your production server!
$ composer development-enableNote: Enabling development mode will also clear your configuration cache, to allow safely updating dependencies and ensuring any new configuration is picked up by your application.
$ composer development-disable$ composer development-statusBy default, the skeleton will create a configuration cache in
data/config-cache.php. When in development mode, the configuration cache is
disabled, and switching in and out of development mode will remove the
configuration cache.
You may need to clear the configuration cache in production when deploying if you deploy to the same directory. You may do so using the following:
$ composer clear-config-cacheYou may also change the location of the configuration cache itself by editing
the config/config.php file and changing the config_cache_path entry of the
local $cacheConfig variable.