2017 © Pedro Peláez
 

library fileinfo

A FileInfo class for thos without support for PHP's finfo class.

image

nbish11/fileinfo

A FileInfo class for thos without support for PHP's finfo class.

  • Saturday, July 16, 2016
  • by nbish11
  • Repository
  • 1 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

FileInfo

![Build Status][build-img] Code Climate Test Coverage, (*1)

Provides a simple and flexible API wrapper around PHP's pathinfo method., (*2)

Installation

The recommended way of installing this package is through Composer:, (*3)

$ composer require nbish11/fileinfo

Basic Usage

<?php
require 'vendor/autoload.php';
$finfo = new FileInfo('C:/path/to/file.txt');

// Using standard API methods:
echo $finfo->getDirectory(); // 'C:/path/to/'
echo $finfo->getBaseName();  // 'file.txt'
echo $finfo->getExtension(); // 'txt'
echo $finfo->getFileName();  // 'file'
echo $finfo->getMimeType();  // 'text/plain'

// Using class properties:
echo $finfo->directory; // 'C:/path/to/'
echo $finfo->basename;  // 'file.txt'
echo $finfo->extension; // 'txt'
echo $finfo->filename;  // 'file'
echo $finfo->mimetype;  // 'text/plain'

Contributing

Please see CONTRIBUTING., (*4)

License

Copyright © 2016 Nathan Bishop, (*5)

Please see LICENSE for more information., (*6)

The Versions

16/07 2016

dev-master

9999999-dev

A FileInfo class for thos without support for PHP's finfo class.

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2

 

The Development Requires

14/07 2016

v1.0.0

1.0.0.0

A FileInfo class for thos without support for PHP's finfo class.

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.2

 

The Development Requires