https://github.com/25th-floor/dluphpsettings
Saving DluPhpSettings (https://packagist.org/packages/dlu/dluphpsettings) from oblivion
https://github.com/25th-floor/dluphpsettings
Last synced: 3 months ago
JSON representation
Saving DluPhpSettings (https://packagist.org/packages/dlu/dluphpsettings) from oblivion
- Host: GitHub
- URL: https://github.com/25th-floor/dluphpsettings
- Owner: 25th-floor
- Created: 2018-12-13T06:49:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T06:50:10.000Z (over 6 years ago)
- Last Synced: 2025-01-20T19:14:32.425Z (4 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 1
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DluPhpSettings
==============--------------------------
Introduction
------------DluPhpSettings is a [Zend Framework 2](http://framework.zend.com/zf2) module used to set the PHP ini settings based
on the configuration data.More info
---------You can find more information and discussion of this module on my blog [ZF Daily](http://www.zfdaily.com) here:
[Configuring PHP ini Settings in ZF2](http://www.zfdaily.com/2012/04/configuring-php-settings-in-zf2/)--------------------------
Installation - manual
---------------------1. Go to your project's directory.
2. Clone this project into your `./vendor` directory as a `DluPhpSettings` module:`git clone https://bitbucket.org/dlu/dluphpsettings.git ./vendor/DluPhpSettings`
3. Follow the Post installation steps bellow
Installation - with Composer
----------------------------1. Go to your project's directory.
2. Edit your `composer.json` file and add `"dlu/dluphpsettings": "dev-master"` into `require` section.
3. Run `php composer.phar install` (or `php composer.phar update`).
4. Follow the Post installation steps bellowPost installation steps
-----------------------1. Enable the DluPhpSettings module in your app config file `/config/application.config.php`:
- add `'DluPhpSettings',` under `modules`
Usage
-----Put any allowed PHP ini settings under the `phpSettings` key into any of your configuration files:
/* Global application configuration in /config/autoload/global.php */
array(
'display_startup_errors' => false,
'display_errors' => false,
'max_execution_time' => 60,
'date.timezone' => 'Europe/Prague',
'mbstring.internal_encoding' => 'UTF-8',
),
);You can find the [list of available PHP ini directives](http://www.php.net/manual/en/ini.list.php) in the PHP docs.
Use the global config files for global application configuration and local config files for settings relevant only
to the local environment.Links
------ [DluPhpSettings](https://bitbucket.org/dlu/dluphpsettings) - git repository on BitBucket
- [Configuring PHP ini Settings in ZF2](http://www.zfdaily.com/2012/04/configuring-php-settings-in-zf2/) - blog post
about this module