https://github.com/rakshitbharat/pythoninphp
This package can give you helper functions to run python files right from PHP.
https://github.com/rakshitbharat/pythoninphp
larave php python python-script runner server-side
Last synced: about 2 months ago
JSON representation
This package can give you helper functions to run python files right from PHP.
- Host: GitHub
- URL: https://github.com/rakshitbharat/pythoninphp
- Owner: rakshitbharat
- License: mit
- Created: 2020-02-14T07:47:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-12T05:52:29.000Z (almost 4 years ago)
- Last Synced: 2025-01-13T02:51:14.092Z (12 months ago)
- Topics: larave, php, python, python-script, runner, server-side
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 22
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Run Python Script from PHP
[](https://packagist.org/packages/rakshitbharat/pythoninphp)
[](https://travis-ci.org/rakshitbharat/pythoninphp)
[](https://scrutinizer-ci.com/g/rakshitbharat/pythoninphp)
[](https://packagist.org/packages/rakshitbharat/pythoninphp)
This package can give you helper functions to run python files right from PHP.
## Installation
You can install the package via composer:
```bash
composer require rakshitbharat/pythoninphp
```
## Usage
``` php
// 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')
```
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email rakshitbharatproject@gmail.com instead of using the issue tracker.
## Credits
- [Rakshit Patel](https://github.com/rakshitbharat)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.