O'Reilly logo

Laravel Application Development Cookbook by Terry Matula

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Composer package in Laravel

Using Laravel's Workbench, we can easily create a package that can be used and installed by Composer. We can also add functionality so that the package integrates seamlessly into our Laravel app. In this recipe, we'll be creating a simple package that will display a list of Vimeo videos for a specified user.

Getting ready

For this recipe, we'll need a standard Laravel installation.

How to do it…

To complete this recipe, follow these steps:

  1. In the app/config directory, open the workbench.php file and update it with the following information:
    <?php
    
    return array(
    
        'name' => 'Terry Matula',
    
        'email' => 'terrymatula@gmail.com',
    
    );
  2. In the command line, use artisan to set up our package:
    php artisan workbench matula/vimeolist ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required