Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

migdalius's avatar

REST API

Where i can learn how to use rest api, i only find tutorials where make rest api but dont use? In php

0 likes
2 replies
shez1983's avatar

well ideally you would use ajax requests or use PHP guzzle Library (or similar) to consume the APIs.. its not that hard - depending on auth system used.. with Guzzle installed you would maybe create a wrapper class that hides the difficult parts. and maybe unifies the way you get data from the api

migdalius's avatar

I will ready about PHP guzzle Library, thanks for tips.

Please or to participate in this conversation.