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

Folders and files

NameName
Last commit message
Last commit date
May 4, 2023
Sep 29, 2023
Feb 13, 2024
Oct 2, 2023
Apr 30, 2022
May 1, 2022
Apr 30, 2022
Apr 15, 2022
Jun 30, 2022
Aug 23, 2022
Feb 13, 2024
May 4, 2023
Oct 2, 2023
Sep 29, 2023
Aug 9, 2023
Jul 25, 2023

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