Canal alternatives and similar libraries
Based on the "Files" category.
Alternatively, view Canal alternatives based on common mentions on social networks and blogs.
-
Gaufrette
PHP library that provides a filesystem abstraction layer − will be a feast for your files! -
UnifiedArchive
UnifiedArchive - an archive manager with unified interface for different formats (bundled with cli utility). Supports all formats with basic operations (reading, extracting and creation) and popular formats specific features (compression level, password-protection, comment) -
Filesystem Component
Filesystem Package provide a fluent, object-oriented interface for working with filesystem.
Cloudways Early Bird Offer
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Canal or a related project?
Popular Comparisons
README
Canal
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.
*Note that all licence references and agreements mentioned in the Canal README section above
are relevant to that project's source code only.