Laravel 4 Artisan error when trying to install a bundle

19,870

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

Share:
19,870

Related videos on Youtube

tymondesigns
Author by

tymondesigns

Front End Developer learning PHP and more notably Laravel

Updated on September 15, 2022

Comments

  • tymondesigns
    tymondesigns over 1 year

    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?

  • tymondesigns
    tymondesigns about 11 years
    ahh silly me.. of course it doesn't use bundles anymore :derp
  • tymondesigns
    tymondesigns about 11 years
    I'm actually already using Jeffrey Way's Generator, I was initially looking to use this 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.
  • duellsy
    duellsy about 11 years
    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: packagist.org/packages/facebook/php-sdk
  • rgvcorley
    rgvcorley over 10 years
    Is there a website listing packages for Laravel, like the bundles website?