Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ph-fritsche/php-varinfo
https://github.com/ph-fritsche/php-varinfo
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ph-fritsche/php-varinfo
- Owner: ph-fritsche
- License: mit
- Created: 2021-05-05T17:26:40.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T17:55:02.000Z (over 3 years ago)
- Last Synced: 2024-05-03T18:18:55.121Z (6 months ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Varinfo
DRY helper for describing variables
```php
if (!\is_numeric($foo)) {
throw new InvalidArgumentException(\sprintf(
'Expected numeric - %s given',
new PhF\Varinfo\Varinfo($foo)
));
}
```