Download the PHP package endritvs/laravel-ai-toolkit without Composer

On this page you can find all versions of the php package endritvs/laravel-ai-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-ai-toolkit

Laravel AI Toolkit 🧠

Laravel AI Toolkit is a powerful package designed to seamlessly integrate AI models, such as OpenAI's GPT and AWS's Claude, into your Laravel application. With an easy-to-use interface, this toolkit empowers developers to effortlessly add AI-driven features to their projects.

🚀 Features

📋 Requirements

🛠️ Installation

To install the package, use Composer:

After installing the package, publish the configuration file:

This will create a configuration file at config/ai.php.

⚙️ Configuration

Environment Variables

Ensure that you set up the following environment variables in your .env file:

Configuration File

The config/ai.php configuration file contains default settings for the package. You can customize these settings as needed:

💻 Usage

Basic Usage Example

You can use the package to interact with AI models as follows:

Explanation:

Query Builder Example

The query builder allows you to build queries for AI models:

Explanation:

Using Different Models Example

You can use different AI models for different tasks:

Explanation:

Using Fallback Providers Example

Specify a fallback provider to use if the primary provider fails:

Explanation:

Set Provider Example

Manually set a different provider for the AI model:

Explanation:

Advanced Query Builder Example

Dynamically build and execute more complex queries:

Explanation:

Complete Example (Everything Included)

Combines all features into a comprehensive example, demonstrating both GPT and Claude models:

Explanation:

GPT-4 Example:

Claude Example:

Query Builder Example:

🛠️ Contributing

Contributions are welcome! If you'd like to contribute to this package, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/new-feature).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. Open a pull request.

🛡️ Security Vulnerabilities

If you discover a security vulnerability within this package, please send an email to [[email protected]]. All security vulnerabilities will be promptly addressed.

📄 License

This package is licensed under the MIT License. See the LICENSE file for more information.

💡 Tips & Tricks

📬 Support

If you have any questions or need further assistance, feel free to reach out via email or open an issue on GitHub.


All versions of laravel-ai-toolkit with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/support Version ^10.0|^11.0
openai-php/laravel Version ^0.7.0
aws/aws-sdk-php Version ^3.304
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package endritvs/laravel-ai-toolkit contains the following files

Loading the files please wait ....