{"id":20678234,"url":"https://github.com/lewiscowles1986/filesystem-file-extension-php","last_synced_at":"2025-04-19T21:18:55.709Z","repository":{"id":57014339,"uuid":"110956909","full_name":"Lewiscowles1986/filesystem-file-extension-php","owner":"Lewiscowles1986","description":"PHP File Extension Utility Library","archived":false,"fork":false,"pushed_at":"2020-06-14T09:19:43.000Z","size":66,"stargazers_count":1,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-07-06T22:43:13.381Z","etag":null,"topics":["filesystem","php-library","php7","tiny-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lewiscowles1986.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-16T10:21:07.000Z","updated_at":"2020-05-12T23:06:43.000Z","dependencies_parsed_at":"2022-08-21T13:30:12.884Z","dependency_job_id":null,"html_url":"https://github.com/Lewiscowles1986/filesystem-file-extension-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewiscowles1986%2Ffilesystem-file-extension-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewiscowles1986%2Ffilesystem-file-extension-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewiscowles1986%2Ffilesystem-file-extension-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewiscowles1986%2Ffilesystem-file-extension-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lewiscowles1986","download_url":"https://codeload.github.com/Lewiscowles1986/filesystem-file-extension-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224970051,"owners_count":17400334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filesystem","php-library","php7","tiny-library"],"created_at":"2024-11-16T21:19:31.200Z","updated_at":"2024-11-16T21:19:31.680Z","avatar_url":"https://github.com/Lewiscowles1986.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# filesystem-file-extension-php\nPHP File Extension Utility Library\n\n[![Build Status](https://travis-ci.org/Lewiscowles1986/filesystem-file-extension-php.svg?branch=master)](https://travis-ci.org/Lewiscowles1986/filesystem-file-extension-php)\n[![Coverage Status](https://coveralls.io/repos/github/Lewiscowles1986/filesystem-file-extension-php/badge.svg?branch=master)](https://coveralls.io/github/Lewiscowles1986/filesystem-file-extension-php?branch=master)\n[![Latest Version](https://img.shields.io/github/release/Lewiscowles1986/filesystem-file-extension-php.svg)](https://github.com/Lewiscowles1986/filesystem-file-extension-php/releases)\n[![GitHub License](https://img.shields.io/badge/license-GPLv3-yellow.svg)](https://raw.githubusercontent.com/Lewiscowles1986/filesystem-file-extension-php/master/LICENSE)\n\n## Details\n\n### Runtime \u0026 Environment\n\n#### Production\n\nThis should work with any [security supported version of PHP 7.x](https://www.php.net/supported-versions.php) line\n\n#### Development\n\nAdditional requirements are required for development\n\n* Composer\n* doxygen\n* xDebug\n\n### Namespaces\n\n`lewiscowles\\Utils\\FileSystem\\Extension`\n\n#### Methods provided\n\n```php\nfixExtensionIfNeeded (string $originalExtension, string $filename) : string\n```\n\n```php\ngetExtensionFromFilename (string $filename) : string\n```\n\n```php\nhasNoExtension (string $filename) : bool\n```\n\n```php\nisExtensionTooShort (string $extension) : bool\n```\n\n```php\nisDualPartExtension (string $extension) : bool\n```\n\n```php\nisDotFile (string $filename) : bool\n```\n\n## Purpose\n\nThis 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.\n\nIf you spot a bug, or have a feature-request or improvement, please [create an issue](/Lewiscowles1986/filesystem-file-extension-php/issues).\n\n## Contributing\n\nDocumentation 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.\n\nAt all times a polite and courteous tone should be used when communicating, contributing or interacting with this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewiscowles1986%2Ffilesystem-file-extension-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewiscowles1986%2Ffilesystem-file-extension-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewiscowles1986%2Ffilesystem-file-extension-php/lists"}