PHPackages                             kanagama/add-directives-to-larave-blade - 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. kanagama/add-directives-to-larave-blade

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

kanagama/add-directives-to-larave-blade
=======================================

Laravel Blade Directive を追加

v1.0.2(3y ago)024MITPHPPHP ^7.4|^8.0

Since Feb 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kanagama/add-directives-to-laravel-blade)[ Packagist](https://packagist.org/packages/kanagama/add-directives-to-larave-blade)[ Docs](https://github.com/kanagama/add-directives-to-laravel-blade)[ RSS](/packages/kanagama-add-directives-to-larave-blade/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (19)Used By (0)

Add-Directives-To-Laravel-Blade
===============================

[](#add-directives-to-laravel-blade)

暇なので作りました。

インストール方法
--------

[](#インストール方法)

```
composer require kanagama/add-directives-to-larave-blade
```

追加されるディレクティブ一覧
--------------

[](#追加されるディレクティブ一覧)

### @true

[](#true)

$conditions 条件式が true の場合のみ表示されます。

```
@true ($condition)
  // $condition が true の場合の処理
@endtrue
```

### @false

[](#false)

$conditions 条件式が false の場合のみ表示されます。

```
@false ($condition)
  // $condition が false の場合の処理
@endfalse
```

### @notempty

[](#notempty)

@empty ディレクティブと反対の挙動をします

$conditions が empty でない場合に表示されます

```
@notempty ($condition)
  // $condition が empty でない場合の処理
@endnotempty
```

### @notisset

[](#notisset)

@isset ディレクティブと反対の挙動をします

$conditions が定義されていない、または null の場合に表示されます

```
@notisset ($condition)
  // $condition が定義されていない、または null の場合の処理
@endnotisset
```

### @isnull

[](#isnull)

$conditions が null の場合に表示されます

```
@isnull ($condition)
  // $condition が null の場合の処理
@endisnull
```

### @isnotnull

[](#isnotnull)

$conditions が null でない場合に表示されます

```
@isnotnull ($condition)
  // $condition が null でない場合の処理
@endisnotnull
```

### @loop

[](#loop)

$conditions の回数分表示されます

@foreach ディレクティブと同じく、$loop 変数が利用できます。

```
@loop ($condition)
  // $condition が 3 の場合、3回表示されます
  {{ $loop->index }}
@endloop
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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 ~1 days

Total

18

Last Release

1213d ago

Major Versions

v0.0.7.x-dev → v1.0.02023-02-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32666757?v=4)[kazuma nagama](/maintainers/k-nagama)[@k-nagama](https://github.com/k-nagama)

---

Top Contributors

[![kanagama](https://avatars.githubusercontent.com/u/80406579?v=4)](https://github.com/kanagama "kanagama (16 commits)")[![kazumacchi](https://avatars.githubusercontent.com/u/46663366?v=4)](https://github.com/kazumacchi "kazumacchi (1 commits)")

---

Tags

laravelbladedirective

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kanagama-add-directives-to-larave-blade/health.svg)

```
[![Health](https://phpackages.com/badges/kanagama-add-directives-to-larave-blade/health.svg)](https://phpackages.com/packages/kanagama-add-directives-to-larave-blade)
```

###  Alternatives

[spatie/laravel-blade-javascript

A Blade directive to export variables to JavaScript

635910.1k9](/packages/spatie-laravel-blade-javascript)[angus-mcritchie/blade-boost-directive

Lightning-Fast Blade Components with `@boost` Directive

3914.6k](/packages/angus-mcritchie-blade-boost-directive)[djl997/blade-shortcuts

Blade Shortcuts is a library of handy Laravel Blade Directives.

411.0k3](/packages/djl997-blade-shortcuts)

PHPackages © 2026

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