felixsand/phpinisetter

Console command for setting php.ini configs

v1.2.0 2017-08-05 17:59 UTC

This package is auto-updated.

Last update: 2024-04-18 20:56:45 UTC


README

Latest Stable Version Build Status License Scrutinizer Code Quality Code Coverage Dependency Status

A simple console command for setting a php.ini setting in a convinient way. Useful for example in development or testing environments.

Installation

Add the package as a requirement to your composer.json:

$ composer require felixsand/phpinisetter

Usage

You can either use the binary directly (from your application root):

$ sudo vendor/bin/phpinisetter phpIni:set <iniSettingToChange> <newValue>

or include it in your existing console script

#!/usr/bin/env php
<?php
require __DIR__.'/vendor/autoload.php';

use PhpIniSetter\PhpIniSetter;
use Symfony\Component\Console\Application;

$application = new Application();
$application->add(new PhpIniSetter());
$application->run();

Requirements

  • PHP 7.1 or above.

Author

Felix Sandström http://github.com/felixsand

License

Licensed under the MIT License - see the LICENSE file for details.