Generate a 1x1 transparent pixel in PHP.
Find a file
Josh Sherman 76c3340df6 :shipit:
2016-02-20 11:17:29 -05:00
src :shipit: 2016-02-20 11:17:29 -05:00
.gitignore Initial commit 2016-02-20 11:03:45 -05:00
composer.json :shipit: 2016-02-20 11:17:29 -05:00
LICENSE Initial commit 2016-02-20 11:03:45 -05:00
README.md :shipit: 2016-02-20 11:17:29 -05:00

php-pixel

Yo Dawg, I herd you like pixels, so I put a pixel in your pixel so you can pixel while you pixel.

Why does this exist? Because I got sick of looking up how to generate a single transparent pixel in PHP.

Installation

composer require "joshtronic/php-pixel:dev-master"

Usage

GIF

joshtronic\Pixel::gif();

PNG

joshtronic\Pixel::png();