Laravel 3 bundles in Laravel 4

In L3 there was great thing - packages. They could have own routes and worked as plugins and made software more modular. How to achieve this in L4? I see packages little different from bundles.

Thank You!

Answers


Bundle is a specific packaging for Laravel 3, great to add easily a package but not a standard.

Laravel 4 is more modular because it accepts packages form all the php community. It uses a standard as package manager, Composer, and Laravel 4 is managed itself as a package.

You just have to create a composer.json file like this one :

{
    "require": {
        "laravel/framework": "4.0.*"
    },
    "require-dev": {
        "phpunit/phpunit": "3.7.*",
        "mockery/mockery": "dev-master@dev",
        "sebastian/phpcpd": "1.4.*"
    }
}

And execute composer update. All the dependencies of your project will be installed in accordance with the versions you specify in this file. It's really the best pattern to manage a lot of libraries for a team.

Bundles and packages are really similar, the gift wrap and the shipping way change but that's all.


Need Your Help

How to get an image from the database in a custom view?

php mysql

I created a database and a table in that called 'Recipe', and I manually added contents to that table. It contain an image column also.

A Bit Overwhelmed with Cocoa/Objective C

iphone objective-c ios osx cocoa

I am trying to learn Objective C for OS X and iOS applications as an independent study for my high school and I find myself a bit stuck. I completed a course on Objective C on lynda.com, and I feel

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.