stuartapp/stuart-client-php
Official PHP client for the Stuart delivery API. Authenticate to sandbox or production, create/validate/get/cancel jobs and deliveries, fetch pricing and ETA, and make custom requests. Includes a Docker demo and Composer install.
composer require stuartapp/stuart-client-php).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Deprecated Package | High | Fork/maintain or replace with official SDK. |
| API Breaking Changes | High | Implement backward-compatible wrappers. |
| Poor Documentation | Medium | Reverse-engineer API calls via network logs. |
| Performance Overhead | Low | Benchmark against direct HTTP requests. |
| Security Risks | Medium | Validate API auth (OAuth/JWT) handling. |
composer require stuartapp/stuart-client-php
.env):
STUART_API_KEY=your_key_here
STUART_BASE_URL=https://api.stuart.com
// app/Services/StuartService.php
class StuartService {
public function __construct(private StuartClient $client) {}
public function createShipment(array $data) { ... }
}
Log::debug($client->getLastResponse())).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Stuart API Downtime | No shipments/tracking | Fallback to manual entry or queue. |
| Rate Limiting | Throttled requests | Implement retries + caching. |
| Auth Token Expiry | Failed requests | Auto-refresh tokens (if supported). |
| Package Deprecation | Broken functionality | Migrate to official SDK. |
| PHP Version Incompatibility | Integration fails | Pin PHP version in composer.json. |
How can I help you explore Laravel packages today?