Install this package with composer:
composer require nickurt/laravel-openprovider
Copy the config files for the OpenProvider-plugin
php artisan vendor:publish --provider="nickurt\OpenProvider\ServiceProvider" --tag="config"
Add the OpenProvider credentials to your .env file
OPENPROVIDER_DEFAULT_USERNAME=
OPENPROVIDER_DEFAULT_PASSWORD=
// Route
Route::get('/openprovider/{openProvider}/customers', ['as' => 'openprovider/customers', 'uses' => 'CustomersController@getIndex']);
Route::bind('openProvider', function ($value, $route) {
app('OpenProvider')->connection($value);
return app('OpenProvider');
});
// CustomersController
public function getIndex(OpenProvider $openProvider)
{
$customers = $openProvider->customers()->searchCustomer([
'limit' => 20,
]);
//
}
OpenProvider::customers()->createCustomer(array $params)
OpenProvider::customers()->deleteCustomer(array $params)
OpenProvider::customers()->modifyCustomer(array $params)
OpenProvider::customers()->retrieveCustomer(array $params)
OpenProvider::customers()->searchCustomer(array $params)
OpenProvider::domains()->approveTransferDomain(array $params)
OpenProvider::domains()->checkDomain(array $params)
OpenProvider::domains()->createDomain(array $params)
OpenProvider::domains()->deleteDomain(array $params)
OpenProvider::domains()->modifyDomain(array $params)
OpenProvider::domains()->renewDomain(array $params)
OpenProvider::domains()->requestAuthCodeDomain(array $params)
OpenProvider::domains()->resetAuthCodeDomain(array $params)
OpenProvider::domains()->restoreDomain(array $params)
OpenProvider::domains()->retrieveAdditionalDataDomain(array $params)
OpenProvider::domains()->retrieveCustomerAdditionalDataDomain(array $params)
OpenProvider::domains()->retrieveDomain(array $params)
OpenProvider::domains()->retrievePriceDomain(array $params)
OpenProvider::domains()->searchDomain(array $params)
OpenProvider::domains()->sendFoa1Domain(array $params)
OpenProvider::domains()->tradeDomain(array $params)
OpenProvider::domains()->transferDomain(array $params)
OpenProvider::domains()->tryAgainDomain(array $params)
OpenProvider::emails()->restartCustomerEmailVerification(array $params)
OpenProvider::emails()->searchEmailVerificationDomain(array $params)
OpenProvider::emails()->startCustomerEmailVerification(array $params)
OpenProvider::emailstemplates()->createEmailTemplate(array $params)
OpenProvider::emailstemplates()->deleteEmailTemplate(array $params)
OpenProvider::emailstemplates()->modifyEmailTemplate(array $params)
OpenProvider::emailstemplates()->searchEmailTemplate(array $params)
OpenProvider::extensions()->searchExtension(array $params)
OpenProvider::extensions()->retrieveExtension(array $params)
OpenProvider::financials()->searchInvoiceReseller(array $params)
OpenProvider::financials()->searchPaymentReseller(array $params)
OpenProvider::financials()->searchTransactionReseller(array $params)
OpenProvider::licenses()->createPleskLicense(array $params)
OpenProvider::licenses()->createVirtuozzoLicense(array $params)
OpenProvider::licenses()->deletePleskLicense(array $params)
OpenProvider::licenses()->deleteVirtuozzoLicense(array $params)
OpenProvider::licenses()->modifyPleskLicense(array $params)
OpenProvider::licenses()->modifyVirtuozzoLicense(array $params)
OpenProvider::licenses()->resetLicenseHWID(array $params)
OpenProvider::licenses()->retrieveKeyPleskLicense(array $params)
OpenProvider::licenses()->retrieveKeyVirtuozzoLicense(array $params)
OpenProvider::licenses()->retrievePleskLicense(array $params)
OpenProvider::licenses()->retrieveVirtuozzoLicense(array $params)
OpenProvider::licenses()->searchPleskAndVirtuozzoItem(array $params)
OpenProvider::licenses()->searchPleskAndVirtuozzoLicense(array $params)
OpenProvider::licenses()->searchPleskLicense(array $params)
OpenProvider::licenses()->searchVirtuozzoLicense(array $params)
OpenProvider::nameservers()->createNs(array $params)
OpenProvider::nameservers()->createTemplateDns(array $params)
OpenProvider::nameservers()->createZoneDns(array $params)
OpenProvider::nameservers()->deleteNs(array $params)
OpenProvider::nameservers()->deleteTemplateDns(array $params)
OpenProvider::nameservers()->deleteZoneDns(array $params)
OpenProvider::nameservers()->modifyNs(array $params)
OpenProvider::nameservers()->modifyZoneDns(array $params)
OpenProvider::nameservers()->retrieveNs(array $params)
OpenProvider::nameservers()->retrieveTemplateDns(array $params)
OpenProvider::nameservers()->retrieveZoneDns(array $params)
OpenProvider::nameservers()->searchNs(array $params)
OpenProvider::nameservers()->searchTemplateDns(array $params)
OpenProvider::nameservers()->searchZoneDns(array $params)
OpenProvider::nameservers()->searchZoneRecordDns(array $params)
OpenProvider::nameserversgroups()->createNsGroup(array $params)
OpenProvider::nameserversgroups()->deleteNsGroup(array $params)
OpenProvider::nameserversgroups()->modifyNsGroup(array $params)
OpenProvider::nameserversgroups()->retrieveNsGroup(array $params)
OpenProvider::nameserversgroups()->searchNsGroup(array $params)
OpenProvider::resellers()->createContactReseller(array $params)
OpenProvider::resellers()->deleteContactReseller(array $params)
OpenProvider::resellers()->modifyContactReseller(array $params)
OpenProvider::resellers()->modifyReseller(array $params)
OpenProvider::resellers()->retrieveContactReseller(array $params)
OpenProvider::resellers()->retrieveReseller()
OpenProvider::resellers()->retrieveSettingsReseller()
OpenProvider::resellers()->retrieveStatisticsReseller()
OpenProvider::resellers()->searchContactReseller(array $params)
OpenProvider::spamexperts()->createDomainSe(array $params)
OpenProvider::spamexperts()->deleteDomainSe(array $params)
OpenProvider::spamexperts()->generateSeLoginUrl(array $params)
OpenProvider::spamexperts()->modifyDomainSe(array $params)
OpenProvider::spamexperts()->retrieveDomainSe(array $params)
OpenProvider::ssl()->cancelSslCert(array $params)
OpenProvider::ssl()->changeApproverEmailAddressSslCert(array $params)
OpenProvider::ssl()->createSslCert(array $params)
OpenProvider::ssl()->decodeCsrSslCert(array $params)
OpenProvider::ssl()->generateCsrSslCert(array $params)
OpenProvider::ssl()->generateOtpTokenSslCert(array $params)
OpenProvider::ssl()->modifySslCert(array $params)
OpenProvider::ssl()->reissueSslCert(array $params)
OpenProvider::ssl()->renewSslCert(array $params)
OpenProvider::ssl()->resendApproverEmailSslCert(array $params)
OpenProvider::ssl()->retrieveApproverEmailListSslCert(array $params)
OpenProvider::ssl()->retrieveOrderSslCert(array $params)
OpenProvider::ssl()->retrieveProductSslCert(array $params)
OpenProvider::ssl()->retrieveReissueApproverEmailListSslCert(array $params)
OpenProvider::ssl()->searchOrderSslCert(array $params)
OpenProvider::ssl()->searchProductSslCert(array $params)
OpenProvider::tags()->createTag(array $params)
OpenProvider::tags()->deleteTag(array $params)
OpenProvider::tags()->searchTagRequest(array $params)
composer test