fofx/utility

Utilities library

v0.0.3 2025-08-13 09:11 UTC

This package is auto-updated.

Last update: 2025-08-13 09:12:07 UTC


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