Download the PHP package vkm-apps/x-error without Composer

On this page you can find all versions of the php package vkm-apps/x-error. 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 x-error

X-Error

Latest Version on Packagist Total Downloads

A clean, customizable, and developer-friendly error page system for Laravel.

X-Error replaces Laravelโ€™s default error pages with a polished, fully-responsive UI featuring automatic dark mode, detailed (and secure) exception inspector, and comprehensive localization support โ€” while remaining completely unobtrusive.


๐ŸŒ Available Languages

X-Error comes pre-translated out-of-the-box for 25 languages:


๐Ÿ’ก Why X-Error?

Laravel is fantastic, but its default error pages can feel plain, hard to translate dynamically, and difficult to customize securely. X-Error bridges this gap:


๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

Install the package via Composer:

Laravel will automatically discover and register the service provider.

โš™๏ธ Publishing Assets

You may publish the package resources as needed.

Publish Configuration

Publish Views (optional)

Publish Translations (optional)

๐Ÿง  How It Works

The package registers a custom exception handler that renders error pages using the x-error views.

During rendering, the following data is passed to the error view:

These variables are always available โ€” including when using your own custom layout.

๐Ÿงฉ Blade Component

The package registers a reusable component that is automatically available in all views:

Component Props & Slots

You can customize the <x-vkm-error /> component with the following properties:

Prop / Slot Type Description
code string/int The HTTP status code (e.g. 404, 500).
title string The error title.
message string The error description message.
color string CSS class for text color (e.g. text-red-500).
exception Throwable/string Exception stack trace to display inside the accordion.
logo Slot Custom slot to place a logo/brand image at the top.
button Slot Custom slot to override the redirect button.
Default Slot Slot Any custom HTML to append below the error message.

Component Example with Slots

๐ŸŽจ Configuration

The configuration file is published at config/x-error.php.

Layout

You may define a custom layout view. If set, you must manually include the <x-vkm-error /> component in your layout file.

Exception Details

Control visibility of exception stack traces.

Colors

Define colors mapped to HTTP status codes (Tailwind CSS classes recommended).

Redirect Button

A redirect button shown on all error pages (except status code 503).

๐ŸŒ Localization

Error titles and messages are fully translatable. The package resolves translations using:

Example Translation File Structure (lang/vendor/x-error/{locale}/errors.php):

Translations can be published using the --tag="x-error-lang" flag and customized as needed.

๐Ÿงช Custom Layout Example

If you define a custom layout view in config/x-error.php (e.g. layout => 'errors.custom'), your layout file (resources/views/errors/custom.blade.php) should include the component to render the details:

All values are automatically injected by the exception handler into your custom view.

๐Ÿ›ก Best Practices

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT license.

โญ Credits

Created with โค๏ธ for the Laravel community.


All versions of x-error with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 vkm-apps/x-error contains the following files

Loading the files please wait ...