定制 bosnadev/yaml 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

bosnadev/yaml

最新稳定版本:1.1

Composer 安装命令:

composer require bosnadev/yaml

包简介

A package to add Yaml file support for Laravel 4 Configuration

README 文档

README

This package is based on a devitek/yaml-configuration package. It uses Symfony/Yaml parser. Yaml configuration package is part of Larapress CMS.

Installation

Run the following command from your terminal:

composer require "bosnadev/yaml: 1.*"

or add this to require section in your composer.json file:

"bosnadev/yaml": "1.*"

and run composer update

After updating composer, add the YamlServiceProvider to the providers array in app/config/app.php

'providers' => [
  // other providers
  ...
  
  'Bosnadev\Yaml\YamlServiceProvider'
];

And that's it! You can now add your .yaml configuration files into app/config or in your package config folders. You can continue to use regular php files for configs.

PHP:

<?php
return [
  'enable_registration' => true,
  'themes_dir'          => %public_path%/themes
];

Will be equivalent to :

---
enable_registration: true
themes_dir: %public_path%/themes

Paths Helpers

You can use paths helpers provided by Laravel like that :

routes_file: %app_path%/routes.php
unit_test: %base_path%/behat.yml
main_style: %public_path%/css/style.css
manifest: %storage_path%/meta
  • %app_path% refers to app_path()
  • %base_path% refers to base_path()
  • %public_path% refers to public_path()
  • %storage_path% refers to storage_path()

License

This package is open-sourced software licensed under MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固