Git Product home page Git Product logo

filesystem-file-extension-php's Introduction

filesystem-file-extension-php

PHP File Extension Utility Library

Build Status Coverage Status Latest Version GitHub License

Details

Runtime & Environment

Production

This should work with any security supported version of PHP 7.x line

Development

Additional requirements are required for development

  • Composer
  • doxygen
  • xDebug

Namespaces

lewiscowles\Utils\FileSystem\Extension

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.

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

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.

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

filesystem-file-extension-php's People

Contributors

lewiscowles1986 avatar peter279k avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

peter279k

filesystem-file-extension-php's Issues

Dual-Extension Files

Currently has very limited compressed dual-type support. Would be nice to make the list longer than.

  • gz
  • xz
  • bz2

Travis CI

Now #5 has merged it'd be a good idea to have a badge

Data source for tests

Need to implement array data source for tests, with verbose message output

Expected '', got 'htaccess'
Expected 'tar.gz' got '.gz'
etc

Should be pretty simple

Badges

Would be nice to have badges and Travis or public CI + Coverage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.