What environment, framework or class would you use to interact with APIs?

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

Our great sponsors
  • InfluxDB - Access the most powerful time series database as a service
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • janephp

    :seedling: Jane is a set of libraries to generate Models & API Clients based on JSON Schema / OpenAPI specs

    If the APIs you have to use have an OpenAPI specs you can une the following library to generate your interfaces: https://github.com/janephp/janephp

  • Serde

    Robust Serde (serialization/deserialization) library for PHP 8. (by Crell)

    Guzzle for the actual connection. Get back JSON. Use https://github.com/Crell/Serde to map that JSON into classed objects. Do as you will with the objects. (You can also do the same the other way around to create a message object with all the type safety and builder functionality you want, Serde it to JSON/array, and then send the message through Guzzle.)

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • Saloon

    Build beautiful API integrations and SDKs with Saloon 🤠

    For REST APIs I really like Saloon.

  • laravel-data

    Powerful data objects for Laravel

    Successor: https://github.com/spatie/laravel-data

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts