PHPackages                             omaralalwi/laravel-py - 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. omaralalwi/laravel-py

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

omaralalwi/laravel-py
=====================

Laravel wrapper for php-py package, to seamless enabling secure and efficient execution of Python scripts within PHP applications.

1.0.0(1y ago)50224[1 issues](https://github.com/omaralalwi/laravel-py/issues)MITPHPPHP ^8.1

Since Feb 8Pushed 1y ago2 watchersCompare

[ Source](https://github.com/omaralalwi/laravel-py)[ Packagist](https://packagist.org/packages/omaralalwi/laravel-py)[ Docs](https://github.com/omaralalwi/laravel-py)[ RSS](/packages/omaralalwi-laravel-py/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Laravel Py - Laravel Python 🚀🐍
==============================

[](#laravel-py---laravel-python-)

Laravel wrapper for **[php-py package](https://github.com/omaralalwi/php-py)** package, to Seamless enabling secure and efficient execution of Python scripts within Laravel applications without spread multiple applications and or setup API.

📌 Table of Contents
-------------------

[](#-table-of-contents)

- [🔧 Requirements](#requirements)
- [🚀 Installation](#installation-)
- [🚀 Quick Start](#-quick-start)
- [✨ Features](#-features)
- [📋 Changelog](#-changelog)
- [🧪 Testing](#-testing)
- [🔒 Security](#-security)
- [🤝 Contributors](#-contributors)
- [📄 License](#-license)

---

Requirements
------------

[](#requirements)

- PHP 8.1+ .
- [python3](https://www.python.org/) must be installed in server .

Installation 🛠️
---------------

[](#installation-️)

You can install the package via Composer:

```
composer require omaralalwi/laravel-py
```

Publishing Configuration File
-----------------------------

[](#publishing-configuration-file)

```
php artisan vendor:publish --tag=laravel-py
```

---

🚀 Quick Start
-------------

[](#-quick-start)

1. 📂 Create a folder for scripts, e.g., `phpPyScripts` in your project root directory.
2. 📝 Create a Python script file (`.py` extension) and write Python code. [See this script examples](https://github.com/omaralalwi/php-py/tree/master/example-scripts).
3. 🔧 make script file executable, `chmod +x script_file_path` .

### ⚡ Easy Usage

[](#-easy-usage)

```
