I want to add PHP code in my websites. Can some one help me about this? I already have PHP code but don’t know how to input it [closed]

API 2.0
HTTP Method POST
API URL https://premiumaccountoriginal.com/api/v2
Response Format JSON
Method:add
Parameters  Descriptions
api_token   Your API token
action  Method Name
package ID of package
link    Link to page
quantity    Needed quantity
custom_data optional, needed for custom comments, mentions and other relaed packages only.
each separated by 'n', 'nr'
Success Response:

{
  "order":"23501"
}
Method:status
Parameters  Descriptions
api_token   Your API token
action  Method Name
order   Order ID
Success Response:

{
  "status": "Completed",
  "start_counter": "600",
  "remains": "600"
}
Method:balance
Parameters  Descriptions
api_token   Your API token
action  Method Name
Example Response:

{
  "balance": "100.78",
  "currency": "USD"
}

Method:packages
Parameters  Descriptions
api_token   Your API token
action  Method Name
Example Response:

[
  {
    "id":"1",
    "name":"Instagram Followers",
    "type":"default"
  },
  {
    "id":"2",
    "name":"Instagram Likes",
    "type":"default"
  },
  {
    "service":"3",
    "name":"Facebook Custom Comments",
    "type":"custom_data"
  }
]