ems/packaging 问题修复 & 功能扩展

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

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

ems/packaging

最新稳定版本:v0.1.3

Composer 安装命令:

composer require ems/packaging

包简介

Helpers for local package development

README 文档

README

This is a small helper package to help you while developing laravel applications and packages.

Install

1. Add this to your composer.json:

{
    "require-dev": {
        "ems/packaging" : "0.1.*"
    }
}

2. Then on Laravel in your app.php on the top:

use Packaging\Environment;

$usePackaging = Environment::init();

It returns true if it found a configuration.

3. Let the environment configure your application

<?php

Environment::configure($app);

In this step it just adds some Development ServiceProviders (if configured).

4. Add a develop configuration file (config/develop.php) with the following content:

<?php

return [

    'providers' => [
        'Barryvdh\Debugbar\ServiceProvider'
    ]
    ,
    'package-overwrites' => [
        'psr-0' => [
            'Collection'    => "/home/youruser/development/github/mypackage/src"
        ]
    ]

];

This is just a sample. Under "providers" you can add any custom service providers for development. The part under "package-overwrites" is to load your custom packages from anywhere on your hdd without changing your composer.json. Package overloading is realized with a simple autoloader which will prepended to the spl autoload stack.

If no develop.php file is found it will exist and does nothing.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-21