Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aurimasniekis/throws


https://github.com/aurimasniekis/throws

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Throws

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

PHP Library which provides functions which **Throws** exception

## Install

Via Composer

```bash
$ composer require aurimasniekis/throws
```

## Usage

It is pretty simple all the functions are defined under `Throws\\` namespace.

Simplest function is `thr` which accept exception as argument and just throws it:

```php