wedesignit/common

Reusable PSR-compatible API client framework with middleware and token authentication

v1.0.2 2025-06-06 14:53 UTC

This package is auto-updated.

Last update: 2025-06-06 14:56:11 UTC


README

Latest Version on Packagist Software License Build Status Total Downloads

Some common code which can be used by other packages. For now it is limited to a PSR-18 compliant HTTP client with a middleware stack, and some traits for common API client functionality.

Used standards:

  • PSR-7: request-object (universal request-object)
  • PSR-15: middleware stack (universal middleware stack)
  • PSR-16: cache interface (universal cache interface)
  • PSR-17: request-factory (universal request-object)
  • PSR-18: client interface as typehint (not hardcoding Guzzle)

For more detailed docs, see the docs folder.

Installing

Via Composer

composer require wedesignit/common

Testing

composer test

Credits

License

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

About WeDesignIt

WeDesignIt is a web agency from Oude-Tonge (reserve-Zeeland), the Netherlands specialized in custom web applications, API development, and integrations.