dartmoon/prestashop-config 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dartmoon/prestashop-config

Composer 安装命令:

composer require dartmoon/prestashop-config

包简介

Support config files for PrestaShop

README 文档

README

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

  1. Install the package
composer require dartmoon/prestashop-config
  1. Create a folder named config in 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

统计信息

  • 总下载量: 37
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固