nickurt / laravel-openprovider
OpenProvider for Laravel 6.x/7.x/8.x
Installs: 3 610
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 3
Open Issues: 1
Requires
- php: ^8.0|^7.4
- guzzlehttp/guzzle: ^6.3.1|^7.0.1
- laravel/framework: ^6.0|^7.0|^8.0
- spatie/array-to-xml: ^2.7
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0|^6.0
- phpunit/phpunit: ^7.5.15|^8.4|^9.3.3
README
Table of contents
Installation
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=
Usage
Dependency injection [e.g. by using multiple connections]
// 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, ]); // }
Customers
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)
Domains
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)
Emails
OpenProvider::emails()->restartCustomerEmailVerification(array $params) OpenProvider::emails()->searchEmailVerificationDomain(array $params) OpenProvider::emails()->startCustomerEmailVerification(array $params)
Emails Templates
OpenProvider::emailstemplates()->createEmailTemplate(array $params) OpenProvider::emailstemplates()->deleteEmailTemplate(array $params) OpenProvider::emailstemplates()->modifyEmailTemplate(array $params) OpenProvider::emailstemplates()->searchEmailTemplate(array $params)
Extensions
OpenProvider::extensions()->searchExtension(array $params) OpenProvider::extensions()->retrieveExtension(array $params)
Financials
OpenProvider::financials()->searchInvoiceReseller(array $params) OpenProvider::financials()->searchPaymentReseller(array $params) OpenProvider::financials()->searchTransactionReseller(array $params)
Licenses
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)
NameServers
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)
NameServers Groups
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)
Resellers
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)
Spam Experts
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)
SSL
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)
Tags
OpenProvider::tags()->createTag(array $params) OpenProvider::tags()->deleteTag(array $params) OpenProvider::tags()->searchTagRequest(array $params)
Tests
composer test