fintech-systems / virtualmin-api

A Virtualmin API designed to run standalone or as part of a Laravel Application
MIT License
6 stars 1 forks source link

Make possibe to use runProgram on classes inheriting from VirtualminA… #21

Closed fabiomontefuscolo closed 2 years ago

fabiomontefuscolo commented 2 years ago

That empower developers to extend you API to connect to custom endpoints in Virtualmin

I also suggest to make public all other methods that does not leak credentials.

$api = new VirtualminApi(
    [
        'hostname' => 'example.com',
        'username' => 'fabio',
        'password' => '***************'
    ],
    'debug'
);

$api->runProgram(
    'tiki-install',
    [
        'domain' => 'test2.example.com',
        'branch' => '22.x',
        'password' => 'tikiwiki' // 8 chars long
    ]
);
eugenefvdm commented 2 years ago

Thanks so much!