Download the PHP package ngandu-dev/lugha without Composer

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

Lugha - yet another PHP Generative AI Framework

Latest Stable Version Total Downloads Quality Tests License

[!IMPORTANT]
Lugha is abandoned in favor of Symfony AI - github.com/symfony/ai. Please use the new repository for all future development, issues, and contributions.

Lugha from Swahili meaning "Language" is a PHP Generative AI Framework that provides a simple and easy way to interact with various AI providers. The main idea is to provide a unified provider-agnostic API for AI models, making it easier to switch between providers.

This project is highly inspired by LangChain and LLPhant, designed for Chatbot, RAG (Retrieval-Augmented Generation) based applications with integration of Embeddings, Completion and Reranking models.

Features

Requirements

supported providers:

Provider Link Features
OpenAI openai.com Completion, Embeddings
Mistral mistral.ai Completion, Embeddings
Google ai.google Completion, Embeddings
GitHub github.com Completion, Embeddings
Anthropic anthropic.com Completion
Voyager.ai voyageai.com Embeddings, Reranking
Ollama ollama.com Completion, Embeddings
Deepseek deepseek.com completion

Installation

Usage

Embeddings

Embeddings are a type of word representation that allows words with similar meaning to have a similar representation. they can be used to find the similarity between words, phrases, or sentences. useful for document classification, clustering, and information retrieval.

Completion

Completion models are designed to generate human-like text based on the input prompt.

Reranking

Reranking models are designed to re-rank a list of documents based on the input prompt. useful for search engines, recommendation systems, and information retrieval.

Development

Contributing

See CONTRIBUTING.md before opening an issue or pull request.

Security

Report vulnerabilities privately as described in SECURITY.md.

License

Released under the MIT License.

Contributors

Contributors


All versions of lugha with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
symfony/http-client Version ^7.2
webmozart/assert Version ^1.11
symfony/filesystem Version ^7.2
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 ngandu-dev/lugha contains the following files

Loading the files please wait ...