Download the PHP package dealnews/inngest-php-sdk without Composer

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

Inngest PHP SDK

Unofficial PHP SDK for Inngest - Build event-driven workflows with durable execution.

Installation

Requirements

Features

Quick Start

1. Create an Inngest Client

2. Define a Function

3. Serve Functions

4. Send Events

Using Steps

Steps enable you to break your function into retriable blocks:

Wait for Events

Invoke Other Functions

Send Events from a Step

HTTP Fetch as a Step

Configuration

The SDK uses environment variables for configuration:

Or configure programmatically:

Error Handling

Non-Retriable Errors

Retry After Specific Time

Cron Triggers

Concurrency Control

Limit how many steps can run simultaneously across all function runs. Useful for rate-limiting external APIs, managing resources, or preventing overwhelming downstream services.

Basic Limit

Per-User Limits

Multi-Level Limits

Concurrency Options

Heads-up: Maximum of 2 concurrency configurations per function.

See examples/concurrency.php for more examples.

Priority

Dynamically prioritize function runs based on event data. Higher priority runs execute ahead of lower priority ones within the same function queue.

Basic Priority

Conditional Priority

Delayed Priority

Priority Options

How it works: When a function run is enqueued, Inngest evaluates the expression using the event data. The result adjusts the run's position in the queue relative to other pending runs.

Heads-up:

See Inngest Priority Documentation for more details.

Debounce

Delay function execution until events stop arriving for a specified period. Prevents wasted work when functions might be triggered rapidly in succession (user input, webhook floods, frequent updates).

The function runs once using the last event received as input data.

Basic Debounce

Per-Key Debounce

With Timeout

Complex Key Expression

Debounce Options

How it works:

  1. First event starts the debounce period
  2. Each new matching event resets the period timer
  3. Function runs when period expires with no new events
  4. If timeout is set, function runs after timeout regardless of new events

Use cases:

Heads-up:

See Inngest Debounce Documentation for details.

Singleton

Ensure only a single run of a function (or per unique key) is executing at a time. Prevents duplicate work, race conditions, and ensures sequential processing of events.

Basic Singleton - Skip Mode

Per-User Singleton

Cancel Mode

Complex Key Expression

Singleton Options

How It Works

Skip Mode:

  1. First event starts the function run
  2. While running, new matching events are skipped/discarded
  3. Function completes with first event's data
  4. Next event can then start a new run

Cancel Mode:

  1. First event starts the function run
  2. New matching event cancels the in-progress run
  3. New run starts immediately with latest event
  4. Rapid events may cause some to be skipped (debounce-like)

When to Use Each Mode

Use Skip Mode when:

Use Cancel Mode when:

Use Cases

Compatibility

Works with:

Does not work with:

Heads-up:

See Inngest Singleton Documentation for details.

Rate Limiting

Set a hard limit on how many function runs can start within a time period. Events exceeding the limit are skipped (not queued). Uses the Generic Cell Rate Algorithm (GCRA) for smooth distribution.

Basic Rate Limit

Per-User Rate Limiting

Per-Customer and Region

Rate Limit Options

How It Works

  1. Uses Generic Cell Rate Algorithm (GCRA) for smooth distribution
  2. Events exceeding limit are skipped/discarded (lossy behavior)
  3. Period begins when first matching event is received
  4. Each unique key value has its own rate limit tracker

Use Cases

Compatibility

Works with:

Does not work with:

Heads-up:

See Inngest Rate Limiting Documentation for details.

Throttling

Limit how many function runs can start within a time period, with excess runs enqueued for future execution (FIFO). Unlike rate limiting which skips events, throttling ensures no data loss.

Basic Throttle

With Burst Support

Per-User Throttling

Complex Key Expression

Throttle Options

How It Works

  1. Uses Generic Cell Rate Algorithm (GCRA)
  2. Breaks period into windows based on limit
  3. Events exceeding limit are enqueued (FIFO) for future execution
  4. Burst parameter allows temporary spikes
  5. Each unique key value has its own throttle tracker

FIFO Behavior

When the limit is reached:

  1. Excess events are added to a queue (First In, First Out)
  2. As capacity becomes available, queued events execute in order
  3. No events are lost (unlike rate limiting)

Burst Parameter

The burst parameter handles traffic spikes:

Use Cases

Throttle vs Rate Limit

Feature Throttle Rate Limit
Excess events Enqueued (FIFO) Skipped
Data loss No ✅ Yes (lossy) ❌
Max period 7 days 24 hours
Burst support Yes ✅ No
Use case Process all events Hard limits

Compatibility

Works with:

Does not work with:

Heads-up:

See Inngest Throttling Documentation for details.

Checkpointing

Checkpointing allows the SDK to execute multiple steps within a single HTTP invocation by persisting step results to Inngest in the background. This reduces round-trip overhead for functions with many fast steps.

Three static presets are available:

Or configure manually:

Middleware

Middleware hooks into the function execution lifecycle for logging, monitoring, input/output transformation, and event interception.

Available lifecycle hooks (all optional):

Hook When it fires
transformInput() Before handler; can mutate memoized step data
afterMemoization() When first encountering an unmemoized step
beforeExecution() Immediately before handler runs
afterExecution() Immediately after handler returns
transformOutput() Before response building; can mutate result/error
beforeResponse() Before building the response array
beforeSendEvents() Before events are sent via the client
afterSendEvents() After events have been sent

Development

The SDK follows PSR standards and uses:

Testing

Resources


All versions of inngest-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-hash Version *
ext-json Version *
psr/http-client Version ^1.0
psr/http-message Version ^1.0|^2.0
psr/log Version ^2.0|^3.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 dealnews/inngest-php-sdk contains the following files

Loading the files please wait ...