dartmoon / prestashop-config
Support config files for PrestaShop
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Abandoned repository. This repository is no longer maintained. For current PrestaShop module development, use the prestashop-module repository. The documentation below describes the abandoned implementation.
Prestashop Config
Ever dreamed of a Laravel-like config folder for your PrestaShop module where you can put you module's static configs? Well this package has got you covered!
Installation
- Install the package
composer require dartmoon/prestashop-config
- Create a folder named
configin the root of your module.
Usage
You can now organize your configs inside the config folder of your module as follows.
E.g. Let's create a config file named ftp.config inside the config folder with the following content.
<?php return [ 'host' => 'localhost', 'port' => 21, 'user' => 'pippo' 'password' => 'pluto' ];
Inside your module you can retrieve the config values as follows
use Dartmoon\Config\Facades\Config; // Without a default value $host = Config::get('ftp.host'); // Using a default value $port = Config::get('ftp.port', 21);
License
This project is licensed under the MIT License - see the LICENSE.md file for details