25

I am simply trying to install a laravel bundle via the Artisan CLI using the latest Laravel 4 beta from github.

But when I try something like:

php artisan bundle:install bob

I'm confronted with

[InvalidArgumentException]
There are no commands defined in the "bundle" namespace.

I've had a look around online and can't seem to find a solution to this or even anyone else having similar problems for that matter.

Has anyone else experienced this error or any ideas on a solution?

tshepang
  • 12,111
  • 21
  • 91
  • 136
tymondesigns
  • 451
  • 1
  • 4
  • 9

1 Answers1

34

If you're using Laravel 4 (which based on the tags for this question, you are) then bundles are no longer used.

Out with bundles, in with composer

Instead, Laravel 4 makes use of composer packages. It's kind of similar but at the same time very different in how it works. Here isn't the right place to explain all of composer, so check out the links below to find out more:

Laravel 4 Generator

Now, since you were asking about bob, the closest equivalent for the bob bundle would probably be Jeffrey Ways generator package, which you can learn more about here: Laravel-4-Generators

duellsy
  • 8,497
  • 2
  • 36
  • 60
  • 2
    ahh silly me.. of course it doesn't use bundles anymore :derp – tymondesigns Apr 08 '13 at 08:50
  • 1
    I'm actually already using Jeffrey Way's Generator, I was initially looking to use this http://bundles.laravel.com/bundle/facebook-sdk Do you know if it would it work if I added this github repo to composer or does have to be on Packigist ? I suspect it does :-' @duellsy Thanks for your answer. – tymondesigns Apr 08 '13 at 08:58
  • You should be able to use it, as long as the project has a composer.json file in it (which this does) you should be able to add it to your composer.json file, do a composer update, and it should come down. FYI it's located on packagist here anyway: https://packagist.org/packages/facebook/php-sdk – duellsy Apr 08 '13 at 09:52
  • Is there a website listing packages for Laravel, like the bundles website? – rgvcorley Aug 23 '13 at 14:38