nkt / image-bundle
Symfony bundle for image uploading
dev-master / 1.0.x-dev
2014-05-24 22:47 UTC
Requires
- php: ~5.3
- ext-imagick: *
- symfony/symfony: ~2.3
This package is auto-updated.
Last update: 2026-03-04 15:37:00 UTC
README
Usage
Add "nkt/image-bundle": "1.0.x-dev" into composer.json.
Add Nkt\ImageBundle\NktImageBundle into your kernel bundles.
Add configuration into app/config/config.yml:
nkt_image: upload_dir: %kernel.root_dir%/uploads # Value by default types: logo: extension: jpg min_width: 100 max_width: 1000 min_height: 100 max_height: 1000 slider: min_width: 500
Import routing in your app/config/routing.yml:
nkt_image: resource: "@NktImageBundle/Resources/config/routing.yml" prefix: /
Then clear your application cache, and update database schema.
app/console cache:clear app/console doctrine:schema:update --force
License
MIT