Download the PHP package memran/marwa-ai without Composer

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

Marwa AI

Latest Stable Version PHP Version Support Tests Status PHPStan Status Total Downloads

A comprehensive AI abstraction library for PHP with unified support for multiple AI providers.

Features

Installation

Quick Start

Using the Helper Functions

Conversations

Context & Metadata

Streaming

Prompt Templates

Tools / Function Calling

Classification

Batch Processing

Memory & Context

Embeddings

Image Generation

Structured Output

Health Checks

Configuration

Standalone Usage (Singleton)

Alternative: Application Instance (Non-singleton)

If you prefer not to use the global singleton, you can instantiate the Application class.

Using a Config File

Detailed Provider Configuration

Each provider supports the following parameters in the configuration array:

Parameter Type Description
api_key string Your provider API key
model string Default model to use for requests
base_url string Custom API endpoint (e.g., for proxies or local Ollama)
timeout int Request timeout in seconds (default: 30)
retries int Number of automatic retries on failure (default: 3)

Environment Variables Reference

Provider API Key Env Default Model Base URL Env
OpenAI OPENAI_API_KEY gpt-4o OPENAI_BASE_URL
Anthropic ANTHROPIC_API_KEY claude-3-opus -
Google GOOGLE_API_KEY gemini-pro -
xAI (Grok) XAI_API_KEY grok-2-latest -
Mistral MISTRAL_API_KEY mistral-large -
DeepSeek DEEPSEEK_API_KEY deepseek-chat -
Ollama - llama3.2 OLLAMA_BASE_URL

Chain / Pipeline

MCP Server

Error Handling

CLI Tool

Providers Reference

Provider Streaming Tools Vision Embeddings
OpenAI Yes Yes Yes Yes
Anthropic Claude Yes Yes Yes Yes
Google Gemini Yes Yes Yes Yes
xAI Grok Yes Yes Yes No
Mistral Yes Yes No Yes
DeepSeek Yes Yes No Yes
Ollama (local) Yes Yes Yes Yes*

*Embeddings depend on the loaded model

Environment Variables

Variable Purpose
AI_PROVIDER Default provider
OPENAI_API_KEY OpenAI credentials
OPENAI_MODEL OpenAI model override
ANTHROPIC_API_KEY Anthropic credentials
ANTHROPIC_MODEL Anthropic model override
GOOGLE_API_KEY Google credentials
GOOGLE_MODEL Google model override
XAI_API_KEY xAI Grok credentials
MISTRAL_API_KEY Mistral credentials
DEEPSEEK_API_KEY DeepSeek credentials
OLLAMA_BASE_URL Ollama endpoint

License

MIT


All versions of marwa-ai with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.9
memran/marwa-logger Version ^1.0
memran/marwa-error-handler Version ^1.1
memran/marwa-event Version ^0.2
psr/event-dispatcher Version ^1.0
league/container Version ^5.1
symfony/console Version ^7.3
memran/marwa-support Version ^1.3.1
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 memran/marwa-ai contains the following files

Loading the files please wait ...