cline/shipit

Shipit SDK for PHP

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/cline/shipit

1.0.0 2025-10-22 05:10 UTC

This package is auto-updated.

Last update: 2025-10-22 12:46:24 UTC


README

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads

Shipit SDK

A Saloon v3-based PHP SDK for the Shipit API with Spatie Laravel Data v4 DTOs.

Requirements

Requires PHP 8.4+

Installation

composer require cline/shipit

Quick Start

use Cline\Shipit\Connector\ShipitConnector;

// Auto-detect environment (production uses live, non-production uses test)
$shipit = ShipitConnector::new('your-api-token');

// Or explicitly choose environment
$shipit = ShipitConnector::live('your-api-token');  // Production
$shipit = ShipitConnector::test('your-api-token');  // Test environment

Documentation

Comprehensive cookbooks covering all SDK features:

Features

  • Saloon v3 - Modern HTTP client abstraction
  • Spatie Laravel Data v4 - Type-safe DTOs
  • Full API Coverage - All Shipit API endpoints
  • Typed Responses - Complete IDE autocomplete support
  • Error Handling - Automatic exception throwing on errors
  • Multiple Environments - Easy switching between test/live APIs

Architecture

The SDK uses:

  • Saloon v3 for HTTP client abstraction
  • Spatie Laravel Data v4 for type-safe DTOs
  • Strictly typed based on API form request validations

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.