PHP code example of fyre / header

1. Go to this page and download the library: Download fyre/header library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

fyre / header example snippets


use Fyre\Http\Header;

$header = new Header($name, $value);

$newHeader = $header->appendValue($value);

$headerString = $header->getHeaderString();

$name = $header->getName();

$value = $header->getValue();

$value = $header->getValueString();

$newHeader = $header->prependValue($value);

$newHeader = $header->setValue($value);