Download the PHP package transprime-research/attempt without Composer
On this page you can find all versions of the php package transprime-research/attempt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download transprime-research/attempt
More information about transprime-research/attempt
Files in transprime-research/attempt
Package attempt
Short Description A fluent helper for object-oriented style of try-catch statements
License MIT
Homepage https://omitobi.github.io/transprime-research/attempt/
Informations about the package attempt
## About Attempt
Try and catch in php objected oriented way
> Do It like a pro :ok:
## Usage
## Installation:
Minimum requirement is PHP 7.2+ and Composer.
Install with this:
## Other usage:
`catch` method accepts an Exception object:
Set a default response:
Multiple Exception
Multiple Catch block
Do more with the caught Exception response:
More to come: Pass the execution of a default value to a callable Class
## Additional Information
This package is part of a series of "The Code Dare".
See other packages in this series here:
- https://github.com/transprime-research/piper [Smart Piping in PHP]
- https://github.com/transprime-research/arrayed [A smarter Array now like an object]
- https://github.com/omitobi/conditional [A smart PHP if...elseif...else statement]
- https://github.com/omitobi/carbonate [A smart Carbon + Collection package]
- https://github.com/omitobi/laravel-habitue [Jsonable Http Request(er) package with Collections response]
## Similar packages
- TBA
## Licence
MIT (See LICENCE file)