Download the PHP package hpwebdeveloper/laravel-failed-jobs without Composer

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

Build Status Latest Stable Version License

Laravel Failed Jobs

Introduction:

If you're running an application with a queue driver other than Redis or dispatch a job to a particular connection other than Redis, which is exclusively supported by Laravel Horizon, you might be missing out on the elegant features that Horizon offers. Laravel Horizon is known for its elegance and a wide range of implemented features. One of its standout features is its ability to present detailed information about failed job payloads and automatically load new failed jobs.

In your specific application, if you've been longing for a similar Horizon-like UI to monitor failed jobs, the Laravel-Failed-Jobs package has got you covered. This package streamlines the visualization of failed jobs, eliminating the need to connect to a database client and search through failed_jobs records to identify the cause of a job's failure.

Screenshot 2024-02-01 at 7 55 42 PM

Key Benefits:

As you correctly understood, it's important to note that the Laravel-Failed-Jobs package focuses solely on enhancing the visualization of failed jobs and does not offer managing of failed jobs or the comprehensive set of robust features found in Laravel Horizon.

I - Installation (basic mode):

If you have already installed Laravel Horizon, you can still install Laravel-Failed-Jobs without any conflict. Also it follows the same installation process as Laravel Horizon.

You may install Laravel-Failed-Jobs package into your project using the Composer package manager:

After installing Laravel-Failed-Jobs, publish the assets using the failedjobs:install Artisan command.

This command will automatically publish the failedjobs config file, FailedJobsServiceProvider service provider and also the resource view files into the public/vendor/failedjobs directory.

To upgrade the package, you need to use the following command after upgrading via composer:

You may need to modify the FailedJobsServiceProvider to determine who can access the dashboard in production environment.

Dashboard

The Laravel-Failed-Jobs dashboard is accessible through the /failedjobs route by default. However, if you wish to define a new path, you can do so by setting the FAILEDJOBS_PATH variable in the .env file.

Dashboard Authorization

Theapp/Providers/FailedJobsServiceProvider.php class applies Laravel Gate to determine who can access FailedJobs in non-local environments. You need to follow the same document of Horizon to secure the dashboard in production environment.

Screenshot 2024-02-01 at 7 54 17 PM

Screenshot 2024-02-01 at 7 55 27 PM

II - Installation (remote mode):

Remote mode enables access to the main application from a separate Laravel application, hosted on a distinct URL address, in both local and production environments.

Prepare package in both applications

To use this package in remote mode, you need to install the package in both main and remote applications.

You may install the Laravel-Failed-Jobs package into your project using the composer package manager:

Note: currently the remote feature is under feature/remote-connect branch.

Then install the assets using the failedjobs:install Artisan command.

Prepare the environments variables

In this mode you need to propertly configure the following environment variables in both applications:

axios_base_url is the base URL of the main application which you have to set in the local/remote application. Setting this variable is mandatory in remote mode.

server_access_token is the access token to access the main application from the remote application. It is mandatory to set this variable in the main application .env file. It is mandatory to set dashboard_access_token variable in the remote application equal to the value of the server_access_token in the main application.

Secure the endpoint

As in the failedjobs config file defined, the dashboard is accessible through the /failedjobs route by default. But it is recommended to change it when using the package in the remote mode.

It is simply possible by setting the FAILEDJOBS_PATH variable in the .env file of both applications with a hash value and then define that value as a path in the cors config file of the main application.

Modifying the cors config file in the main application is required because in the remote mode we are dealing with two different applications served in two different URLs. Laravel automatically respond to Cross-Origin Resource Sharing (CORS) OPTIONS HTTP requests with values that you configure in the cors config file. Read more about CORS.

Hence in summary

Then access the dashboard using the following URL: http://your-local-application.test/failedjobs_4a5b6c7d.

As your main application is configured like APP_ENV=production the Failed-Jobs dashboard is not accessible in the production environment. While you can access the dashboard in the local environment through this URL: http://your-local-application.test/failedjobs_4a5b6c7d.

Of course you can access the dashboard in the main application if you set the axios_base_url variable in the main application .env file as well.

Licensing

This repository uses two licenses:


All versions of laravel-failed-jobs with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
ext-json Version *
ext-pcntl Version *
ext-posix Version *
illuminate/contracts Version ^8.17|^9.0|^10.0|^11.0
illuminate/queue Version ^8.17|^9.0|^10.0|^11.0
illuminate/support Version ^8.17|^9.0|^10.0|^11.0
nesbot/carbon Version ^2.17
ramsey/uuid Version ^4.0
symfony/process Version ^5.0|^6.0|^7.0
symfony/error-handler Version ^5.0|^6.0|^7.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 hpwebdeveloper/laravel-failed-jobs contains the following files

Loading the files please wait ....