Download the PHP package ineersa/hatfield-extension-api without Composer

On this page you can find all versions of the php package ineersa/hatfield-extension-api. 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 hatfield-extension-api

Hatfield Extension API

Public Composer contracts for Hatfield project extensions.

Package ineersa/hatfield-extension-api
Namespace Ineersa\Hatfield\ExtensionApi\
PHP >=8.3
Requires symfony/tui: ^8.0, symfony/config: ^8.1

This package is the stable surface extensions depend on. Host Hatfield provides a concrete ExtensionApiInterface implementation at runtime; extensions should depend only on these contracts, not on CodingAgent, AgentCore, the in-repo TUI layer (Ineersa\Tui\*), Symfony DI, Symfony AI, settings internals, tool registry, runtime adapters, or packaging code.

What it provides

Approved Symfony TUI dependency: generic TUI contracts intentionally depend on Symfony TUI public widget types (Symfony\Component\Tui\Widget\AbstractWidget, events, input) so extensions can mount their own overlays without Hatfield adding feature-shaped runtime ports. That is part of the public UI extension API — not a leak of Hatfield internals.

Feature-specific UX (for example file rewind) stays in .hatfield/extensions/<name>/ and must not add feature-shaped types to this package.

Extensions may implement ConfigurableExtensionInterface::getConfiguration() to expose their own native Symfony Config ConfigurationInterface without runtime registration. The tree root names the extensions.settings key; native node types, info, defaults, and validation describe the editable settings. Set the native node attribute hatfield.model_picker to true for a configured generation-model picker. Packages identify their extension entry class in composer.json under extra.hatfield.extension; configuration fields and validation stay in the extension.

Install

After a Hatfield v* release (and optionally Packagist):

Prefer released tags. In the Hatfield monorepo, root and .hatfield/extensions Composer roots path-require this package from .hatfield/extensions/extension-api.

Source of truth

ineersa/agent-core is the authoritative monorepo. This GitHub repository is a read-only release mirror: each Hatfield vX.Y.Z tag updates main and publishes the same tag here. Do not open feature PRs against the mirror.

See monorepo docs:


All versions of hatfield-extension-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
symfony/config Version ^8.1
symfony/tui Version ^8.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 ineersa/hatfield-extension-api contains the following files

Loading the files please wait ...