PHP code example of esdlabs / string-blade-compiler
1. Go to this page and download the library: Download esdlabs/string-blade-compiler 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/ */
esdlabs / string-blade-compiler example snippets
return StringView::make(
array(
// this actual blade template
'template' => '{{ $token1 }}',
// this is the cache file key, converted to md5
'cache_key' => 'my_unique_cache_key',
// timestamp for when the template was last updated, 0 is always recompile
'updated_at' => 1391973007
),
array(
'token1'=> 'token 1 value'
)
);
// allows for @continue and @break in foreach in blade templates
Blade::extend(function($value)
{
return preg_replace('/(\s*)@(break|continue)(\s*)/', '$1 $2;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.