miladimos/conf 问题修复 & 功能扩展

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

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

miladimos/conf

Composer 安装命令:

composer require miladimos/conf

包简介

a dynamic key:value json config file

README 文档

README

Laravel config package

Install

  1. How to install
composer require miladimos/conf
  1. Open your conf/app.php and add the following to the providers array:
Miladimos\Conf\Providers\ConfServiceProvider::class,
  1. Run the command below to install package:
php artisan conf:install

helpers:

conf('key') // return value of config

services:

use Miladimos\Conf\Services\ConfigJsonService;

ConfigJsonService::all(); // return all stored configs in config.json file
ConfigJsonService::show($id); // receive id of config and return one config
ConfigJsonService::store($date); 
ConfigJsonService::update($date, $id); 
ConfigJsonService::delete($id); // receive id of config and  delete

routes:

GET  api/version/conf/all          -> name: conf.all // return all configs
GET  api/version/conf/show/{id}    -> name: conf.show // return single config
POST api/version/conf/update/{id}  -> name: conf.update // update
POST api/version/conf/store        -> name: conf.store // store
GET  api/version/conf/delete/{id}  -> name: conf.delete // delete

update and store receive these datas

[
    'key' => 'yourkey',
    'value' => 'yourvalue',
    'description' => 'description',
]

then give to config.json file read,write permissions or change owner file to current user:

sudo chown -R $USER config.json

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固