Download the PHP package oguz-yilmaz/trammel without Composer

On this page you can find all versions of the php package oguz-yilmaz/trammel. 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 trammel

About Trammel

Handling exceptions is vital for all sorts of applications. Making it right and standardized increases the quality of your application as well as making it easy to reason about. In laravel there is not much configuration you can apply and there is only one place where you construct all your exceptions, that is the Handler.php. With the need of custom exception handling this file becomes pretty ugly real quick having if-else statements all over the place.This library provides default exception handling and standardized output formats for different types of exceptions (Validation exceptions, Ajax or Json exceptions or combined) as well as distict handlers for each where you can extend and customize.

Installation

composer require oguz-yilmaz/trammel

Version Compatibility

Laravel PHP Trammel
7.x 8.0+ 1.x

Exception handler types and default output formats

Trammel provides generic handlers for most situation. Each handler provides generic output formats that can be extended. See below for what they refer and what they offer as response format.

Usage

Default output formats

If you want to use default output formats you can simply extend Handler class with Trammel's BaseHandler class in app/Exception folder.

Customizing handlers

if you don't want to use default behaviour of a handler, you can extend it. First let's create a new folder under app/Exception called Handlers to keep our custom exception handlers. This will make it more tidy and clean.

Then you need to add these custom exception handlers to $handlers property of the App\Exception\Handler class comes from Oguz\Trammel\Exception\BaseHandler class.

How these exceptions will be triggered

So it's all great we have different kind of handlers for different kind of exceptions. But when exactly do we get those types of exceptions? Here is an example controller that will give you the idea about which exception types will be thrown in which situation.

To get detailed information for each exception type, see above.


All versions of trammel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version >= 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 oguz-yilmaz/trammel contains the following files

Loading the files please wait ....