There is no license information available for the latest version (0.1.2) of this package.

Bytic assert component

0.1.2 2022-05-18 18:52 UTC

This package is auto-updated.

Last update: 2024-05-18 23:05:11 UTC


Validating data and throwing exceptions is a great way to make your code more robust. It comes in handy especially in domain logic objects like Actions or Commands.

Why another assertion library

There are two great and very used PHP assertion libraries:

  • [beberlei/assert]
  • [webmozart/assert]

What we hope to achive with this implementation is to provide:

  • chained assertions (we really like the Pest expectations approach)
  • a fluent way to provide optional arguments (messages, code etc.)
  • provide custom exception classes


    ->orFail("Not Numeric")