New

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

helsingborg-stad/global-blade-engine

A static instance of blade engine to be used cross-package.
46,045

Larablocks Analysis

helsingborg-stad/global-blade-engine works with Laravel 8 (latest release 4.0.2, Jan 31, 2024), which reached end of life on Jan 24, 2023: no more fixes, even for security.

Laravel 5 in earlier releases.

Recommendation checks

Use with care

Use with care: meets 0 of 4 checks.

  • Supports only Laravel 8, past end of life since Jan 24, 2023
  • No release in the last 12 months (last: Jan 31, 2024)
  • 21 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Quiet
  • Last stable release: Jan 31, 2024.
  • No releases in the last 12 months.
  • First released: Apr 12, 2019.
  • Monthly downloads: 21.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.

Install
composer require helsingborg-stad/global-blade-engine
Latest Version:4.0.2
PHP:^8.3
Laravel:8
Older releases:5
License:MIT
Last Updated:Jan 9, 2025
Links: GitHub  ·  Packagist
Maintainer: sebastianthulin

Global Blade Engine

Creates a single instance of benjamincrozat/blade to be used in multiple packages and project running side-by-side.

Known issues

  • View names must be unique to whole project. For now the solution is to set view path one level above the target dir and make the name unique. You calls to view will be prefixed with this folder name. Eg. @include("uniquename.viewname")

Getting started

Recommended method of usage is with composer. Add the requirement below, to enable a new set of awesome features.

composer reqire helsingborg-stad/global-blade-engine

Example usage (register a component)

use \HelsingborgStad\GlobalBladeEngine as Blade;  

Blade::addViewPath(BASEPATH . 'views');

echo Blade::instance()->make($view, $data)->render();

Developer mode

Add the following CONSTANT to your config file to clear the blade cache while in development mode:

define( 'GLOBAL_BLADE_ENGINE_CLEAR_CACHE' , true );

Built With

  • Laravel Blade 5.8 based on standalone version benjamincrozat/blade

Dependencies

  • PHP ^8.3

Releases

https://github.com/helsingborg-stad/blade-component-library/releases

Authors

  • Sebastian Thulin

License

This project is licensed under the MIT License - see the LICENSE file for details

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
4.0.2 ^8.3 ^8.83.27 MIT
4.0.1 ^8.3 ^8.83.27 MIT
4.0.0 ^8.3 ^8.83.27 MIT
2.0.0 ^5.8.36 MIT
1.3.0 ^5.8.36 MIT