PHP code example of jobinja / blade-macro

1. Go to this page and download the library: Download jobinja/blade-macro 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/ */

    

jobinja / blade-macro example snippets


[
    \JobinjaTeam\BladeMacro\JobinjaBladeMacroServiceProvider::class,
    //...
]

@
// Should be replaced with:
@macro('some_partial', ['some_var' => 'some_value'])

@for($i=1; $i < 500000; $i++)
    @

 for($i=1; $i < 5000000; $i++){ 

@for($i=1; $i < 500000; $i++)
    @macro('iteration_presenter', ['iteration' => $i])
@endfor

 for($i=1; $i < 5000000; $i++){ 
bash
php artisan vendor:publish --provider=JobinjaTeam\BladeMacro\JobinjaBladeMacroServiceProvider