New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ems/packaging

Helpers for local package development
5,692
Install
composer require ems/packaging
Latest Version:v0.1.3
PHP:>=5.4.0
License:MIT
Last Updated:Dec 13, 2017
Links: GitHub  ·  Packagist
Maintainer: mtils

A helper lib for local laravel development

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.

Related Packages

aminulbd/laravel-packages

Packages for Laravel

3,903 8
muhamadrezaar/highcharts

Laravel Highcarts Packages

49,205 31
alfredoem/ragnarok

Authentication, Roles and Menus for a specific bussines logic

94 0
sungmee/laravel-hashid

为 Laravel 量身定制的类似 Youtube 上的 ID(数字)加密解密扩展包。

92 1
alfredoem/authentication

Basic Authentication & Register for Laravel Framework

44 0

Version History

Version Released PHP License
v0.1.3 >=5.4.0 MIT
v0.1.2 >=5.4.0 MIT
v0.1.1 >=5.4.0 MIT
v0.1.0 >=5.4.0 MIT