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

Abandoned → [rezaamini-ir/laravel-easyblade](/?search=rezaamini-ir%2Flaravel-easyblade)Library[Templating &amp; Views](/categories/templating)

aminireza-ir/laravel-easyblade
==============================

Create a easier &amp; readable Blade view with EasyBlade

v0.1.7(5y ago)111310[1 PRs](https://github.com/rezaamini-ir/laravel-easyblade/pulls)MITPHPPHP ^7.2.5

Since Oct 12Pushed 2y ago2 watchersCompare

[ Source](https://github.com/rezaamini-ir/laravel-easyblade)[ Packagist](https://packagist.org/packages/aminireza-ir/laravel-easyblade)[ RSS](/packages/aminireza-ir-laravel-easyblade/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (9)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d9d5fce1f81b21ed8bf0607c169bdfc6db9a0fffdd362bd8917deee54fe5452e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72657a61616d696e692d69722f6c61726176656c2d65617379626c6164652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rezaamini-ir/laravel-easyblade/?branch=master)[![Build Status](https://camo.githubusercontent.com/2c1a1be091bbccbc3ff986de0d48ab3e21d663a512223cdcec71b54ace6ef71d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f72657a61616d696e692d69722f6c61726176656c2d65617379626c6164652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rezaamini-ir/laravel-easyblade/build-status/master)

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

[](#laravel-easyblade)

You can create a simpler and more readable view with EasyBlade

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

[](#installation)

```
composer require rezaamini-ir/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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.8% 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 ~2 days

Total

8

Last Release

2076d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be24b70580da98f30e68a46448c5612bd78a327c127ad9627caeb1c87a40cca2?d=identicon)[rezaamini-ir](/maintainers/rezaamini-ir)

---

Top Contributors

[![reziamini](https://avatars.githubusercontent.com/u/29504334?v=4)](https://github.com/reziamini "reziamini (88 commits)")[![alighorbani1381](https://avatars.githubusercontent.com/u/59092242?v=4)](https://github.com/alighorbani1381 "alighorbani1381 (8 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)")

---

Tags

bladelaravellaravel-bladelaravel-easybladelaravel-packagephp

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[illuminate/view

The Illuminate View package.

13047.0M2.2k](/packages/illuminate-view)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.2k14](/packages/tallstackui-tallstackui)[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.

45444.2k1](/packages/pressbooks-pressbooks)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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