composer require sonsofphp/assert
<?php
use SonsOfPHP\Component\Assert\Assert;
Assert::string('test'); // returns true
Assert::string(false); // throws exception
Assert::disable();
Assert::string(1234); // returns false
- Documentation
- Contributing
- Report Issues and Submit Pull Requests in the Mother Repository
- Get Help & Support using Discussions