Download the PHP package carmelosantana/coqui-toolkit-webserver without Composer

On this page you can find all versions of the php package carmelosantana/coqui-toolkit-webserver. 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 coqui-toolkit-webserver

Coqui Web Server Toolkit

Web server toolkit for Coqui. Gives agents the ability to serve workspace files over HTTP using PHP's built-in web server, with gzip compression, URL rewrites, directory listings, and structured request logging.

Requirements

Installation

When installed alongside Coqui, the toolkit is auto-discovered via Composer's extra.php-agents.toolkits -- no manual registration needed.

Tools Provided

webserver

Manage web server instances that serve workspace files over HTTP.

Parameter Type Required Description
action enum Yes start, stop, restart, status, list, stop_all
docroot string For start Directory to serve, relative to workspace (e.g. "public", "site/build")
port integer No Port to listen on (auto-detected from 8000 if omitted)
host string No Bind address (default: 127.0.0.1)
name string No Server instance name (auto-generated if omitted)
gzip boolean No Enable gzip compression (default: true)
directory_listing boolean No Enable directory listings (default: false)
php_enabled boolean No Allow PHP file execution (default: true)
rewrites object No URL rewrite rules as regex pattern to replacement map

webserver_log

Query request logs for debugging and monitoring.

Parameter Type Required Description
action enum Yes tail, search, stats, clear
name string No Server instance name (default server if omitted)
limit integer No Max entries to return (default: 20 for tail, 50 for search)
path string No Filter by request path (partial match, for search)
method enum No Filter by HTTP method (GET, POST, etc., for search)
status integer No Filter by status code (for search)

Agent Workflow

  1. Create content files in a workspace directory
  2. webserver action start with docroot pointing to that directory
  3. Access the returned URL in a browser or with browser tools
  4. webserver_log action tail to check incoming requests
  5. webserver_log action stats to see traffic patterns
  6. webserver action stop when done

Features

Gzip Compression

Enabled by default. Compresses text-based responses (HTML, CSS, JS, JSON, SVG, XML) when the client accepts gzip encoding. Only compresses files larger than 1KB.

URL Rewrites

Pass regex-based rewrite rules to transform URLs before file resolution. Common patterns:

Only the first matching rule is applied per request.

Directory Listings

Disabled by default. When enabled, the server generates a clean HTML directory listing when a directory is requested and no index file exists. Hidden files (starting with .) are excluded.

PHP Execution

Enabled by default. The server executes .php files placed in the docroot using PHP's built-in server handler. When disabled, .php files return 403 Forbidden.

Request Logging

Every request is logged to a per-instance SQLite database at .workspace/webserver/{name}.db. Logs include timestamp, method, path, query string, status code, response size, duration, user agent, and client IP.

Multiple Servers

Run multiple servers concurrently by specifying different name values. Each server has its own port, docroot, configuration, and log database.

Security

Architecture

Workspace Files

At runtime, server data is stored in .workspace/webserver/:

Standalone Usage

Development

Run tests

Static analysis

License

MIT


All versions of coqui-toolkit-webserver with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
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 carmelosantana/coqui-toolkit-webserver contains the following files

Loading the files please wait ...