PHPackages                             thunderbirddeveloper/snakecharmer - 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. thunderbirddeveloper/snakecharmer

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

thunderbirddeveloper/snakecharmer
=================================

SnakeHandler is a PHP package designed to manipulate and execute Python scripts from within PHP. The package allows you to execute Python scripts, process and manage the results.

1.1.2(4mo ago)025MITPHPPHP &gt;=7.2

Since Feb 7Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/DamianLukasik/SnakeCharmer)[ Packagist](https://packagist.org/packages/thunderbirddeveloper/snakecharmer)[ RSS](/packages/thunderbirddeveloper-snakecharmer/feed)WikiDiscussions prime Synced 1mo ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

Snake Charmer
=============

[](#snake-charmer)

Snake Charmer is a simple PHP class designed to execute Python scripts conveniently from within a PHP environment. It provides methods to run Python scripts, pass parameters to them, and retrieve the results.

Features
--------

[](#features)

- Execute Python scripts from PHP with ease.
- Pass parameters to Python scripts.
- Retrieve results as strings or arrays.
- Clear script files and results conveniently.
- **New**: Support for saving script execution results to files.
- **New**: Methods for switching between memory and file output modes.

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

[](#installation)

You can install Snake Charmer via Composer. Run the following command in your terminal:

```
composer require thunderbirddeveloper/snakecharmer
```

Usage
-----

[](#usage)

Here's a basic example of how to use Snake Charmer:

```
