pangpondpon / sedo-api-client
Installs: 243
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 3
Open Issues: 0
pkg:composer/pangpondpon/sedo-api-client
Requires (Dev)
- vlucas/phpdotenv: ^2.4
This package is not auto-updated.
Last update: 2025-09-28 07:11:45 UTC
README
Library to talk with Sedo API
Laravel Installation
- Add this code to your /config/app.php - providers array
SedoClient\SedoServiceProvider::class
- Run
php artisan vendor:publish
to publish configuration file, it will be located at /config/sedo.php (Note: You don't need to do this if you don't want to change anything in the configuration file.) - Add this to .env file and change them to your credentials
SEDO_USERNAME=
SEDO_PASSWORD=
SEDO_PARTNER_ID=
SEDO_SIGN_KEY=
Usage
You can inject the class to your method or use resolve helper
Route::get('/inject', function (SedoClient\Sedo $sedo) {
dd($sedo);
});
Route::get('/inject-domain', function (SedoClient\SedoDomain $sedoDomain) {
dd($sedoDomain);
});
Route::get('/inject-resolve', function () {
$sedo = resolve('SedoClient\Sedo');
dd($sedo);
});