sonar/valiable
最新稳定版本:v3.0.2
Composer 安装命令:
composer require sonar/valiable
包简介
sonar valiables
关键字:
README 文档
README
Install
Via Composer
Case laravel 5.x $ composer require sonar/valiable:1.* Case laravel 6.x $ composer require sonar/valiable:2.*
Add ServiceProvider in config.php
'providers' => [ : : Sonar\Valiable\ValiableServiceProvider::class, ], 'aliases' => [ : : 'Valiable' => Sonar\Valiable\ValiableFacade::class, ],
Artisan Command
$ php artisan vendor:publish
Create Valiables Directory to storage_path put Yaml Files to Valiables Direcoty
Example:
properties:
parameter_kinds:
name: "種別"
value:
"1": "土地"
"2": "一戸建て"
"3": "マンション"
Valiable Import
$ php artisan valiable:import
Example Code
use Valiable; print_r(Valiable::get('properties_parameter_kinds')); # Array([1] => 土地 [2] => 一戸建て [3] => マンション ) print_r(Valiable::getValue('properties_parameter_kinds',1)); # 土地 print_r(Valiable::getNames()); # Array([0] => properties_parameter_kinds)
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-07