Andrew Carter makes an LED blink on a Raspberry Pi with PHP - Building Raspberry Pi projects with PHP has never been easier!
Write asynchronous code using synchronous coding techniques in PHP
DB::listen(
function ($sql) {
foreach ($sql->bindings as $i => $binding) {
if ($binding instanceof \DateTime) {
$sql->bindings[$i] = $binding->format('\'Y-m-d H:i:s\'');
} else {
if (is_string($binding)) {
$sql->bindings[$i] = "'$binding'";
}
}
}
$query = str_replace(array('%', '?'), array('%%', '%s'), $sql->sql);
$query = vsprintf($query, $sql->bindings);
echo $query . "<br>" . PHP_EOL;
}
);Login
Authentication
Roles
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="80px" height="80px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
<g>
<polygon fill="#E1E1E1" points="29.009,81.668 31.875,71.497 28.128,71.497 22.246,75.389 20.167,81.668 "/>
<polygon fill="#E1E1E1" points="70.328,81.668 71.854,76.214 70.5,65.945 65.16,69.421 61.725,81.668 "/>
<polygon fill="#E1E1E1" points="97.242,65.271 94.643,63.408 92.989,68.003 88.838,68.479 84.738,46.995 89.253,31.503 78.598,21.704 62.424,21.704 57.307,25.244 57.041,34.652 54.993,44.929 68.17,40.548 49.713,51.129 55.591,35.192 53.799,23.981 62.933,18.332 26.192,27.775 2.758,58.285 13.896,53.696 6.001,81.625 17.769,81.625 20.28,74.102 27.139,69.433 43.569,69.433 49.341,74.752 47.398,81.625 59.171,81.625 62.972,68.136 74.081,60.867 86.408,76.469 97.224,71.744 "/>
</g>
</svg>