Download the PHP package agent-state-language/asl without Composer

On this page you can find all versions of the php package agent-state-language/asl. 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 asl

Agent State Language (ASL)

A JSON-based domain-specific language for defining configurable, composable AI agent workflows.

PHP 8.1+

Overview

Agent State Language extends the concepts of AWS Step Functions' Amazon States Language with agent-native primitives for:

Quick Start

Installation

Define a Workflow

Create workflow.asl.json:

Run It

State Types

Core States (AWS ASL Compatible)

State Description
Task Execute an agent with parameters
Choice Conditional branching
Map Iterate over arrays
Parallel Execute branches concurrently
Pass Transform data
Wait Pause execution
Succeed End successfully
Fail End with failure

Agent-Native States (ASL Extensions)

State Description
Approval Human-in-the-loop gate
Debate Multi-agent deliberation
Checkpoint Save/resume point

Agent-Native Extensions

Memory Block

Context Block

Tools Block

Budget Block

Approval State

Debate State

Documentation

Examples

Example Description
Task Breakdown Recursive task decomposition
Code Review Multi-agent review with approval
Research Assistant Web search and synthesis
Customer Support Intent routing and escalation
Content Pipeline Generation and moderation

Tutorial Path

Core Tutorials

  1. Hello World - Your first workflow
  2. Simple Workflow - Sequential states
  3. Conditional Logic - Choice states
  4. Parallel Execution - Concurrent branches
  5. Recursive Workflows - Map iterations
  6. Memory & Context - State persistence
  7. Tool Orchestration - Tool permissions
  8. Human Approval - Human-in-the-loop
  9. Multi-Agent Debate - Agent collaboration
  10. Cost Management - Budget controls
  11. Error Handling - Retry and catch
  12. Building Skills - Composition patterns

claude-php-agent Integration

  1. Integrating Claude PHP Agent - Wrapper pattern for ASL
  2. Tool-Enabled Agent Workflows - Tools in workflows
  3. Multi-Agent Orchestration - Parallel agent execution
  4. Loop Strategies in Workflows - ReAct, Reflection, Plan-Execute
  5. RAG-Enhanced Workflows - Knowledge-augmented agents

Requirements

License

MIT License - see LICENSE for details.

Contributing

Contributions are welcome! Please read our Contributing Guide for details.

Related Projects

Integration with claude-php-agent

ASL can be combined with claude-php-agent for advanced AI agent workflows:

See Tutorial 13: Integrating Claude PHP Agent for complete integration guide.


All versions of asl with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
psr/log Version ^3.0
ext-json Version *
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 agent-state-language/asl contains the following files

Loading the files please wait ...