-
-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Filip Š edited this page Nov 13, 2018
·
1 revision
PHP Config Writer requires PHP 5.5.9 or higher. Also, the config directory needs to be writable by web server in order to save config file.
The reccomended way to install ConfigWriter is with Composer, dependency manager for PHP.
You should just require filips123/config-writer
in your project.
composer require filips123/config-writer:^2.0
You would only need to include autoloader and namespace in your script.
<?php
use ConfigWriter\Config;
require 'vendor/autoload.php';
$config = new Config;
Alternatively, you could download files from GitHub and then manually include them in your script.
You whould need to include all files and namespace in your script.
<?php
use ConfigWriter\Config;
require 'src/Exceptions/UnsupportedFormatException.php';
require 'src/Exceptions/WriteException.php';
require 'src/ConfigInterface.php';
require 'src/AbstractConfig.php';
require 'src/Config.php';
require 'src/Record.php';
require 'src/Writers/WriterInterface.php';
require 'src/Writers/PhpWriter.php';
$config = new Config;