Download the PHP package infinitypaul/idempotency-laravel without Composer

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

Idempotency for Laravel

Latest Version on Packagist

A production-ready Laravel middleware for implementing idempotency in your API requests. Safely retry API calls without worrying about duplicate processing.

What Is Idempotency?

Idempotency ensures that an API operation produces the same result regardless of how many times it is executed. This is critical for payment processing, order submissions, and other operations where duplicate execution could have unintended consequences.

Features

Installation

You can install the package via composer:

Configuration

This will create a config/idempotency.php file with the following options:

Usage

Add the middleware to your routes or route groups in your routes/api.php file:

Using With Requests

To make an idempotent request, clients should include an Idempotency-Key header with a unique UUID:

If the same idempotency key is used again with the same payload, the original response will be returned without re-executing the operation.

Response Headers

The middleware adds these headers to responses:

Telemetry

The package provides built-in telemetry through various service. The telemetry records:

Telemetry Drivers

I intend to add more drivers in my free time

Custom Driver

To use a custom telemetry driver, implement the TelemetryDriver interface:

Then update your configuration:

Advanced Usage

Custom Events

The package dispatches an events that you can listen for:


All versions of idempotency-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/events Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
inspector-apm/inspector-laravel Version ^4.11
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 infinitypaul/idempotency-laravel contains the following files

Loading the files please wait ....