nextdev / varinfo
                            This package is abandoned and no longer maintained.
                                                                                                The author suggests using the phf/varinfo package instead.
                                                                                    
                                        
                    
                    Description of variables e.g. for exception messages
This package has no released version yet, and little information is available.
README
DRY helper for describing variables
if (!\is_numeric($foo)) {
    throw new InvalidArgumentException(\sprintf(
        'Expected numeric - %s given',
        new nextdev\Varinfo\Varinfo($foo)
    ));
}