Skip to content

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

License

Notifications You must be signed in to change notification settings

wrk-flow/php-api-sdk-builder

Repository files navigation

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