Tonius | Python :: A package that provides flexibility and built to smooth-run simple and complex python scripts inside PHP and Laravel projects.
tonius/python is a Laravel package for tonius | python :: a package that provides flexibility and built to smooth-run simple and complex python scripts inside php and laravel projects..
It currently has 0 GitHub stars and 6 downloads on Packagist (latest version 2.0.1).
Install it with composer require tonius/python.
Discover more Laravel packages by tonius
or browse all Laravel packages to compare alternatives.
Last updated
================================================================================
Tonius Python :: A package built to smooth-run simple and complex python scripts inside PHP and Laravel projects. This is very useful when we need to perform system based operations and at the same time want to use the result in out PHP Applications. Credits to Symfony Foundation.
Via Composer
$ composer require tonius/python
You must have python installed.
use tonius\python\Facades\Python;
$response = Python::run($fileName);
Available options;
$options = [
'test' => true, // To run a default test script if filename is not passes
'output' => 'json', // Output types : json, file, raw. it's raw by default
'fileName' => 'example.json' // .txt, php, e.t.c If you specify output to be file, you must pass the name of file to dump the output
];
use tonius\python\Facades\Python;
$response = Python::run(null, ['test' => true ]);
Please see the changelog for more information on what has changed recently.
$ ./vendor/bin/phpunit
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
MIT. Please see the license file for more information.