定制 boxuk/describr-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boxuk/describr-bundle

最新稳定版本:1.0.0

Composer 安装命令:

composer require boxuk/describr-bundle

包简介

A Symfony2 bundle that integrates the Describr library

README 文档

README

This bundle integrates the 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 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

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(

        // ...

        new \BoxUK\Bundle\DescribrBundle\BoxUKDescribrBundle()
    );

    // ...
}

Usage

The bundle provides a boxuk_describr.analyzer service which can be used to determine metadata for any instance of Symfony\Component\HttpFoundation\File\File:

<?php

public function analyzeMetadata(File $file)
{
    $service = $this->getContainer()->get('boxuk_describr.analyzer');
    
    $metadata = $service->analyze($file);
    
    // Instance of BoxUK\Describr\MediaFileAttributes
    return $metadata;
}

See the Describr documentation for more details.

统计信息

  • 总下载量: 27.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-11-08