bakame / laravel-domain-parser
Laravel package to integrate PHP Domain parser.
Installs: 263 240
Dependents: 1
Suggesters: 0
Security: 0
Stars: 25
Watchers: 2
Forks: 7
Open Issues: 3
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.2
- illuminate/config: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- jeremykendall/php-domain-parser: ^6.2
- psr/http-factory: ^1.0
- psr/simple-cache: ^1.0|^2.0|^3.0
Requires (Dev)
- distortedfusion/php-cs-fixer-config: ^2.0
- nunomaduro/larastan: ^2.4
- orchestra/testbench: ^8.0|^9.0
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.4
- phpunit/phpunit: ^9.5.10|^10.5
Suggests
- guzzlehttp/guzzle: To use an alternate HTTP Client
README
This Laravel package eases PHP Domain Parser (PDP) integration in your Laravel application.
PHP Domain Parser is a resource based domain parser implemented in PHP. With it you can easily parse a domain into its component subdomain, registrable domain, second level domain and public suffix parts using the Public Suffix List or IANA Top Level Domain List.
This package doesn't intent to replace or reinvent the API offered by PDP, instead it offers you various entry points to PDP which can be used to validate or process your domain.
Documentation
You will find full documentation on the dedicated documentation site.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Testing
To run the tests, run the following command from the project folder:
composer test
Security
If you discover a security vulnerability within this package, please send an e-mail to Kevin Dierkx via kevin@distortedfusion.com. All security vulnerabilities will be promptly addressed.
Contributing
Contributions are welcome and will be fully credited. Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.