This package can give you helper functions to run python files right from PHP.
You can install the package via composer:
composer require rakshitbharat/pythoninphp
// Simply run python script in PHP by using
Rakshitbharat\Pythoninphp\RunRun::thisFile('File path from Laravel Root')
// For example
Rakshitbharat\Pythoninphp\RunRun::thisFile('app/test.py')
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.