Download the PHP package falahatiali/homa without Composer

On this page you can find all versions of the php package falahatiali/homa. 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 homa

# Homa ๐Ÿฆ… **The legendary bird that brings AI wisdom to Laravel.** [![Tests](https://github.com/falahatiali/homa/actions/workflows/tests.yml/badge.svg)](https://github.com/falahatiali/homa/actions/workflows/tests.yml) [![Code Quality](https://github.com/falahatiali/homa/actions/workflows/code-quality.yml/badge.svg)](https://github.com/falahatiali/homa/actions/workflows/code-quality.yml) [![Latest Version](https://img.shields.io/packagist/v/falahatiali/homa.svg?style=flat-square)](https://packagist.org/packages/falahatiali/homa) [![Total Downloads](https://img.shields.io/packagist/dt/falahatiali/homa.svg?style=flat-square)](https://packagist.org/packages/falahatiali/homa) [![License](https://img.shields.io/packagist/l/falahatiali/homa.svg?style=flat-square)](https://packagist.org/packages/falahatiali/homa)

Homa is a simple and elegant AI assistant package for Laravel applications. Integrate multiple AI providers (OpenAI, Anthropic Claude, and more) with a clean, fluent API. Named after the mythical Persian bird that brings good fortune and wisdom to those it flies over.

โœจ Features

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

Install the package via Composer:

Publish Configuration (Optional)

This will create a config/homa.php configuration file.

Quick Setup

  1. Copy environment file:

  2. Add your API keys to .env:

  3. Start using Homa:

Configure Your API Keys

Copy the example environment file and add your AI provider API keys:

Required Environment Variables:

Get API Keys:

๐Ÿ–ฅ๏ธ Use Ollama locally (free)

Ollama lets you run models like Llama 3, Mistral, Qwen locally with no API cost.

1) Install Ollama

2) Download and run a model

3) Configure Homa for Ollama

4) Use in code

Best local models (balanced): llama3.1:8b-instruct, mistral:7b-instruct, qwen2.5:7b-instruct, phi3:mini. Browse models: https://ollama.com/library and curated lists at https://llm-explorer.com/.

๐Ÿš€ Quick Start

Basic Usage

Ask a simple question:

Configure On-The-Fly

Chain configuration methods for custom behavior:

Switch Between Providers

Easily switch between different AI providers:

Custom System Prompts

Set custom system prompts for specialized behavior:

Multi-Turn Conversations

Create context-aware conversations:

Advanced Chat Control

For full control over the conversation, use the chat() method:

Working with Responses

The AIResponse object provides several useful methods:

โš™๏ธ Configuration

Configuration File

After publishing the config file, you can customize all aspects in config/homa.php. For environment variables, see .env.example for all available options:

Available Models

OpenAI:

Anthropic:

Groq (Ultra-fast inference):

Gemini (Google AI with multimodal capabilities):

๐ŸŽฏ Use Cases

Content Generation

Code Assistance

Customer Support Bot

Data Analysis

๐Ÿ—๏ธ Architecture

Package Structure

Adding Custom Providers

You can extend Homa with custom AI providers by implementing the AIProviderInterface:

๐Ÿงช Testing

Run the test suite:

Or with PHPUnit directly:

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

๐Ÿ“ Changelog

Please see CHANGELOG for more information on what has changed recently.

๐Ÿ”’ Security

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

๐Ÿ“„ License

The MIT License (MIT). Please see License File for more information.

๐ŸŒŸ Credits

๐Ÿ“– About Homa

In Persian mythology, the Homa (also spelled Huma) is a legendary bird that brings good fortune and wisdom to those fortunate enough to be graced by its shadow. The bird is said to never land, continuously soaring through the skies, much like how this package aims to elevate your Laravel applications with the power of AI.

Just as the Homa bird is known for its wisdom and grace, this package strives to bring intelligent, elegant solutions to your AI integration needs, making it effortless to incorporate cutting-edge AI capabilities into your Laravel applications.


**May the wisdom of Homa guide your code!** ๐Ÿฆ… Made with โค๏ธ for the Laravel community

All versions of homa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
illuminate/support Version ^10.0|^11.0|^12.0
openai-php/laravel Version ^0.16.0
grok-php/client Version ^1.3
google-gemini-php/client Version ^2.6
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 falahatiali/homa contains the following files

Loading the files please wait ...