alves / gfx-php
The pure PHP graphics library
Installs: 3
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/alves/gfx-php
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: ^6.5
- squizlabs/php_codesniffer: ^3.3.1
README
A pure PHP graphics library
gfx-php is a pure PHP library for reading, writing and processing raster images, without requiring any native extensions such as GD, ImageMagick or GraphicsMagick.
This makes it especially useful in restricted or portable environments, where installing or enabling PHP extensions is not possible.
✨ Features
- Pure PHP implementation — no external image extensions required.
- Support for common raster formats:
- PNG
- GIF
- BMP
- Netpbm formats
(see: File formats documentation)
- Image operations:
- scaling
- cropping
- format conversion
- colorspace transformations
(see: Image operations documentation)
- Designed for portability and predictability across different PHP environments.
🚀 Quick start
Requirements
- PHP 7.0 or newer
zlibextension (required for reading PNG files)
Installation
Install via Composer:
composer require alves/gfx-php