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

ActiveLibrary

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

Markup languages engines for Laravel 5

2.0.0(10y ago)1397PublicPHP

Since May 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/elwinar/babel)[ Packagist](https://packagist.org/packages/elwinar/babel)[ RSS](/packages/elwinar-babel/feed)WikiDiscussions master Synced 3d 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 64% 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

4006d ago

Major Versions

1.0.0 → 2.0.02015-05-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/35435948570be6ef5f7d38f80469c51557f44418d8ee7f89d242a9c31080949a?d=identicon)[elwinar](/maintainers/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

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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