PHPackages                             koalabs/modelo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. koalabs/modelo

ActiveLibrary[Templating &amp; Views](/categories/templating)

koalabs/modelo
==============

A set of views that serve as a very basic template for your html

07PHP

Since Jul 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/koalabs-lab/laravel-modelo)[ Packagist](https://packagist.org/packages/koalabs/modelo)[ RSS](/packages/koalabs-modelo/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Modelo - Blade template for Laravel 4
=====================================

[](#modelo---blade-template-for-laravel-4)

Modelo is a set of views that serve as a site's **very basic template**.
It gathers best practices from around the web (see [h5pb](http://html5boilerplate.com) or Zurb's [Foundation](http://foundation.zurb.com)) in order to provide a **robust starting template for most sites**.

Quick overview
--------------

[](#quick-overview)

Modelo consists of four basic files:

- master.blade.php
- head.blade.php
- body.blade.php
- tail.blade.php

### master.blade.php

[](#masterbladephp)

The *master.blade.php* file is pretty simple.
It **opens and closes** the page by adding the `html`, `head` and `body` tags.
It also includes the other three files (*head.blade.php*, *body.blade.php* and *tail.blade.php*).

### head.blade.php

[](#headbladephp)

Like its name points out, this is the `` of your site.
Here we add basic metadata and include *css stylesheets* and *javascript* files.

### body.blade.php

[](#bodybladephp)

We just include the content here. Pretty straightforward. This is the place to get creative.

### tail.blade.php

[](#tailbladephp)

We add most of our *javascript files* here for better website performance as well as a tracking id for *Google Analytics*.

Install
-------

[](#install)

In your application's root directory, open up the *composer.json* file and add the package to the `require` section so it looks like this:

```
"require": {
       "laravel/framework": "4.0.*",
       "koalabs/modelo": "1.*"
},
```

Open the command line, and in the root ot our application, run the Composer update like this:

```
php composer.phar update

```

Now let's add the Modelo Service Provider. Open the *app/config/app.php* file and in the `providers` array, add the following line:

```
'Koalabs\Modelo\ModeloServiceProvider'
```

You may also publish the configuration files in order to avoid them being overriden in future updates. Simply type:

```
php artisan config:publish koalabs/modelo
```

### Configuration

[](#configuration)

Find the configuration file at `'vendor/koalabs/modelo/src/config/modelo.php'` and move it to the `'app/config'` folder.

Usage
-----

[](#usage)

You can use *Modelo* as the template for any of your views.
Just add this line at the beginning of the file:

```
@extends('modelo::master')
```

The actual content of your page goes into a **content** tag:

```
@section('content')

@stop
```

### Example

[](#example)

Let's say you want to make an 'about' page.
Just do as follows:

```
@extends('modelo::master')
@section('title') About Us @stop
@section('description') Some description for the meta tag here @stop

@section('content')

@stop
```

Those are the basics. But you can do a lot more by leveraging the helper tags modelo has and the using the configuration file.

### List of tags

[](#list-of-tags)

#### The body

[](#the-body)

- `@section('content')` for the actual page content That's it...

#### The head section

[](#the-head-section)

You can make a completely new `` for a specific page if you want to.
Use:`@section('head')`

Inside the head we have other tags:

- `@section('title')` for adding a meta title.
- `@section('description')` for adding a meta description
- `@section('meta')`for adding custom meta data (like, for example. hiding a page)
- `@section('styles')` for adding a new set of css styles to the page
- `@section('page_styles')`if you want to use the same css style you use throughout the site but want to also include a new one.

#### The tail section

[](#the-tail-section)

- `@section('tail')` for a totally different tail section.
- `@section('page_scripts')` for adding scripts that are specific to the page.

### Configuration

[](#configuration-1)

In the *config/modelo.php* file you have these options:

- Define the author of the site
- Define the path to where your main css file is. Because you **are compressing your files and serving only one**, right?
- Turn jquery *on* or *off*.
- Choose the jquery version.
- Choose the scripts you will serve to all pages
- Turn Google Analytics *on* or *off*

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8e0db56af4c5a3b576666ebbae05020bf14cba21d5a3048737d60927cbb4dce?d=identicon)[koalabs](/maintainers/koalabs)

---

Top Contributors

[![crloscstillo](https://avatars.githubusercontent.com/u/1431847?v=4)](https://github.com/crloscstillo "crloscstillo (4 commits)")

### Embed Badge

![Health badge](/badges/koalabs-modelo/health.svg)

```
[![Health](https://phpackages.com/badges/koalabs-modelo/health.svg)](https://phpackages.com/packages/koalabs-modelo)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
