Clean Code in PHP with Data Containers introducing Optional and Maybe datatypes

Опубликовано: 01 Июнь 2026
на канале: Bit Fire
49
1

In Today's video we go over using data containers (also called Optional or Maybe) with some extra functional sugar added to create clean code. We use a function pipeline on our Maybe object with clearly named functions to process data though a series of transforms. We let the data container handle all error handling producing a nice clean and unit testable function.

If you like this video you may also like BitSlip's Unit Testing frame work and PHP Firewall:
Tiny Test: https://github.com/bitslip6/tinytest
Bit Fire: https://github.com/bitslip6/bitfire

Thanks for watching, please like and subscribe for more security and PHP programming content. Cheers!