PHPackages                             danilovl/async-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. danilovl/async-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

danilovl/async-bundle
=====================

Symfony bundle provides simple delayed function call.

v1.0.1(4mo ago)03871MITPHPPHP ^8.5

Since Apr 18Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/danilovl/async-bundle)[ Packagist](https://packagist.org/packages/danilovl/async-bundle)[ RSS](/packages/danilovl-async-bundle/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (7)Versions (18)Used By (1)

[![phpunit](https://github.com/danilovl/async-bundle/actions/workflows/phpunit.yml/badge.svg)](https://github.com/danilovl/async-bundle/actions/workflows/phpunit.yml)[![downloads](https://camo.githubusercontent.com/0ef358d26fc5a779bb1e93c844fae61b6d07bd670f6eab56d046aed6878d16bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e696c6f766c2f6173796e632d62756e646c65)](https://packagist.org/packages/danilovl/async-bundle)[![latest Stable Version](https://camo.githubusercontent.com/0a09bd3f03db709c9225f8269c86c401e11bca4cdf595f261c31f458d5a2e9ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e696c6f766c2f6173796e632d62756e646c65)](https://packagist.org/packages/danilovl/async-bundle)[![license](https://camo.githubusercontent.com/f82ad9d39b87650ba62f6dd2ed24f18303f40d09dbb374eec42206a0baacfe3f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64616e696c6f766c2f6173796e632d62756e646c65)](https://packagist.org/packages/danilovl/async-bundle)

AsyncBundle
===========

[](#asyncbundle)

About
-----

[](#about)

Symfony bundle provides simple delayed function call in `AsyncListener` after symfony send response.

The user gets a response faster because all unnecessary logic is processed later. For example: logging, creating rabbitmq queues or other unnecessary things.

[![Alt text](/.github/readme/profiler_before.png?raw=true "Profiler before")](/.github/readme/profiler_before.png?raw=true)

The user receives a response from the server much earlier and does not wait until unnecessary processes are finished.

[![Alt text](/.github/readme/profiler_after.png?raw=true "Profiler after")](/.github/readme/profiler_after.png?raw=true)

### Requirements

[](#requirements)

- PHP 8.5 or higher
- Symfony 8.0 or higher

### 1. Installation

[](#1-installation)

Install `danilovl/async-bundle` package by Composer:

```
composer require danilovl/async-bundle
```

Add the `AsyncBundle` to your application's bundles if does not add automatically:

```
