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/ */

    

sitroz / laravel-legacy-bridge example snippets


    
    
    lo world from Laravel!');
    



'Hello world from Laravel!');
 

   Sitroz\LaraBridge\LaraBridgeServiceProvider::class,
   



$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();
CLI
   php ./vendor/sitroz/laravel-legacy-bridge/register-script.php
   
CLI
   php artisan laraBridge:install
   
CLI
    php artisan laraBridge:remove