Skip to content

Instantly share code, notes, and snippets.

@rtablada
Last active December 18, 2015 05:19
Show Gist options
  • Save rtablada/5731991 to your computer and use it in GitHub Desktop.
Save rtablada/5731991 to your computer and use it in GitHub Desktop.
Proposal for laravel specific package helpers
Laravel specific packages could have a provides.json file with info that allows You to list any service providers or facades.
then to install, you run `artisan package:install vendor/package`
{
"serviceProviders": [
"Vendor\Namespace\ServiceProvider"
],
"facades": [
{
"alias": "Alias",
"facade": "Path\To\Facade"
}
]
}
@msurguy
Copy link

msurguy commented Jun 7, 2013

Can we implement this into a custom artisan command for now and supply a demo package? this would rock my world for sure

@whoisandy
Copy link

Awesome !! Would`nt be more easier than to require, install or remove packages all using a command. No more composer manually adding stuff, artisan does it all. I think we should work on this, a temporary package atleast for now.

@JeffreyWay
Copy link

Hmm...not sure how helpful this would be. Do you guys install that many Laravel packages to make something like this necessary?

@rtablada
Copy link
Author

rtablada commented Jun 9, 2013

It isn't a necessity, but it makes it a bit simpler to add packages based on default settings.

Almost a syntactical sugar for installing packages.

I have worked a basic implementation of this and have posted a screencast on the use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment