2019-04-24 10:47:44 +02:00
|
|
|
Domain expiration
|
|
|
|
=================
|
|
|
|
|
2019-12-09 12:51:46 +01:00
|
|
|
Checks the expiration dates of domains et HTTPS certificates.
|
2019-04-24 10:47:44 +02:00
|
|
|
|
|
|
|
## Installation and usage
|
|
|
|
|
2019-12-09 12:51:46 +01:00
|
|
|
PHP 7.3, [composer](https://getcomposer.org/), `whois` and `openssl` required.
|
2019-04-24 10:47:44 +02:00
|
|
|
|
2019-07-19 09:24:33 +02:00
|
|
|
```text
|
2019-12-09 12:51:46 +01:00
|
|
|
$ git clone --recurse-submodules https://gitnet.fr/deblan/domain-expiration.git
|
2019-04-24 10:47:44 +02:00
|
|
|
$ cd domain-expiration
|
|
|
|
$ composer install
|
|
|
|
```
|
|
|
|
|
2019-07-19 09:24:33 +02:00
|
|
|
```text
|
2019-12-09 12:51:46 +01:00
|
|
|
$ php7.3 ./check domains example.com other-example.com
|
|
|
|
+-------------------+------+---------------------+
|
|
|
|
| Domain | Days | Date |
|
|
|
|
+-------------------+------+---------------------+
|
|
|
|
| example.com | XX | YYYY-MM-DD HH:MM:SS |
|
|
|
|
| other-example.com | XXX | YYYY-MM-DD HH:MM:SS |
|
|
|
|
+-------------------+------+---------------------+
|
|
|
|
$ php7.3 ./check https-certificates example.com other-example.com
|
2019-05-02 15:28:11 +02:00
|
|
|
+-------------------+------+---------------------+
|
|
|
|
| Domain | Days | Date |
|
|
|
|
+-------------------+------+---------------------+
|
|
|
|
| example.com | XX | YYYY-MM-DD HH:MM:SS |
|
|
|
|
| other-example.com | XXX | YYYY-MM-DD HH:MM:SS |
|
|
|
|
+-------------------+------+---------------------+
|
2019-04-24 10:47:44 +02:00
|
|
|
```
|
2019-05-02 15:28:11 +02:00
|
|
|
|
|
|
|
You are able specify output options:
|
|
|
|
|
|
|
|
* `--table` (`-t`): output is a table (default)
|
|
|
|
* `--short` (`-s`): removes borders
|
|
|
|
* `--no-header`: removes headers
|
|
|
|
* `--json` (`-j`): output is a json
|
2019-07-19 09:25:28 +02:00
|
|
|
* `--wait` (`-w`): specifiy the number of seconds between each request (defaut: 0)
|