vysokeskoly / image-bundle
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (6.0.0) of this package.
Bundle for loading and generating images
Package info
github.com/vysokeskoly/image-bundle
Type:symfony-bundle
pkg:composer/vysokeskoly/image-bundle
6.0.0
2022-07-14 14:49 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-mbstring: *
- beberlei/assert: ^3.0
- imagine/imagine: ^1.3
- sensio/framework-extra-bundle: ^5.0 || ^6.0
- symfony/config: ^5.0 || ^6.0
- symfony/dependency-injection: ^5.0 || ^6.0
- symfony/http-foundation: ^5.0 || ^6.0
- symfony/http-kernel: ^5.0 || ^6.0
- symfony/options-resolver: ^5.0 || ^6.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.28
- mockery/mockery: ^1.5
- php-mock/php-mock-mockery: ^1.3
- php-parallel-lint/php-parallel-lint: ^1.3
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.8
- phpstan/phpstan-beberlei-assert: ^1.0
- phpstan/phpstan-mockery: ^1.1
- phpstan/phpstan-phpunit: ^1.1
- phpunit/phpunit: ^9.5.20
README
Changelog
See CHANGELOG.md.
Installation
Step 1
Download using composer
"require": {
"vysokeskoly/image-bundle" : "^5.0"
},
Step 2
Add VysokeSkolyImageBundle bundle to AppKernel to list of loaded bundles.
$bundles = [ // .. new VysokeSkoly\ImageBundle\VysokeSkolyImageBundle(), // .. ];
Step 3
Configure required parameters for this bundle.
Implementation of ImageRepositoryInterface
- for example class
My\ImageRepositoryimplementsImageRepositoryInterface - its Autowired, so you do not have to specify it explicitly
config.yml
# EDU ImageBundle
vysoke_skoly_image:
image_formats:
preview1x:
width: 260
height: 175
preview2x:
width: 520
height: 350
cropped:
width: 100
height: 100
crop:
x: 20
y: 20
x2: 120
y2: 120
cropped2:
width: 100
height: 100
crop:
x: 20
y: 20
width: 100
height: 100
# [OPTIONAL]
services:
app.repository.image:
class: My\ImageRepository