PHPackages                             elwinar/babel - 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. elwinar/babel

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

elwinar/babel
=============

Markup languages engines for Laravel 5

2.0.0(11y ago)1401PublicPHP

Since May 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/elwinar/babel)[ Packagist](https://packagist.org/packages/elwinar/babel)[ RSS](/packages/elwinar-babel/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Babel
=====

[](#babel)

Laravel 4 wrappers &amp; engines for various markup languages.

Installation
------------

[](#installation)

1. Add `elwinar/babel` to your `composer.json`

    `"elwinar/babel": "dev-master"`
2. Run `composer update` to get the latest version of the package.
3. Edit your `config/app.php` file to add the following service providers :

    ```
    'Babel\ServiceProvider',

    ```
4. And the following aliases :

    ```
    'Markdown' => 'Babel\Facades\Markdown',
    'Textile' => 'Babel\Facades\Textile',

    ```

Usage
-----

[](#usage)

You can compile a file

```
$result = ::file($path);

```

Or a string

```
$result = ::string('Hello markdown!');

```

Or a translation using the same parameters than the `trans()` helper of Laravel

```
$result = ::trans($key);

```

Additionally, the package add compilers for the following view extensions :

- `md` using Markdown
- `md.php` using PHP + Markdown
- `md.blade.php` using Blade + PHP + Markdown
- `tx` using Textile
- …

Just create your view with the right extension and let Laravel to the magic for you!

Yet another markdown package for Laravel
----------------------------------------

[](#yet-another-markdown-package-for-laravel)

I know there is already several markdown packages for both PHP and Laravel 4. I was myself fond of the [vtalbot](https://github.com/vtalbot/markdown) package, and occasionally used others as well such as the excellent [kindari](https://github.com/Kindari/laravel-markdown) one.

However, both these packages rely on the old \[dflydev\] markdown compiler, that used to be a port of the [PHP Markdown](http://michelf.com/projects/php-markdown/) library by [Michel Fortin](http://michelf.com/) since the author didn't wanted to use composer without thinking about it twice. Now that he made the step, the composer port is deprecated and packages relying upon it are in a precarious state. Thus my decision to create a new package using the now Composer-native library of Michel Fortin and integrating my preferred functionalities of both packages.

And cherry on top, I decided to include others markup format in addition to markdown. They are not here yet, but are planned. Fell free to request your preferred one, to make pull requests, etc.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4053d ago

Major Versions

1.0.0 → 2.0.02015-05-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4218466?v=4)[Romain Baugue](/maintainers/elwinar)[@elwinar](https://github.com/elwinar)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/elwinar-babel/health.svg)

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

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M220](/packages/backpack-crud)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.3k453.6k30](/packages/tightenco-jigsaw)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[iq2i/storia-bundle

UI Storia bundle

155.2k](/packages/iq2i-storia-bundle)

PHPackages © 2026

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