PHP code example of sitroz / laravel-legacy-bridge
1. Go to this page and download the library: Download sitroz/laravel-legacy-bridge 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/ */
$a[0] = 'Hello';
$a[2] = 'World';
echo $a[0].$a[1].$a[2]; // By default, here your script will be stopped by laravel
function smthImportant(){
echo 'doing our important stuff';
}
smthImportant();