PHP code example of kerns / dummy

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

    

kerns / dummy example snippets


<h1> dummy('text@words:5-9,title'); 

use Illuminate\Support\Facades\Route;

Route::view('/dummy-demo', 'dummy-demo');

return [
    'url' => '/vendor/dummy',
    'assets_path' => public_path('vendor/dummy/assets'),
    'cache_path' => public_path('vendor/dummy/cache'),
];


my_path = '/dummy';
$dummy_assets_path = __DIR__ . '/dummy/assets';
$dummy_cache_path = __DIR__ . '/dummy/cache';

 

<p> dummy('text@words:30-60'); 

<img
    src=" dummy('image/retina@1920x,16:9'); 

 if (dumb_luck('50%')): 
sh
php -S localhost:8000
sh
php artisan vendor:publish --tag=dummy-assets
blade
<h1>@php(dummy('text@words:5-9,title'))</h1>
<p>@php(dummy('text@words:30-60'))</p>

@if (dumb_luck('50%'))
    <img src="@php(dummy('image@640x,16:9'))" alt="Example photograph">
@endif

<ul>
@while (dumb_luck('3-8'))
    <li>@php(dummy('text@headline'))</li>
@endwhile
</ul>
sh
php artisan vendor:publish --tag=dummy-config
 ...