PHPackages                             withinboredom/building-blocks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. withinboredom/building-blocks

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

withinboredom/building-blocks
=============================

v0.2.4(3y ago)41.1k↓23.1%[1 PRs](https://github.com/withinboredom/building-blocks/pulls)MITPHPPHP &gt;=8.1CI passing

Since Jun 29Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/withinboredom/building-blocks)[ Packagist](https://packagist.org/packages/withinboredom/building-blocks)[ RSS](/packages/withinboredom-building-blocks/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

Random building blocks
======================

[](#random-building-blocks)

This is a library that totally ignores PSRs with a focus on simplicity. It is not a library for building complex applications, but rather when you just need to get stuff done with minimal fuss.

Turning errors into exceptions
------------------------------

[](#turning-errors-into-exceptions)

The `ErrorControl` class allows for simply turning errors into exceptions:

```
