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 - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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