Skip to content

powerlinks/one-pixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One Pixel

This class return just a transparent single pixel for tracking purpose.

Composer

{
    "require": {
        "powerlinks/one-pixel": "1.0.x-dev"
    }
}

Usage

use PowerLinks\OnePixel\OnePixel;

// instantiating usage 
$onePixel = new OnePixel();
$onePixel->getHeaders();
$onePixel->getPixel();

// static usage
OnePixel::getHeaders();
OnePixel::getPixel();

To use this library with symfony/http-foundation: 2.6.x

use Symfony\Component\HttpFoundation\Response;
use PowerLinks\OnePixel\OnePixel;

$response = new Response();
$response->headers->add(OnePixel::getHeaders());
$response->setContent(OnePixel::getPixel());
$response->send();

About

php class to return a transparent single pixel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages