Download the PHP package tjovaisas/delayed-event-bundle without Composer

On this page you can find all versions of the php package tjovaisas/delayed-event-bundle. 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 delayed-event-bundle

Delayed Event Bundle

Latest Version on Packagist PHPUnit Total Downloads

Symfony bundle to handle post flush doctrine event in an usual event manner

Why ?

Symfony already offers great way to dispatch events to predefined subscribers. This bundle extends that functionality to let listeners receive a dispatched event only after flush has been called. There are a few reasons for that:

Installation

Register the bundle:

Register bundle into config/bundles.php:

Usage

Bundle can be configured either using service's configuration's definition or by using attributes:

or on classes method (only for Symfony ^6.0):

Caviats

There is no easy way to know if an entity already appears in the database after the changes if transaction is being used.

Due to doctrine's default behavior using transactions, first action being used is flush and later on commit. That means that listener may get event with data that already has database generated fields (e.g. id), but still may not be 100% in the database. Transactions are being sealed only after commit has been called and if this action fails, changes will not appear in the database and listener wouldn't know that.

Semantic versioning

This bundle follows semantic versioning.

Public API of this bundle (in other words, you should only use these features if you want to easily update to new versions):

For example, if only class method is marked with @api, you should not extend that class, as constructor could change in any release.

See Symfony BC rules for basic information about what can be changed and what not in the API. Keep in mind, that in this bundle everything is @internal by default.

Running tests

Contributing

Feel free to create issues and give pull requests.

You can check code style issues using this command:


All versions of delayed-event-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
doctrine/doctrine-bundle Version ^2.3
doctrine/orm Version ^2.7
symfony/config Version ^5.3 || ^6.0
symfony/dependency-injection Version ^5.3 || ^6.0
symfony/event-dispatcher Version ^5.3 || ^6.0
symfony/framework-bundle Version ^5.3 || ^6.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 tjovaisas/delayed-event-bundle contains the following files

Loading the files please wait ....