Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

laravel/laravel vs laravel/framework

Tags:

php

laravel

I am reviewing Laravel's source code on github and noticed that there is a laravel/laravel and a laravel/framework. They both link to the same documentation on Laravel's website and state that it is a web application framework.

Why two repositories?

like image 1000
Robert Rocha Avatar asked Mar 01 '15 15:03

Robert Rocha


1 Answers

laravel/laravel is for the skeleton application you get when creating a new project. It provides a default structure that's recommended (you're not forced to use it). The repository contains default config files, controllers, routes, etc. As well as code responsible for bootstrapping the application.

It also includes a composer.json which defines the actual framework as dependency:

"require": {     "laravel/framework": "5.0.*" }, 

laravel/framework is the actual framework source.

As the readme.md on the framework repository says:

Note: This repository contains the core code of the Laravel framework. If you want to build an application using Laravel 5, visit the main Laravel repository.

like image 150
lukasgeiter Avatar answered Oct 07 '22 16:10

lukasgeiter