rtablada / package-installer

Easy installation of Laravel 4 packages
129 stars 16 forks source link

[Proposal] Laravel Package Manager #8

Open rtablada opened 11 years ago

rtablada commented 11 years ago

While this would require some doing, I was thinking of bringing Package Installer into more of a Package Manager utility. This would mean a few things:

  1. Versioning, updating, conflict resolution, etc. Adding a storage cache which keeps a record of what is installed, where, what has been omitted etc. This would be used for conflict resolution as well as storage for updates when packages change their provides.json
  2. A search command: this would give the ability for a user to search for installable packages that list themselves as installable with Package Manager
caouecs commented 11 years ago

Hello, good idea

rtablada commented 11 years ago

I have finished up package:search, although the functionality is a bit broken by the packagist API package which I have put in a request for updating.

On Tue, Jul 2, 2013 at 4:19 AM, Caouecs notifications@github.com="mailto:notifications@github.com"> wrote: Hello,

good idea

— Reply to this email directly or view it on GitHub.

rtablada commented 11 years ago

Also, the tag to list your package as a package manager package is lpm for laravel package manager

caouecs commented 11 years ago

As https://github.com/caouecs/Laravel4-Gumby2/blob/master/composer.json ?

rtablada commented 11 years ago

That should work. Like I said, right now, it will show all packages that match the search but when the packagist API package is updated from my pull request, it should only search based on the lpm tag/keyword.

caouecs commented 11 years ago

it works

php artisan package:search caouecs
+-----------------------+-------------------------------+
| Package Name          | Package Description           |
+-----------------------+-------------------------------+
| caouecs/gumby2        | Gumby2 Framework in Laravel 4 |
| caouecs/laravel4-lang | Languages for Laravel4        |
+-----------------------+-------------------------------+
mikeerickson commented 10 years ago

While enhancing to Package Manager, how about a method for perform an Uninstall operation as well?

gnanakeethan commented 10 years ago

@rtablada can you make a Uninstall action. that is not required much, but it may be a choice when we could install packages from web and remove them.

barryvdh commented 10 years ago

Why not create a composer installer (https://getcomposer.org/doc/articles/custom-installers.md) and you wouldn't need any other commands etc, but just hook into Composer. (But it would be better to let packages define a type like 'laravel-package' and put the provides.json stuff in the composer.json extra data)