PHP code example of bhavingajjar / laravel-python
1. Go to this page and download the library: Download bhavingajjar/laravel-python 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/ */
bhavingajjar / laravel-python example snippets
use Bhavingajjar\LaravelPython\LaravelPython;
$python = new LaravelPython();
$result = $python->run('hello.py');
public function index(LaravelPython $python){
$result = $python->run('hello.py');
}
bash
php artisan vendor:publish --provider="Bhavingajjar\LaravelPython\LaravelPythonServiceProvider" --tag="config"