Download the PHP package timacdonald/pulse-validation-errors without Composer

On this page you can find all versions of the php package timacdonald/pulse-validation-errors. 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 pulse-validation-errors

Validation errors card for Laravel Pulse

A card for Laravel Pulse to show validation errors impacting users.

Validation errors card for Laravel Pulse

Installation

First, install the package via composer:

Next, add the recorder to your config/pulse.php:

Next, add the card to your resources/views/vendor/pulse/dashboard.php:

Finally, get to improving your user experience. At LaraconUS I gave a talk on how much our validation sucks. If you are here, you likely also care about how your users experience validation errors on your app, so I'd love you to give it a watch.

Features

Ignore specific error messages

You may ignore specific endpoints via the recorders ignore key, however in some situations you may need more complex ignore rules. You can use Pulse's built in Pulse::filter method to achieve this.

Here is an example where we are ignore a specific error message:

Capture validation errors for custom response formats

If you are returning custom response formats, you may see __laravel_unknown in the dashboard instead of the input names and error messages. This is because the package parses the response body to determine the validation errors. When the body is in an unrecognised format it is unable to parse the keys and messages from the response.

You should instead dispatch the ValidationExceptionOccurred event to pass the validation messages to the card's recorder. You may do this wherever you are converting your exceptions into responses. This usually happens in the app/Exceptions/Handler:


All versions of pulse-validation-errors with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/pulse Version ^1.2
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 timacdonald/pulse-validation-errors contains the following files

Loading the files please wait ....