If you want to make a program available that access the interfaces of the FRITZ!Box and you want to ensure that the user has the freedom to enter his router address with or without scheme, with hostname or IP, then this routine could be useful , Not valid addresses lead to an exception. If successful, you return an array corresponding to parse_url.
- PHP 7.0
- Composer (follow the installation guide at https://getcomposer.org/download/)
You can install it through Composer:
"require": {
"blacksenator/fbvalidateurl": "^1.0"
},
or
git clone https://github.com/blacksenator/fbvalidateurl.git
This script is released under MIT license.
Copyright© 2019 - 2022 Volker Püschel