mesingh/laravel-env-packages 问题修复 & 功能扩展

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

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

mesingh/laravel-env-packages

Composer 安装命令:

composer require mesingh/laravel-env-packages

包简介

This package lets you define various package requirements according to the environment.

README 文档

README

Latest Version on Packagist Software License

This package lets you define various package requirements according to the environment.

Install

Via Composer

$ composer require mesingh/laravel-env-packages

Then add the service provider in config/app.php:

meSingh\EnvPackages\EnvPackagesServiceProvider::class,

Then publish vendor files for access the configuration file:

$ php artisan vendor:publish --provider="meSingh\EnvPackages\EnvPackagesServiceProvider"

Usage

You need to run envpackages:generate command after each configuration update.

$ php artisan envpackages:generate

Configuration

envpackages.php file is used to define any package requirements that are loaded over some specific environment like you might have some development packages installed that you do not wish to load over production and/or staging.

You can define any requirement in any environment. So to define a provider for the local environment, you just need to add it like this:

'providers' => [
    'local'  => [
        Provider\Package\SomeServiceProvider::class,
    ],
],

In case you need to load this provider in multiple environments like local, testing and development, you can do so like this:

'providers' => [
    'local,testing,development'  => [
        Provider\Package\SomeServiceProvider::class,
    ],
],

You can also do any kind of combinations in configuration like this:

'providers' => [
    'local,testing,development'  => [
        Provider\Package\SomeServiceProvider::class,
    ],
    'development'  => [
        Provider\Package\OtherServiceProvider::class,
    ],
    'staging,production'  => [
        Provider\Package\AnotherServiceProvider::class,
    ],
],

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固