2017 © Pedro Peláez
 

library file-extension-utils

Utilities for dealing with file extensions

image

lewiscowles/file-extension-utils

Utilities for dealing with file extensions

  • Thursday, April 26, 2018
  • by LewisCowles1986
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 3 Versions
  • 33 % Grown

The README.md

filesystem-file-extension-php

PHP File Extension Utility Library, (*1)

Build Status Coverage Status Latest Version GitHub License, (*2)

Details

Runtime & Environment

Production

This should work with any security supported version of PHP 7.x line, (*3)

Development

Additional requirements are required for development, (*4)

  • Composer
  • doxygen
  • xDebug

Namespaces

lewiscowles\Utils\FileSystem\Extension, (*5)

Methods provided

fixExtensionIfNeeded (string $originalExtension, string $filename) : string
getExtensionFromFilename (string $filename) : string
hasNoExtension (string $filename) : bool
isExtensionTooShort (string $extension) : bool
isDualPartExtension (string $extension) : bool
isDotFile (string $filename) : bool

Purpose

This package was created solely for the purpose of facilitating the WordPress SVG plugin. It is my hope that it provides other benefit, but that has not been the case., (*6)

If you spot a bug, or have a feature-request or improvement, please create an issue., (*7)

Contributing

Documentation and Tests must be provided for any contribution. If this is a problem due to lack of knowledge or experience; please make an issue and submit a draft PR to ask for help. This should be a small enough library that learning can be helped., (*8)

At all times a polite and courteous tone should be used when communicating, contributing or interacting with this repository., (*9)

The Versions

26/04 2018

dev-master

9999999-dev

Utilities for dealing with file extensions

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Lewis Cowles

16/11 2017

1.1.1

1.1.1.0

Utilities for dealing with file extensions

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Lewis Cowles

16/11 2017

1.0.1

1.0.1.0

Utilities for dealing with file extensions

  Sources   Download

GPL-3.0

The Requires

  • php >=7.0

 

The Development Requires

by Lewis Cowles