nkt / image-bundle
Symfony bundle for image uploading
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ~5.3
- ext-imagick: *
- symfony/symfony: ~2.3
This package is auto-updated.
Last update: 2024-11-04 12:40:45 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