xianqiliu / http-request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3 Different ways to make HTTP Requests in PHP

This repo uses some Amadeus Self-Service APIs as examples to show how to make HTTP Requests in PHP.

The APIs used in this repo are:

The ways to make HTTP Requests used in this repo are:

Before start

  1. Use composer to install all the dependencies.
composer install
  1. Edit .env file and Replace the API_ID AND API_SECRET by your Amadeus API ID and Secret. You can register your own account on https://developers.amadeus.com/
API_ID = REPLACE_BY_YOUR_ID
API_SECRET = REPLACE_BY_YOUR_SECRET

Pay attention to see and try different outputs, have fun :)

About


Languages

Language:PHP 99.2%Language:Shell 0.8%