1. Go to this page and download the library: Download leitsch/kirby-blade library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
@logged
Welcome back {{ $kirby->user()->name() }}
@else
Please Log In
@endlogged
namespace App\View\Components;
use Illuminate\Support\Facades\View;
use Illuminate\View\Component;
class Button extends Component
{
public function render()
{
return View::make('components.button');
}
}
# site/config/config.php
# For this example, we are using 'voku/html-min'
use voku\helper\HtmlMin;
return [
# ...
'hooks' => [
'blade.render:after' => function (string $html): string {
return (new HtmlMin())->minify($html);
},
],
# ...
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.