Download the PHP package evolvex/laravel-agent-fabric without Composer

On this page you can find all versions of the php package evolvex/laravel-agent-fabric. 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-agent-fabric

Laravel Agent Fabric

Production AI Agent Application Runtime for Laravel.

Laravel Agent Fabric sits above the official laravel/ai SDK. Laravel AI owns provider/model access; Agent Fabric owns the production concerns that determine whether an AI agent is safe, governable, repeatable, auditable, and useful inside a real business application.

The V2 architecture is intentionally vendor-neutral and domain-extensible. The core does not hard-code Shopify, Salesforce, WhatsApp, OpenAI, Claude, Gemini, or any other vendor. Instead it exposes stable contracts for capabilities, connectors, channels, workflows, tools, protocols, policies, deployment, knowledge, memory, and observability.

What V2 includes

Production hardening in 0.3

The 0.3 line focuses on correctness under failure, concurrency, external side effects, multi-tenant governance, and operations rather than adding another thin agent abstraction.

Durable execution and messaging

Model and context reliability

Security and governance

Knowledge and retrieval

Agent Fabric ships a database-backed vector store plus transport adapters for Qdrant, Pinecone, and OpenSearch. Retrieval combines semantic similarity, BM25-style lexical relevance, source authority, ACL/lifecycle checks, and prompt-injection risk. Large installations can replace the store through the VectorStore contract without changing the agent runtime.

Observability and operations

See docs/RELIABILITY.md, docs/OPERATIONS.md, and docs/VECTOR-STORES.md for production guidance.

Requirements

Install

Configure models in config/agent-fabric.php:

Provider credentials remain configured through Laravel AI.

Core principle: do not train on live database state

Agent Fabric separates four concerns:

  1. Knowledge / RAG for relatively stable content such as policies, product descriptions, documentation, FAQs, and manuals.
  2. Runtime tools/connectors for authoritative live state such as balances, inventory, orders, payments, bookings, or account status.
  3. Instructions, examples, skills, workflows, and policies for behavior and business rules.
  4. Fine-tuning adapters only for stable narrow patterns where a provider actually supports fine tuning.

A wallet balance, stock quantity, order status, or payment state should be read at runtime, not baked into a model.

Define an agent

Register it:

Run an agent

For replay/shadow/simulation:

Governed command and remote-operation tools are not executed in simulation mode.

Governed tools

The original AgentTool contract remains supported for backward compatibility. New production tools should extend one of the typed bases:

Example:

RemoteOperationTool defaults to no blind automatic retry and explicitly requires reconciliation when the result is ambiguous.

Human approval

Financial, destructive, and privileged tools require approval by default.

Approval is bound to the exact run, tenant, tool, and canonical arguments. It cannot be reused for a different call.

Deterministic workflows

Do not use an LLM loop as the transaction coordinator for sensitive operations. Put business-critical sequences in deterministic workflows.

Run it:

The workflow engine persists runs and steps, enforces dependencies, pauses at human/approval gates, supports resume/cancel, and compensates completed steps in reverse order when configured.

Connector SDK

A connector exposes a stable business integration contract without granting arbitrary database or HTTP access to the model.

The built-in EloquentConnector is intentionally query-only. Writes should be explicit governed tools or workflows.

This prevents the anti-pattern of letting an LLM generate arbitrary SQL.

Plugin and Domain Pack SDK

Plugins can register agents, connectors, channels, and workflows:

This is the intended way to support ecommerce, CRM, booking, HR, finance, CMS, real estate, or other verticals without turning the core package into a vendor-specific monolith.

Channels and multimodal input

A channel normalizes provider-specific payloads into ConversationEnvelope:

Adapters for WhatsApp, Slack, Teams, Telegram, voice, or proprietary channels should live in plugins/packs.

MCP

Use McpClient to connect to remote MCP transports and McpAgentTool to expose an MCP tool through Agent Fabric governance.

For local exposure, LocalMcpServer maps a ToolRegistry to MCP-style tool discovery/calls while preserving ToolExecutor authorization, approvals, idempotency, and evidence.

Transport/authentication remain adapter concerns. The core does not pretend every MCP deployment uses the same HTTP/OAuth topology.

A2A

A2AClient and A2AAgentTool allow delegation to remote agents. LocalA2AGateway exposes local agent cards and delegates tasks to another Agent Fabric agent with explicit tenant/actor context.

MCP is for tool/resource interoperability; A2A is for agent-to-agent delegation. They are separate boundaries.

Knowledge, provenance, and entity references

Knowledge documents may include authority and provenance:

The portable retriever scores semantic similarity, lexical relevance, and source authority. Large installations should bind Retriever to pgvector, Qdrant, Pinecone, OpenSearch, or another native vector engine.

The built-in entity store provides tenant-scoped entity/relation primitives without forcing a graph database.

Trust boundary / prompt injection defense

Agent Fabric treats retrieved content, web content, remote tool responses, and user content as data—not as system instructions.

ContextItem + PromptBoundary preserve source/trust metadata. Tools still enforce authorization in PHP even if the model is manipulated.

Prompt injection cannot be solved with one regex. The security model is layered:

Deployment, replay, shadow, and release gates

Register agent versions using a deterministic fingerprint, then deploy active/canary/shadow versions through DatabaseDeploymentManager.

Replay an existing run with side effects disabled:

ShadowComparator compares status, answer, and tool trajectory between primary and candidate results. For high-scale production shadow execution, connect this boundary to your dedicated shadow runtime infrastructure.

Model governance

Model routing can reject a provider/model before quality scoring if it violates data policy:

A model profile may declare:

Observability

The runtime records spans for:

TraceRecorder is a contract. The default database implementation writes ai_trace_spans; replace it with an OpenTelemetry exporter, Datadog, Sentry, or your tracing stack without changing agents.

Evaluation

The package includes evaluation primitives and deployment release gates. Evaluate business outcomes, not only semantic answer similarity:

Do not use an LLM judge as the only release criterion.

Artisan commands

Queues

Recommended queues:

Never run bulk embedding ingestion on the same worker pool that serves interactive conversations.

Architecture boundaries

The core deliberately does not implement vendor-specific integrations for every service. Those belong in plugins/domain packs. The core owns the invariants that must stay consistent across all sites:

This is how Agent Fabric can support many different websites without becoming an unmaintainable God Package.

Testing

The dependency-free smoke test covers core parsing, schema validation, security, training profiles, trust boundaries, multimodal envelopes, release gates, and workflow definitions.

See:

What Agent Fabric does not claim

No generic package can guarantee that every LLM answer is correct or support every external vendor without an adapter. Agent Fabric instead makes model behavior constrained, observable, testable, auditable, and replaceable while keeping business authority in Laravel code.


All versions of laravel-agent-fabric with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-mbstring Version *
illuminate/cache Version ^12.0|^13.0
illuminate/console Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/events Version ^12.0|^13.0
illuminate/queue Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
laravel/ai Version ^0.11
illuminate/filesystem Version ^12.0|^13.0
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 evolvex/laravel-agent-fabric contains the following files

Loading the files please wait ...