PHPackages                             rakshitbharat/pythoninphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rakshitbharat/pythoninphp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rakshitbharat/pythoninphp
=========================

This package can give you helper functions to run python files right from PHP.

1.4(4y ago)2429451MITPHP

Since Feb 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rakshitbharat/pythoninphp)[ Packagist](https://packagist.org/packages/rakshitbharat/pythoninphp)[ Docs](https://github.com/rakshitbharat/pythoninphp)[ RSS](/packages/rakshitbharat-pythoninphp/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)DependenciesVersions (6)Used By (1)

Run Python Script from PHP
==========================

[](#run-python-script-from-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/84e920553f4af2e9fea2a3448abb025dab5f080ad1a699223559924a2d2b660b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616b736869746268617261742f707974686f6e696e7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rakshitbharat/pythoninphp)[![Build Status](https://camo.githubusercontent.com/41988cebee84f398e25f4bd6d8613d94c40a4d9ef80e2730da81de4a40371ece/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72616b736869746268617261742f707974686f6e696e7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rakshitbharat/pythoninphp)[![Quality Score](https://camo.githubusercontent.com/edadc4425362559f26134f293ad2990eba4f7bfb6db5144b76710a4edb416fd1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72616b736869746268617261742f707974686f6e696e7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rakshitbharat/pythoninphp)[![Total Downloads](https://camo.githubusercontent.com/70f798de4f1a04b0f226112e2c61487fbd638555277148d12f1e8bb0e9fb9957/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616b736869746268617261742f707974686f6e696e7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rakshitbharat/pythoninphp)

This package can give you helper functions to run python files right from PHP.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require rakshitbharat/pythoninphp
```

Usage
-----

[](#usage)

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

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Rakshit Patel](https://github.com/rakshitbharat)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 53.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~186 days

Total

5

Last Release

1529d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ea6b70074b3a2219c9a6e211b471f5fddd4c551ed71f3b4a38ef80949a36907?d=identicon)[rakshitbharat](/maintainers/rakshitbharat)

---

Top Contributors

[![rakshitbharat](https://avatars.githubusercontent.com/u/17176729?v=4)](https://github.com/rakshitbharat "rakshitbharat (8 commits)")[![rakshitbharatproject](https://avatars.githubusercontent.com/u/223161659?v=4)](https://github.com/rakshitbharatproject "rakshitbharatproject (7 commits)")

---

Tags

laravephppythonpython-scriptrunnerserver-siderakshitbharatpythoninphp

### Embed Badge

![Health badge](/badges/rakshitbharat-pythoninphp/health.svg)

```
[![Health](https://phpackages.com/badges/rakshitbharat-pythoninphp/health.svg)](https://phpackages.com/packages/rakshitbharat-pythoninphp)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
