PHPackages                             weirdo/laravel-easyblade - 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. weirdo/laravel-easyblade

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

weirdo/laravel-easyblade
========================

Create a easier &amp; readable Blade view with EasyBlade

0.8.2(1y ago)0701MITPHPPHP ^7.3|^8.0

Since May 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aghabrego/laravel-easyblade)[ Packagist](https://packagist.org/packages/weirdo/laravel-easyblade)[ RSS](/packages/weirdo-laravel-easyblade/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (1)

laravel EasyBlade
=================

[](#laravel-easyblade)

You can create a simpler and more readable view with EasyBlade

Installation
============

[](#installation)

```
composer require weirdo/laravel-easyblade

```

Usage
=====

[](#usage)

Using EasyBlade is, just like its name, super easy!

Imagine that you want to write a route URL in a href in Blade You will have to write this code :

```

```

But by using EasyBlade, Just write :

```

```

and don't use "{{ }}" or any pure PHP code

Blade template engine was not created for pure PHP code, rather, it was created to code easier. You can pass it by EasyBlade

Current Directives :
--------------------

[](#current-directives-)

- `@asset('foo')`
- `@url('foo')`
- `@route('foo')`
- `@isActive('routeName', 'active', 'deactive')`
- `@count(array|collection, number )`
- `@user(attr)`
- `@sessionExists('name')`
- `@session('name')`
- `@image('address', 'cssClasses')`
- `@style('style.css')`
- `@script('script.js')`
- `@config('app.name', 'Laravel')`
- `@old('name', 'Reza')`

Features :
----------

[](#features-)

- You can pass a route name or array of route names as first parameters to`@isActive` directive , second parameter is a string which you want to echo in view and third parameter is an optional param and it will return a null string if nothing was passed , It will be showed when the current route is not equal to array or string which passed as first param
- You can use `@count` directive instead of writing lots of if statements to check if the count of the collection or array is equal to or greater than your number which was passed to the second param.

Examples :
----------

[](#examples-)

- `@count`

```
    @count([1, 2, 3], 3)
        something
    @endcount
    // return `something` because count of array is equal 3
```

```
    @count([1, 2], 3)
        true
    @endcount
    // return null because count of array is smaler than 3
```

- `@isActive` Imagine current route is : `dashboard.home`

```
    @isActive('dashboard.home', 'active', 'deactive')
    // Return : active
```

```
    @isActive(['dashboard.home', 'dahboard.profile'], 'active', 'deactive')
    // Return : active
```

```
    @isActive('home', 'active', 'deactive')
    // Return : deactive
```

- `@asset`

```
    @asset('img/header.png')

    // Return : http://127.0.0.1/img/header.png (Like asset() helper )
```

- `@route`

```
    @route('dashboard')

    // Return : http://127.0.0.1/dashboard (Like route('routeName') helper )
```

- `@url`

```
    @url('/home')

    // Return : http://127.0.0.1/home (Like url('address') helper )
```

- `@user`

```
    @user('name')

   // It will run auth()->user()->name and return user's name
   // You don't need to check user is authenticated or not , it will check by itself
```

- `@sessionExists`

```
    @sessionExists('foo')
        Session Exists
    @endsessionExists

    // It will run session()->exists('foo') in a condition
```

- `@session`

```
    @session('name')

    // First it will check session exists then it will print value of session
```

- `@image`

```
    @image('img/img1.png', 'img-fuild rounded-circle')

    // Return a img tag with http://domain/img/img1.png file and 'img-fuild rounded-circle' class
```

- `@old`

```
    @old('name', $user->name)

    // Return something like : {{ old('name', $user->name) }}
```

- `@script`

```
    @script('/js/script.js')
    // Return script tag :

    @script('/js/script.js', true) // Second and third parameter is optional
    // Return script tag with defer :
```

- `@style`

```
    @style('/css/app.css')
    // Return link tag :
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.3% 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 ~267 days

Total

3

Last Release

572d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b86209e6d4ed9c22adf363651fded7018d680815d749032cead1669e15a0185?d=identicon)[aghabrego](/maintainers/aghabrego)

---

Top Contributors

[![reziamini](https://avatars.githubusercontent.com/u/29504334?v=4)](https://github.com/reziamini "reziamini (86 commits)")[![alighorbani1381](https://avatars.githubusercontent.com/u/59092242?v=4)](https://github.com/alighorbani1381 "alighorbani1381 (8 commits)")[![aghabrego](https://avatars.githubusercontent.com/u/18662762?v=4)](https://github.com/aghabrego "aghabrego (6 commits)")[![arahmanii](https://avatars.githubusercontent.com/u/35738543?v=4)](https://github.com/arahmanii "arahmanii (1 commits)")[![Procedurally-Generated-Human](https://avatars.githubusercontent.com/u/87566207?v=4)](https://github.com/Procedurally-Generated-Human "Procedurally-Generated-Human (1 commits)")

### Embed Badge

![Health badge](/badges/weirdo-laravel-easyblade/health.svg)

```
[![Health](https://phpackages.com/badges/weirdo-laravel-easyblade/health.svg)](https://phpackages.com/packages/weirdo-laravel-easyblade)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[orchid/blade-icons

An easy way inline SVG images in your Blade templates.

223.4M9](/packages/orchid-blade-icons)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)

PHPackages © 2026

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