PHP code example of piestar / dough
1. Go to this page and download the library: Download piestar/dough 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/ */
piestar / dough example snippets
$mixed = DoughMixer::mix("pie is {{ pie }}" , ['pie' => '<good>']); // "pie is <good&rt;"
$mixed = DoughMixer::mix("pie is {!! pie !!}" , ['pie' => '<good>']); // "pie is <good>"
$mixed = DoughMixer::mix("Eat {{ pie.name }}!",
['pie' => ['name' => 'Apple Pie']]); // "Eat Apple Pie!"