fofx / utility
Utilities library
v0.0.3
2025-08-13 09:11 UTC
Requires
- php: ^8.3
- fofx/helper: ^1.2
- jeremykendall/php-domain-parser: ^6.4
- laravel/framework: ^12.22
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.85
- orchestra/testbench: ^10.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-mockery: ^2.0
- phpunit/phpunit: 12.3.3
README
A PHP library with a few practical helpers. Uses jeremykendall/php-domain-parser for domain parsing.
- get_tables() - List database tables for the current connection
- download_public_suffix_list() - Ensure the Public Suffix List exists locally
- extract_registrable_domain() - Extract a registrable domain from a URL
Installation
composer require fofx/utility
Usage
See usage examples in:
Testing and Development
To run the PHPUnit test suite through composer:
composer test
To use PHPStan for static analysis:
composer phpstan
To use PHP-CS-Fixer for code style:
composer cs-fix
License
MIT