# Kong/unirest-php

Unirest in PHP: Simplified, lightweight HTTP client library.

Repository: https://github.com/Kong/unirest-php
Canonical: https://ross.abutalabs.com/products/unirest-php
Homepage: http://unirest.io/php
Language: PHP
License: MIT
License Family: permissive
Last push: 2025-04-14T22:43:11+00:00

## Health v2 (maintenance only)
Score: 30/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 16, release rhythm 8, longevity 100
- inputs: {"age_days": 5652, "days_push": 506, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1281, forks 317 (observed 2026-08-28T04:04:13.878173+00:00)

## What it is
Unirest for PHP is a lightweight, simplified HTTP client library for making GET, POST, PUT, DELETE and other requests. It supports form parameters, file uploads, gzip, multiple auth schemes, and automatic JSON response parsing.

## Use cases
- make http requests in php
- call rest apis from php
- send post requests with json bodies
- upload files via http in php
- handle basic and digest authentication in http requests
- parse json api responses in php

## When to choose
- you need a simple, lightweight HTTP client in PHP without heavy dependencies
- you want automatic JSON response parsing and simple request helpers
- you need built-in support for Basic, Digest, Negotiate, or NTLM auth

## When to avoid
- the project is explicitly marked as not maintained, so prefer actively maintained alternatives like Guzzle
- you need async requests, middleware, or advanced features beyond simple request/response handling

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client
- domain: web-development, apis, developer-tools
- platform: php
- tags: http-requests, rest-client, curl, json, lightweight

## Member repositories
- Kong/unirest-php (main) score 30

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.878173+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:58:17.231876+00:00, confidence not recorded.
  - readme: https://github.com/Kong/unirest-php (fetched 2026-08-28T04:04:13.878173+00:00, sha a483ddc3307c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
