Download the PHP package elqora/interactions without Composer

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

Elqora Interactions

This repository contains the PHP protocol package elqora/interactions which defines the authoritative wire protocol for Elqora frontend-host interactions.

Protocol Architecture

The Elqora Interaction System is designed in two complementary parts:

  1. PHP runtime package (elqora/interactions): The protocol authority. It defines what an interaction means, how it is serialized, and what constitutes a valid payload.
  2. React shadcn registry: The frontend host implementation. It resolves serialized wire payloads to React components and executors (e.g. rendering dialogue overlays, loading scripts, invoking exports).

By separating description from execution, PHP applications can coordinate complex UI transformations, client-side actions, and dynamic components without being coupled to frontend runtime quirks.


Installation

Install the package via Composer:


Stable Interaction Types

Type PHP Class Description
instructions Instructions Markdown instructions rendered by the frontend host using the resolved presentation.
qr_code QrCode Encoded raw text value or a canonical structured QR image representation.
redirect Redirect Browser or client-side application navigation.
script Script Order-significant script files to load prior to calling a controlled handler/global/module-export.
mount Mount Mount resolves a registered frontend mount-handler key. Source-based mount resolution may be introduced later through a discriminated resolver model.
component Component The React host resolves and imports the declared component source, selects the requested export, and renders it inside the existing React tree.

Flexible Payloads

The protocol enforces exact JSON types for flexible parameters:


QR Code Image Structure

The QR code image source is represented using a canonical structured shape:

Plain strings as QR image sources are not supported.


Presentation Layout Preferences

Supported presentations represent a layout preference (which the host may override):

Note: Redirect does not support presentation.


Usage Examples

1. Construction & Serialization

Every DTO is immutable (readonly) and self-validates upon construction.

2. Hydration

Hydrate raw payloads back to their original strongly-typed DTOs using InteractionFactory.


Quality Gate Checks

All changes should pass the validation scripts:


React shadcn Registry

The repository also distributes an editable React interactions frontend implementation through a shadcn registry:

For detailed information on React usage, activation state semantics, layout overrides, host security policies, and custom renderers, refer to the React Registry Documentation.


All versions of interactions with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-mbstring 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 elqora/interactions contains the following files

Loading the files please wait ...