PHPackages                             yakeing/get\_header - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. yakeing/get\_header

AbandonedArchivedSymfony-bundle[HTTP &amp; Networking](/categories/http)

yakeing/get\_header
===================

This function is similar to the get\_headers function

v1.0.1(6y ago)33283MPL-2.0PHPPHP &gt;=5.6

Since Aug 16Pushed 5y ago2 watchersCompare

[ Source](https://github.com/yakeing/get_header)[ Packagist](https://packagist.org/packages/yakeing/get_header)[ Docs](https://github.com/yakeing/get_header)[ RSS](/packages/yakeing-get-header/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

GET HTTP HEADER
===============

[](#get-http-header)

This function is similar to the get\_headers function.

`get_headers` is recommended because it is more efficient.

### Travis CI badge

[](#travis-ci-badge)

[![Travis-ci](https://camo.githubusercontent.com/60f8309ac6f4f01ee3d9287eab5fd9ed831bcd0c4c6fd8a56247896b014b2747/68747470733a2f2f6170692e7472617669732d63692e636f6d2f79616b65696e672f6765745f6865616465722e7376673f6272616e63683d6d61696e)](https://travis-ci.com/yakeing/get_header)

### codecov badge

[](#codecov-badge)

[![codecov](https://camo.githubusercontent.com/9d44e5ef9f43ce0605f3d1d0895c5582a8405eb4ecc68e6a61389bac23e15140/68747470733a2f2f636f6465636f762e696f2f67682f79616b65696e672f6765745f6865616465722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/yakeing/get_header)

### Github badge

[](#github-badge)

[![Downloads](https://camo.githubusercontent.com/49b0f2c92d9af53efcc244155d9b805df5b36ed66f5ea1ee6658c9dcec4d99f4/68747470733a2f2f342e76657263656c2e6170702f6769746875622f646f776e6c6f6164732f79616b65696e672f6765745f6865616465723f69636f6e3d676974687562)](../../)[![Size](https://camo.githubusercontent.com/46a06a0f3d0a0f500fb79993e32bc800f3b322eb3c75400a5b30c2ca29e617a1/68747470733a2f2f342e76657263656c2e6170702f6769746875622f73697a652f79616b65696e672f6765745f6865616465723f69636f6e3d676974687562)](src)[![tag](https://camo.githubusercontent.com/5a44b6504dd82cb242630293ae3a9335cf5adca4c1ce096767bcabd31b56aecd/68747470733a2f2f342e76657263656c2e6170702f6769746875622f7461672f79616b65696e672f6765745f6865616465723f69636f6e3d676974687562)](../../releases)[![license](https://camo.githubusercontent.com/904c4bcc21898764c7b6b7edfba26ea0d5427757cfaee2837ee7bed32124b40b/68747470733a2f2f342e76657263656c2e6170702f7374617469632f6c6963656e73652f3535352f4d504c2d322e302f6665376433373f69636f6e3d676974687562)](LICENSE)[![languages](https://camo.githubusercontent.com/5275888fd9cd7a7b85d47b803d247819aa953b27342dfa420173152309ab1a18/68747470733a2f2f342e76657263656c2e6170702f7374617469632f6c616e67756167652f3535352f5048502f3334616265663f69636f6e3d676974687562)](../../search?l=php)

### Installation

[](#installation)

Use [Composer](https://getcomposer.org) to install the library. Of course, You can go to [Packagist](https://packagist.org/packages/yakeing/get_header) to view.

```
    $ composer require yakeing/get_header

```

### test

[](#test)

- example

```
      include('GetHeader.php');
      $url = "https://github.com/yakeing/get_header";
      $GetHeader = new GetHeader();
      $Header = GetHeader->curlHeader($url);
      var_dump($Header);
```

### outcome

[](#outcome)

- example

```
    Array
    (
            [code] = 606
            [Server] = nginx/1.4.1
            [Date] = Tue, 15 Sep 2015 20:17:27 GMT
            [Content-Type] = text/html
            [Content-Length] = 464
            [Connection] = close
            [ETag] = "55b07eb9-1d0"
    )

    Array
    (
            [code] = 200
            [Server] = nginx/1.4.1
            [Date] = Tue, 15 Sep 2015 20:17:28 GMT
            [Content-Type] = text/html; charset=utf-8
            [Connection] = close
            [Set-Cookie] = expires=Wed, 16-Sep-2015 20:17:28 GMT; path=/; domain=.sinacloud.com
            [Expires] = Thu, 19 Nov 1981 08:52:00 GMT
            [Cache-Control] = private
            [Pragma] = no-cache
            [Via] = 10.67.15.158
            [Vary] = Accept-Encoding
    )

    Array
    (
            [code] = 200
            [Server] = nginx/1.4.1
            [Date] = Tue, 15 Sep 2015 20:17:28 GMT
            [Content-Type] = image/jpeg
            [Content-Length] = 40836
            [Connection] = close
            [Accept-Ranges] = bytes
            [Access-Control-Allow-Origin] = *
            [Access-Control-Max-Age] = 2592000
            [Cache-Control] = public, max-age=31536000
            [Content-Disposition] = inline; filename="weixin.jpg"
            [Content-Transfer-Encoding] = binary
            [ETag] = "FnDvgIWd1W48UL3WzKYwB7UfrS9w"
            [Last-Modified] = Thu, 20 Aug 2015 04:01:43 GMT
            [X-Log] = mc.g;IO:2
            [X-Reqid] = FGAAAMR9NAAXQAQU
            [X-Qiniu-Zone] = 0
            [X-Via] = 1.1 ych69:80 (Cdn Cache Server V2.0), 1.1 xdx20:5 (Cdn Cache Server V2.0)
    )
```

[Sponsor](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)
---------------------------------------------------------------------------------

[](#sponsor)

If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate.

[![Sponsor](https://camo.githubusercontent.com/8bf9004e5f53d2223ce47ceeed603c32154d9e6afa76039dd117bf91c5c1a685/68747470733a2f2f342e76657263656c2e6170702f7374617469632f53706f6e736f722f4541344141413f69636f6e3d6865617274)](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)

Author
------

[](#author)

weibo: [yakeing](https://weibo.com/yakeing)

twitter: [yakeing](https://twitter.com/yakeing)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~719 days

Total

2

Last Release

2474d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95aaf19e492f95c5180360b25e7197ff554625372973f3555b9792a07d5cb9f2?d=identicon)[yakeing](/maintainers/yakeing)

---

Top Contributors

[![yakeing](https://avatars.githubusercontent.com/u/6356091?v=4)](https://github.com/yakeing "yakeing (10 commits)")

---

Tags

curlheaderphphttpcurlgetget\_headers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yakeing-get-header/health.svg)

```
[![Health](https://phpackages.com/badges/yakeing-get-header/health.svg)](https://phpackages.com/packages/yakeing-get-header)
```

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M267](/packages/nategood-httpful)[mashape/unirest-php

Unirest PHP

1.3k9.7M161](/packages/mashape-unirest-php)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)[pear/http_request2

Provides an easy way to perform HTTP requests.

764.2M48](/packages/pear-http-request2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
