https://github.com/boxuk/boxukdescribrbundle
Integrates the Describr library into your Symfony2 application
https://github.com/boxuk/boxukdescribrbundle
Last synced: 3 months ago
JSON representation
Integrates the Describr library into your Symfony2 application
- Host: GitHub
- URL: https://github.com/boxuk/boxukdescribrbundle
- Owner: boxuk
- Created: 2012-11-08T17:07:31.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-15T17:36:51.000Z (over 13 years ago)
- Last Synced: 2025-06-07T00:51:27.138Z (about 1 year ago)
- Language: PHP
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Introduction
============
This bundle integrates the [Describr](http://github.com/boxuk/describr) library into your Symfony2 project, allowing it to examine files and extract metadata from them.
Installation
------------
## Download the bundle
You can download an archive of the bundle and unpack it in the `vendor/bundles/BoxUK/Bundles/DescribrBundle` directory of your application.
### Installing via Composer (recommended)
The bundle can be installed using [Composer](http://getcomposer.org) by adding the following to your `composer.json`:
require: {
"boxuk/describr-bundle": "dev-master"
}
## Register the bundle
You must register the bundle in your kernel:
``` php
getContainer()->get('boxuk_describr.analyzer');
$metadata = $service->analyze($file);
// Instance of BoxUK\Describr\MediaFileAttributes
return $metadata;
}
```
See the [Describr documentation](http://github.com/boxuk/describr#using-describr) for more details.