Package Data | |
---|---|
Maintainer Username: | mtils |
Maintainer Contact: | mtils@web-utils.de (Michael Tils) |
Package Create Date: | 2015-04-20 |
Package Last Update: | 2017-12-13 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 15:01:40 |
Package Statistics | |
---|---|
Total Downloads: | 5,627 |
Monthly Downloads: | 41 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
This is a small helper package to help you while developing laravel applications and packages.
{
"require-dev": {
"ems/packaging" : "0.1.*"
}
}
use Packaging\Environment;
$usePackaging = Environment::init();
It returns true if it found a configuration.
<?php
Environment::configure($app);
In this step it just adds some Development ServiceProviders (if configured).
<?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.