Registry / utility / simplesamlphp-assert

simplesamlphp-assert

JSON →
library2.0.2phppackagistunverified

A wrapper around webmozart/assert to make it useful beyond checking method arguments

composer require simplesamlphp/assert
INSTALL
IMPORT
SIG · SIMPLESAMLPHP-ASSE
S
simplesamlphp-assert
utilityphpv2.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Assert
use SimpleSAML\Assert\Assert;

Using SimpleSAMLphp Assert for input validation

use SimpleSAML\Assert\Assert; Assert::string($value, 'Value must be a string'); Assert::minLength($value, 3, 'Value must be at least 3 characters');
Debug
Known issues
breakingRequires PHP 7.2+
fix
Upgrade PHP to version 7.2 or higher
affects: <2.0.0
Upgrade
Version history
2.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
simplesamlphp-assert — pip install simplesamlphp-assert · libregistry