Download the PHP package daika7ana/ecolet-php-sdk without Composer

On this page you can find all versions of the php package daika7ana/ecolet-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ecolet-php-sdk

Ecolet PHP SDK

[![CI](https://github.com/daika7ana/ecolet-php-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/daika7ana/ecolet-php-sdk/actions/workflows/ci.yml) [![PHP 8.3+](https://img.shields.io/badge/PHP-8.3%2B-777BB4?style=flat-square&logo=php)](https://www.php.net/) [![PHPUnit](https://img.shields.io/badge/PHPUnit-12.x-0A7BBB?style=flat-square)](docs/TESTING.md) [![Smoke Tests](https://img.shields.io/badge/Smoke%20Tests-Live%20API-orange?style=flat-square)](docs/TESTING.md) [![PSR Standards](https://img.shields.io/badge/PSR-7%2F17%2F18-blue?style=flat-square)](https://www.php-fig.org/) [![License](https://img.shields.io/badge/license-GPL--3.0--or--later-green?style=flat-square)](LICENSE) A modern, type-safe PHP SDK for the **Ecolet Courier API**

🚀 Framework-agnostic, OAuth-powered, fully typed with DTOs, and production-ready.

Table of Contents

Features

Core Strengths

Perfect For

Requirements

Installation

Via Composer

Quick Start

Working with the Ecolet API is straightforward:

That's it! You've got a fully authenticated client ready to fetch courier data.

Configuration

Base URL & Environment

By default, the client runs against production. To enable staging globally:

Explicit Base URL

For explicit control without global state:

Authentication

OAuth 2.0 Password Grant

The package uses industry-standard OAuth 2.0 password grant flow. You'll need:

Automatic Token Refresh

Tokens refresh automatically when expired. Or refresh manually:

Access Current Token

Token Restoration

Already have a cached token? Restore it directly:

Supported Resources

v1 Resources (General API)

v2 Resources (Add Parcel Operations)

API Versioning

Framework Support

Zero Framework Dependencies

This package works equally well everywhere:

Optional: HttpFoundation Bridge

Using Laravel or Symfony? Our optional HttpFoundationBridge provides seamless integration without breaking the PSR-based core API.

Custom HTTP Client

Need a custom HTTP client? Pass any PSR-18 implementation:

Custom Token Storage

Implement the TokenStoreInterface to persist tokens:

Testing

Run Static Analysis

PHPStan is configured via phpstan.neon and analyzes the src/ directory at a strict level.

Run Full Test Suite

Pass PHPUnit arguments through Composer with --:

Run Specific Tests

Run The Same Checks As CI

Available Composer scripts:

Smoke tests hit the live staging API and require valid credentials in phpunit.xml.

Test Environment Variables

Configure these in phpunit.xml to enable smoke tests:

Variable Purpose
ECOLET_TEST_USERNAME Test account email
ECOLET_TEST_PASSWORD Test account password
ECOLET_TEST_CLIENT_ID OAuth client ID
ECOLET_TEST_CLIENT_SECRET OAuth client secret

See detailed testing docs →

Documentation

Complete guides and references:

Guide Purpose
📖 Quickstart Jump right in with working examples
🔧 Installation Detailed setup instructions
⚙️ Configuration Environment setup and options
🔐 Authentication OAuth flow and token management
🔗 Resources Complete resource reference
📦 DTOs Data Transfer Objects and enums
✅ Testing Unit and smoke test coverage
❌ Errors Exception handling guide
📚 All Docs Documentation index

Made with ❤️ **Questions?** [Check the docs](docs/USAGE.md) or [open an issue](../../issues)

All versions of ecolet-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
guzzlehttp/guzzle Version ^7.0
symfony/http-foundation Version ^5.0 || ^6.0 || ^7.0
psr/http-message Version ^1.0 || ^2.0
psr/http-factory Version ^1.0
psr/http-client Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package daika7ana/ecolet-php-sdk contains the following files

Loading the files please wait ...