mgufrone / cpanel-php

CPanel/WHM API for PHP
MIT License
158 stars 91 forks source link

Include the 'listforwards' API command #32

Closed eugenefvdm closed 4 years ago

eugenefvdm commented 4 years ago

Addition to allow extraction of all the cPanel forwarders configured for this account.

Typical json decoded format for this output is:

(
    [cpanelresult] => stdClass Object
        (
            [data] => Array
                (
                    [0] => stdClass Object
                        (
                            [dest] => from_where@domain.com
                            [html_dest] => from_where@domain.com
                            [uri_dest] => from_where%40domain.com
                            [forward] => to_where@domain.com
                            [html_forward] => to_where@domain.com
                            [uri_forward] => to_where%40domain.com
                        )
...