Download the PHP package justbetter/laravel-magento-async without Composer

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

Laravel Magento Async

Tests Coverage Analysis Total downloads

This package provides a way to store async/bulk requests to Magento to later retrieve the status of the operation and handle the status. It works by storing the send async request with the operations in the database and retrieving the statuses periodically.

Once the status of an operation changes an event is fired. It is possible to relate any model to an operation which makes it possible to know where the operation originates from and handle the operation result.

Installation

This package is an extension of justbetter/laravel-magento-client. Be sure to install and configure that package first.

Require this package:

Optionally, publish the configuration file of this package to edit the queue and cleanup time.

Scheduler

In order to update and cleanup the statuses of the async operation two commands are required in your scheduler:

Usage

This package provides a MagentoAsync client to send requests. An event will later be dispatched by the package to inform the application that the operation has been processed You can listen to this event to handle the operation result.

Sending the request

To send an async (bulk) request using this package use the MagentoAsync client:

The subjects array is a list of models, the indexes have to match with the payload in order to bind Magento's operation id with the correct model.

When sending non-bulk requests a ->subject() method is available:

Retrieving the operation status

This package provides an event that dispatches for all operations: \JustBetter\MagentoAsync\Events\BulkOperationStatusEvent. The event includes the bulk operation that has been updated for you to handle the response.

This event dispatches for all operation changes, you can use the operation model to determine what endpoint was called

If you have bound a subject the package provides an abstract listener \JustBetter\MagentoAsync\Listeners\BulkOperationStatusListener. This class provides a way to filter on a specific model and ignore the Open status.

Example implementation:

Quality

To ensure the quality of this package, run the following command:

This will execute three tasks:

  1. Makes sure all tests are passed
  2. Checks for any issues using static code analysis
  3. Checks if the code is correctly formatted

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-magento-async with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.5
laravel/framework Version ^11.0
justbetter/laravel-magento-client Version ^2.4
justbetter/laravel-magento-webhooks Version ^2.1
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 justbetter/laravel-magento-async contains the following files

Loading the files please wait ....