localgod / karla
ImageMagick wrapper
Installs: 3 717
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/localgod/karla
Requires
- php: ^8.0
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^4.0
This package is auto-updated.
Last update: 2025-12-18 08:20:22 UTC
README
Karla is an ImageMagick wrapper written in PHP with support for method chaining.
✨ Now with ImageMagick 7 support! Automatically detects and works with both ImageMagick 6 and 7.
Requirements
- PHP 8.0+ (8.2+ recommended)
- ImageMagick 6.x or 7.x
- PHP extensions: pcre, SPL (default in most distributions)
- shell_exec() must be enabled
Installation
composer require localgod/karla
Getting Started
use Karla\Karla; $karla = new Karla('/path/to/imagemagick/'); $karla->convert() ->input('photo.jpg') ->resize(800, 600) ->output('photo-resized.jpg') ->execute();
See the documentation for more examples and usage details.
Contributing
Contributions are welcome! See CONTRIBUTE.md for development setup, testing guidelines, and how to submit pull requests.