PHPackages                             tonius/python - 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. tonius/python

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

tonius/python
=============

Tonius | Python :: A package that provides flexibility and built to smooth-run simple and complex python scripts inside PHP and Laravel projects.

2.0.1(5y ago)06MITPHPCI failing

Since May 24Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (3)Used By (0)

python
======

[](#python)

================================================================================

[![Version](https://camo.githubusercontent.com/6d25ea5c7d59c0f257303a5adc03a7a59f9ebafd85cb3e184e08fe54c9e2a55c/68747470733a2f2f706f7365722e707567782e6f72672f746f6e6975732f707974686f6e2f76657273696f6e)](//packagist.org/packages/tonius/python)[![Build Status](https://camo.githubusercontent.com/f4128294870805f6ab79261a0b1a14c1cc4960213e643a119398ec2abcb22804/68747470733a2f2f7472617669732d63692e6f72672f6f6c7562756e6d69746f73696e2f746f6e6975732d707974686f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/olubunmitosin/tonius-python)[![Total Downloads](https://camo.githubusercontent.com/44b80e5e080873c376c690364da3c58cade650a4f8f7cd4689090bdb1cbff7de/68747470733a2f2f706f7365722e707567782e6f72672f746f6e6975732f707974686f6e2f646f776e6c6f616473)](//packagist.org/packages/tonius/python)[![StyleCI](https://camo.githubusercontent.com/7b3f945ffdd146ce03fb155989ddab11bde1c2dc463178f4e72db7f201e413bc/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3236363433393635322f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/266439652)[![License](https://camo.githubusercontent.com/8cfa60c6a9dacca36d0df92aa25055ff7b3287caef2c3ec1b19b57098d89f0a9/68747470733a2f2f706f7365722e707567782e6f72672f746f6e6975732f707974686f6e2f6c6963656e7365)](//packagist.org/packages/tonius/python)[![Monthly Downloads](https://camo.githubusercontent.com/1880d4d2053776850edab578f93b0b73e5af213135ca02438cd4528ee9ff337f/68747470733a2f2f706f7365722e707567782e6f72672f746f6e6975732f707974686f6e2f642f6d6f6e74686c79)](//packagist.org/packages/tonius/python)[![composer.lock](https://camo.githubusercontent.com/7869883cc758f597a777b99cc1fe3335746622334d5226cb0e2029fd81c289b1/68747470733a2f2f706f7365722e707567782e6f72672f746f6e6975732f707974686f6e2f636f6d706f7365726c6f636b)](//packagist.org/packages/tonius/python)

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](https://symfony.com/).

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

[](#installation)

Via Composer

```
$ composer require tonius/python
```

Usage
-----

[](#usage)

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
];
```

#### Run Example script

[](#run-example-script)

```
use tonius\python\Facades\Python;
$response = Python::run(null, ['test' => true ]);
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [olubunmi tosin](https://github.com/olubunmitosin)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2186d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42380340?v=4)[Victor Olubunmi](/maintainers/olubunmitosin)[@olubunmitosin](https://github.com/olubunmitosin)

---

Top Contributors

[![olubunmitosin](https://avatars.githubusercontent.com/u/42380340?v=4)](https://github.com/olubunmitosin "olubunmitosin (2 commits)")

---

Tags

laravelpythontonius

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tonius-python/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[brexis/laravel-workflow

Integerate Symfony Workflow component into Laravel.

283125.6k](/packages/brexis-laravel-workflow)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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