wrkflow/php-api-sdk-builder

This package helps you build PHP clients for external APIs with dependency injection and type strict code in mind.

Fund package maintenance!
pionl

v0.2.0-rc7 2024-03-11 15:37 UTC

This package is auto-updated.

Last update: 2024-04-19 12:12:17 UTC


README

Build unified APIs with dependency injection and strict code in mind.

composer require wrkflow/php-api-sdk-builder

This package is still in its early stages. But the main concepts will probably remain same.

This package helps you build PHP clients for external APIs with dependency injection and type strict code in mind.

Why to use?

  • If you want to consume external API without losing type strict code (Data transfer objects instead of array keys).
  • If you work with multiple APIs and want to use the same conventions.
  • If you want to provide type strict way to build request parameters.
  • If you want to save time building HTTP/s request.

Features

img php coverage

  • 🛠 Dependency injection using your favorite framework (Laravel, PR for more)
  • ✅ Uses PSR packages you already use for HTTP/S communication
  • 🏆 Forcing type strict implementation for input (request options) and output (Response)
  • 🎗 Encouraging Data transfer objects
  • 🎭 Re-usable and configurable headers using objects

📖 Read the documentation

APIs packages

List of APIs made with this package

  • Maggelano Channel manager - TODO

Development

For development read CONTRIBUTIONS