peach-schnapps / blitline
This package is abandoned and no longer maintained.
No replacement package was suggested.
Blitline PHP for Laravel 4
dev-master
2013-09-07 17:00 UTC
Requires
- php: >=5.3.0
- illuminate/support: 4.0.x
- karikas/blitline: >=0.1
This package is not auto-updated.
Last update: 2024-01-02 01:42:03 UTC
README
Blitline Provider for Lavel 4
Installation
- Register at
http://www.blitline.com/
and get your application id composer require peach-schnapps/blitline dev-master
- Add
'PeachSchnapps\Blitline\BlitlineServiceProvider', // blitline
underproviders
inapp/config/app.php
- Publish package config to app/config/packages with
php artisan config:publish peach-schnapps/blitline
- Add your application id to
app/config/packages/peach-schnapps/blitline/config.php
Usage
$Blit = new Blitline;
$src = 'http://p.twimg.com/Atb2B0MCAAADLk6.jpg';
$Blit->load($src);
$Blit->do_resize_to_fill(256, 256);
$Blit->do_sharpen();
$results = $Blit->process();
if ($results->success()) {
foreach($results->get_images() as $name => $url) {
echo "Processed: {$name} at {$url}\n";
}
} else {
print_r($results->get_errors());
}
More Usage Example & Documentation at https://github.com/minioak/blitline_php