2017 © Pedro PelĂĄez
 

library filename-normalizer

A string normalizer for filesystem name.

image

glen/filename-normalizer

A string normalizer for filesystem name.

  • Friday, March 16, 2018
  • by glen
  • Repository
  • 0 Watchers
  • 1 Stars
  • 701 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 23 % Grown

The README.md

filename-normalizer

A string normalizer for filesystem name., (*1)

Build Status, (*2)

Install

$ composer require glen/filename-normalizer

Usage

<?php

use glen\FilenameNormalizer\Normalizer;

echo Normalizer::normalize("foo?bar/baz?qux.txt");  // replace to "foo-bar-baz-qux.txt"

Api

Normalizer::normalize($name, $replacement = "-");

Replace characters cannot be used in a filename., (*3)

See also

License

Licensed under the MIT License., (*4)

Copyright (c) 2015 Yosuke Kumakura Copyright (c) 2018 Elan RuusamÀe, (*5)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*6)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*7)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*8)

The Versions

16/03 2018

dev-master

9999999-dev https://github.com/glensc/php-filename-normalizer

A string normalizer for filesystem name.

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem filename

14/03 2018

2.0.0

2.0.0.0 https://github.com/glensc/php-filename-normalizer

A string normalizer for filesystem name.

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem filename

16/07 2015

1.0.0

1.0.0.0 https://github.com/kumatch/php-filename-normalizer

A string normalizer for filesystem name.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

filesystem filename