felixsand / phpinisetter
Console command for setting php.ini configs
v1.2.0
2017-08-05 17:59 UTC
Requires
- php: >=7.1
- symfony/console: ^3.1
Requires (Dev)
- phpunit/phpunit: ~6.3
README
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.