dflydev/canal 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dflydev/canal

最新稳定版本:v1.0.0

Composer 安装命令:

composer require dflydev/canal

包简介

Content analysis for the purpose of determining Internet media types.

README 文档

README

Content analysis for the purpose of determining Internet media types.

Requirements

  • PHP 5.3+

Installation

Through Composer as dflydev/canal.

Usage

<?php // Instantiate the Analyzer $analyzer = new Dflydev\Canal\Analyzer\Analyzer; // Detect a media type from a filename (file does not need to exist) $internetMediaType = $analyzer->detectFromFilename('/path/to/whatever.png'); // See the media type as a string print $internetMediaType->asString()."\n\n"; // See the media type's type print $internetMediaType->getType()."\n\n"; // See the media type's subtype print $internetMediaType->getSubtype()."\n\n"; // image/png // // image // // png

License

MIT, see LICENSE.

Not Invented Here

This work was heavily influenced by Apache Tika and Ferret.

统计信息

  • 总下载量: 119.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 35
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 33
  • Watchers: 3
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固