Download the PHP package helsingborg-stad/blade without Composer

On this page you can find all versions of the php package helsingborg-stad/blade. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package blade

Contributors Forks Stargazers Issues License PHP 8.2

Blade

Use Laravel Blade in any PHP project.\ If you don't know about Blade yet, please refer to the official documentation.

Report Bug · Request Feature

Requirements

Installation

Usage

Configuration

Cache path

Initialize blade engine:

This can be done either as a local instance or as a global reusable instance. The global instance is recommended better performance and less memory usage.

Locally

Globally (for convenient reuse)

[!NOTE] If calling GlobalBladeService::getInstance with parameters after the first call, the $viewPaths will be added and the $cachePath parameter will be ignored.

Render view

Render view with variables

Render with specific view path

This enables you to temporarily use a specific view path without storing it in the Blade Service.

Register a custom directive

Register a component

Register a component directive

If you have already registered a component. That component can be added as a directive by doing the following:

Add additional view file paths

If you need to add more view file paths after initializing the Blade Service, this can be done by calling BladeService::addViewPath

Prepend view file paths

If you need to add more view file paths before the existing view file paths, this can be done by calling BladeService::prependViewPath with the second parameter set to true.

[!IMPORTANT] For every unique view path added, performance will be affected. This is due to the fact that the Blade Service will have to search through all view paths to find the correct view file. Therefore, it is recommended to add as few view paths as possible.

Error handling

This package offers a convenient solution for swiftly addressing issues that arise within a function called in a view or a syntax error directly within a file. It provides a function to visually display the error, which proves particularly useful during the development process. To optimize development speed and efficiency, it's advisable to implement an error handler when invoking makeView, ensuring smooth troubleshooting whenever errors occur.

Testing

Unit tests

Code coverage


All versions of blade with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/view Version ^8.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package helsingborg-stad/blade contains the following files

Loading the files please wait ....