Download the PHP package tigusigalpa/ebay-php without Composer
On this page you can find all versions of the php package tigusigalpa/ebay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ebay-php
eBay PHP/Laravel SDK
PHP SDK for eBay API. Supports Trading API (XML), Commerce API (REST), Fulfillment API, Logistics API, OAuth 2.0 authentication, 20+ marketplaces. Works as standalone and with Laravel.
Table of Contents
- Features
- Requirements
- Installation
- Quick Start
- Authentication
- Trading API
- Commerce API
- Fulfillment API
- Logistics API
- Message API
- Working with Marketplaces
- Enums and DTOs
- Error Handling
- Optimization
- Testing
- FAQ
- Support
- License
Features
API:
- Trading API (XML) — orders, listings, categories, GetMyEbaySelling, etc.
- Commerce API (REST) — inventory, taxonomy, translation
- Fulfillment API (REST) — orders, shipping fulfillments, refunds, payment disputes
- Logistics API (REST) — shipping quotes, label generation, shipment tracking
- Message API (REST) — buyer-seller messaging, conversations, notifications
- OAuth 2.0 with automatic token refresh
- 20+ marketplaces (US, UK, DE, FR, AU, etc.)
Code:
- PHP 8.1+ with native Enums
- Strict typing
- Immutable DTOs
- Fluent interface
- PSR-4, PSR-7, PSR-12
Laravel:
- Service Provider + Facade
- Dependency Injection
- .env configuration
Requirements
- PHP 8.1+
- Guzzle 7.x
- Laravel 9.x / 10.x / 11.x / 12.x (optional)
- Composer
Installation
For Laravel — publish config:
Add credentials to .env:
Get credentials at eBay Developers Program.
Quick Start
Laravel (Facade)
Standalone PHP
Authentication
OAuth 2.0 Flow
1. Get authorization URL:
2. Handle callback:
3. Use tokens:
Trading API
Orders
Items
Categories
Commerce API
Inventory
Fulfillment
Translation
Category Aspects
Fulfillment API
The Fulfillment API v1 provides comprehensive order management, shipping fulfillment, refunds, and payment dispute handling.
Get Orders
Issue Refunds
Shipping Fulfillments
Payment Disputes
Filter Examples
OAuth Scopes
Fulfillment API requires specific OAuth scopes:
- Read operations:
https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly - Write operations:
https://api.ebay.com/oauth/api_scope/sell.fulfillment - Refunds:
https://api.ebay.com/oauth/api_scope/sell.finances - Payment disputes:
https://api.ebay.com/oauth/api_scope/sell.payment.dispute
Add to config/ebay.php:
Logistics API
The Logistics API v1_beta provides shipping quote generation, label creation, and shipment management through eBay's integrated shipping carriers.
Create Shipping Quote
Get Shipping Quote
Create Shipment from Quote
Download Shipping Label
Get Shipment Details
Cancel Shipment
Complete Workflow Example
OAuth Scope
Logistics API requires the following OAuth scope:
- All operations:
https://api.ebay.com/oauth/api_scope/sell.logistics
Add to config/ebay.php:
Message API
Get Conversations
Send Message
Manage Conversations
Working with Marketplaces
Enums and DTOs
Package uses PHP 8.1 Enums for type safety:
DTOs
Error Handling
Optimization
Caching
Rate Limiting
Queues
Batch Processing
Testing
FAQ
How to get API credentials?
Register at eBay Developers Program, create application and get App ID, Cert ID, Dev ID, RuName.
Can I use for dropshipping?
Yes. Package is suitable for order automation, inventory, and listings.
What's the difference between Trading API and Commerce API?
- Trading API (XML) — legacy API for core operations (listings, orders, categories)
- Commerce API (REST) — modern REST API for inventory, fulfillment, and new features
How to switch to production?
Set EBAY_ENVIRONMENT=production in .env and add production credentials.
How to handle rate limits?
Use Laravel Rate Limiter or add usleep() between requests.
Troubleshooting
"Missing required configuration"
Check that all credentials are set in .env:
OAuth token expired
Package refreshes tokens automatically. Ensure refresh token is set:
XML parsing errors
Enable logging in config/ebay.php:
Support
- Wiki: Documentation & Guides
- GitHub Issues: tigusigalpa/ebay-php/issues
- Discussions: GitHub Discussions
- Email: [email protected]
eBay Documentation
- Trading API Reference
- Commerce API Reference
- Fulfillment API Reference
- Logistics API Reference
- OAuth 2.0 Guide
- Error Messages
- API Rate Limits
Contributing
Requirements:
- PSR-12
- Tests for new features
- PHPDoc with links to eBay API docs
- Strict typing
License
MIT. See LICENSE.
Author
Igor Sazonov
- GitHub: @tigusigalpa
- Email: [email protected]
Changelog
See CHANGELOG.md.
All versions of ebay-php with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.0
spatie/array-to-xml Version ^3.0