vysokeskoly / image-bundle
Bundle for loading and generating images
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
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\ImageRepository
implementsImageRepositoryInterface
- 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