Download the PHP package beebmx/kirby-blade without Composer

On this page you can find all versions of the php package beebmx/kirby-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 kirby-blade

Kirby Blade

Kirby Blade use Laravel illuminate/view and jenssegers/blade packages.

This package enables Laravel Blade for your own Kirby applications.

Installation

Installation with composer

What is Blade?

According to Laravel Blade documentation is:

Blade is the simple, yet powerful templating engine provided with Laravel. Unlike other popular PHP templating engines, Blade does not restrict you from using plain PHP code in your views. In fact, all Blade views are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application. Blade view files use the .blade.php file extension.

Usage

You can use the power of Blade like Layouts, Sub-Views, Blade components.

All the documentation about Laravel Blade is in the official documentation.

Conflicts

Since Kirby 3.7.0 it's important to add the helpers from illuminate/support to your root index.php file in your public directory.

This line should be before your autoload.php file. The result file should be like:

Options

The default values of the package are:

Option Default Values Description
beebmx.kirby-blade.bootstrap false (bool) Enable blade facade after the plugin is available
beebmx.kirby-blade.views site/cache/views (string) Location of the views cached
beebmx.kirby-blade.directives [] (array) Array with the custom directives
beebmx.kirby-blade.ifs [] (array) Array with the custom if statements

All the values can be updated in the config.php file.

Views

All the views generated are stored in site/cache/views directory or wherever you define your cache directory, but you can change this easily:

Directives

By default, Kirby Blade comes with the follows directives:

But you can create your own:

If Statements

Like directives, you can create your own if statements:

After declaration, you can use it like:

Components

Now you can use Blade components natively in Kirby 3. To display a component its required to place your component in templates/components and then you can call it with the prefix x- in kebab case.

If your component is nested deeper inside the components directory, you can use the . character to indicate the place:

You can also send data to the components via "slots" and attributes:

``

All the documentation related to Components is in the Laravel website.


All versions of kirby-blade with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
beebmx/blade Version ^1.8
getkirby/composer-installer Version ^1.2
illuminate/view Version ^10.0|^11.0
ramsey/uuid Version ^4.7
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 beebmx/kirby-blade contains the following files

Loading the files please wait ....