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

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

X-Error replaces Laravel’s default error pages with a polished UI, optional exception details, and full localization support β€” while remaining simple and unobtrusive. The default layout is using Tailwind classes.

πŸ“¦ 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 the following Blade component:

This component is automatically available in all views.

🎨 Configuration

The configuration file is located at:

Layout

You may define a custom layout view. If set, you must manually include the component.

Example:

Exception Details

Control visibility of exception stack traces.

enabled – Enable or disable exception output title – Title shown above exception details permission – Permission required to view exceptions (null = all authenticated users)

Colors

By default, all error pages use a neutral color:

You may optionally define colors per HTTP status code, but this is not required.

Redirect Button

A redirect button is shown on all error pages except 503.

Set url to null to hide the button

🌍 Localization

Error titles and messages are fully translatable.

The package resolves translations using:

Example Translation File

Translations can be published and overridden as needed.

πŸ§ͺ Custom Layout Example

If you use your own layout, include the component manually or just use your own layout and error styling:

<x-error :code="$code" :title="$title" :message="$message" :color="$color" :exception="$exception" />

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

πŸ›‘ Best Practices

πŸ“„ License

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

❀️ Contributing

Contributions are welcome! Fork the repository Create a feature branch

Submit a pull request

⭐ 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 ...