bidhan / aimlkit
AI/ML Integration Kit for Laravel
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2025-04-15 12:07:25 UTC
README
AI/ML Integration Kit for Laravel
REQUIREMENTS
- PHP >= 8.2
- Python >= 3 (with libraries: numpy, pandas, transformers, torch)
🚀 Installation
To install the package, follow these steps:
-
📦 Install the package using Composer:
composer require bidhan/aimlkit:dev-master
-
⚙️ Publish the configuration file:
php artisan vendor:publish --provider="Bidhan\AiMlKit\AiMlKitServiceProvider" --tag=config
-
🐍 Set up a Python virtual environment:
python3 -m venv myenv source myenv/bin/activate
-
🔧 Set the Python executable path:
Don't forget to add the Python path to your
aimlkit.php
configuration:PY_EXECUTABLE_PATH="YOUR/PYTHON/PATH"
Note: To copy the commands, you can click the clipboard icon next to each code block if you're viewing this on a platform that supports it, like GitHub.
📖 Usage
Here is an example of how to use the BidhanAIMLKIT
to get sentiments:
use Bidhan\AiMlKit\BidhanAIMLKIT; $aimlkit = new BidhanAIMLKIT(); $sentiment = $aimlkit->getSentiments("ANY_STRING..."); print_r($sentiment);
👤 Authors
💡 PS*
Right now it is in the Development Phase and you are free to contribute 🙂
If you have any queries regarding this issue, feel free to reach out.