Download the PHP package rawnoq/laravel-exceptions without Composer

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

Rawnod Laravel Exceptions

Latest Version PHP Version Laravel Version

A professional Laravel package for centralized API exception handling with unified response structure, status codes, and messages.

Features

Installation

Via Composer

Manual Installation

If you're installing manually, add the package to your composer.json:

Then run:

Configuration

Publish the configuration file:

This will create config/exceptions.php where you can customize exception handling behavior.

Setup

Automatic Registration (Recommended)

By default, the package automatically registers the exception handler. No manual configuration is required!

The handler will automatically work for all routes matching the api_pattern (default: api/*).

To disable automatic registration, set in your .env:

Manual Registration (Optional)

If you disabled automatic registration, you can manually register the exception handler in your bootstrap/app.php:

Supported Exceptions

The package handles the following exception types:

Usage

Once installed and configured, the exception handler will automatically catch and format all exceptions for API routes.

Language Files

The package includes built-in translations in English and Arabic. Translations are automatically loaded from the package.

Available Translation Keys

Customizing Translations

You can publish and customize the language files:

This will copy the language files to lang/vendor/exceptions/ where you can customize them.

Alternatively, you can override translations in your application's language files by creating files at:

Response Structure

All exceptions return a consistent JSON structure using the rawnoq/laravel-api-response package format:

Requirements

Optional Dependencies

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions, please open an issue on GitHub.

Links


All versions of laravel-exceptions with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
rawnoq/laravel-api-response Version ^1.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 rawnoq/laravel-exceptions contains the following files

Loading the files please wait ...