Download the PHP package medz/stream-wrapper-interface without Composer

On this page you can find all versions of the php package medz/stream-wrapper-interface. 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 stream-wrapper-interface

cf-gait-workflow

Semantic tracing helpers for Cloudflare Workflows.

cf-gait-workflow keeps Cloudflare Workflows as the source of execution truth while adding typed lifecycle events around workflow steps, sleeps, and event waits. Use it when you want workflow history to stay native, but also need structured telemetry for logs, traces, metrics, or custom observers.

Install

Quick Start

defineGaitWorkflowEntrypoint creates a normal Cloudflare WorkflowEntrypoint. The only difference is that your run plan receives a gait helper next to the original workflow event.

Emitter

Gait events are delivered to an exported Worker entrypoint. By default the workflow looks for an export named GaitEmitter.

The callback is typed as the full gait event union. Every emitted context has a numeric timestamp field. When events are emitted by gait.step, gait.sleep, or gait.event, the timestamp is added automatically with Date.now().

If you want a different export name, pass it to defineGaitWorkflowEntrypoint:

Gait Helper

The helper currently exposes:

gait.step

gait.step mirrors Cloudflare step.do. It preserves the original step name, config, retry behavior, callback context, and rollback options.

Events:

Step failures are not wrapped. The original error is rethrown so native Workflow retry behavior is preserved.

gait.sleep

gait.sleep delegates to Cloudflare step.sleep or step.sleepUntil, depending on the input.

Events:

Sleep failures are wrapped in NonRetryableWithRawError. The wrapper exposes the original error through .raw.

gait.event

gait.event waits for a Cloudflare Workflow event and emits lifecycle telemetry around that wait.

The actual wait still uses step.waitForEvent(name, options). Gait also wraps the wait in a durable step named gait:event/<name> so event:start, event:complete, and event:error stay inside a Workflow step boundary during replay or restart.

The emitted step object keeps the logical event name:

The count is scoped by logical event name because the wrapper step name is also derived from that name. For example, approval, then review, then approval emits counts 1, 1, and 2.

Event wait failures are wrapped in NonRetryableWithRawError. The wrapper exposes the original error through .raw.

Event Types

defineGaitEmitter infers the event name and context union for its callback, so most applications do not need manual annotations.

Current event names:

All contexts include:

step:* events include the native Cloudflare WorkflowStepContext fields. sleep:start includes params. event:start includes options. *:complete events include output where an output exists. *:error events include error.

Manual Integration

If you already have a WorkflowEntrypoint class, use createGaitWorkflow inside run:

Pass binding when the emitter export is not GaitEmitter:

If the emitter export cannot be found, gait throws a Cloudflare NonRetryableError.

Cloudflare Setup

Export the emitter and workflow from your Worker:

Then bind the workflow in Wrangler as you would for any Cloudflare Workflow. See playground/worker.ts and playground/wrangler.jsonc for a runnable example.

Development

Run the playground Worker:

License

MIT. See LICENSE.


All versions of stream-wrapper-interface with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
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 medz/stream-wrapper-interface contains the following files

Loading the files please wait ...