New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

curtisblackwell/laravel-blade-directive-yaml-injector

A short description of what your package does
15 1

Larablocks Analysis

curtisblackwell/laravel-blade-directive-yaml-injector works with Laravel 5 (latest release 1.0.0, Apr 20, 2017), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Apr 20, 2017)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Apr 20, 2017.
  • No releases in the last 12 months.
  • First released: Apr 20, 2017.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require curtisblackwell/laravel-blade-directive-yaml-injector
Latest Version:1.0.0
PHP:>=5.6.4
Laravel:5
License:CC-BY-4.0
Last Updated:Apr 20, 2017
Links: GitHub  ·  Packagist
Maintainer: curtisblackwell

YAML Injector

This package enables you to inject YAML data into your views.

Installation

composer require curtisblackwell/laravel-blade-directive-yaml-injector

Usage

@yaml('myVar', 'my-yaml-file')

Example

// config/app.php
'providers' => [
  ...
  CurtisBlackwell\YamlInjectionProvider::class,
  ...
],
@yaml('bowie', 'david-bowie')

<table>
  <thead>
    <tr>
      <th>Year</th>
      <th>Title</th>
    </tr>
  </thead>
  <tbody>
    @foreach($bowie['albums'] as $album)
      <tr>
        <td>{{ $album['year'] }}</td>
        <td>{{ $album['title'] }}</td>
      </tr>
    @endforeach
  </tbody>
</table>
# resources/views/david-bowie.yaml
albums:
  -
    title: Self-titled
    year: 1967
  -
    title: Self-titled
    year: 1969
  -
    title: The Man Who Sold the World
    year: 1970
  -
    title: Hunky Dory
    year: 1971
  -
    title: The Rise and Fall of Ziggy Stardust and the Spiders from Mars
    year: 1972

Related Packages

hnhdigital-os/laravel-extras

Provides a collection of extras for Laravel 5.

17 1
log1x/sage-directives

A set of Blade directives for use with Roots Sage.

877,601 300
philo/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone...

693,015 355
wapmorgan/morphos-blade

Adds @plural, @name, @numeral, @ordinal and @money tags to Blade for Russian plu...

91,988 33
alexdover/blade-set

A very simple blade extension which allows variables to be set.

58,034 23

Version History

Version Released PHP Laravel License
1.0.0 >=5.6.4 5.4.* CC-BY-4.0