The PHP Defensive library provides an easy-to-use collection of defensive-programming helpers that you can quickly drop into your own project to save you time and effort.
It is (in part) the successor to Phix's ContractLib.
Run this command to add this library to your composer.json
file:
composer require ganbarodigital/php-mv-defensive