2017 © Pedro Peláez
 

library comparable-filesystem

Provides Comparators for the file system.

image

sgh/comparable-filesystem

Provides Comparators for the file system.

  • Monday, April 6, 2015
  • by schmengler
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Comparable-Filesystem

Author Latest Version Software License Build Status, (*1)

This package provides Comparators for the file system, i.e. for SplFileInfo objects. They can be used with the sorting and comparing tools in the Comparable package., (*2)

Requirements

The package requires PHP 5.4 or later and the Comparable package in version 1.0 or later., (*3)

Install

Via Composer, (*4)

``` bash $ composer require sgh/comparable-filesystem, (*5)


## Usage The following comparators are available: - FileATimeComparator - FileCTimeComparator - FileMTimeComparator - FileNameComparator - FileSizeComparator - FileTypeComparator You can use all the methods in `\SGH\Comparable\SortFunctions` and `\SGH\Comparable\SetFunctions` with the comparators. If you prefer, you can also use the factory method `::callback()` to retrieve a comparison callback, that can be used in any function that expects a user defined comparison callback: usort($arrayOfFiles, \SGH\Comparable\Filesystem\Comparator\FileSizeComparator::callback()); ## Testing ``` bash $ phpunit

Contributing

Please see CONTRIBUTING for details., (*6)

Security

If you discover any security related issues, please email fschmengler@sgh-it.eu instead of using the issue tracker., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

06/04 2015

dev-master

9999999-dev https://github.com/schmengler/comparable-filesystem

Provides Comparators for the file system.

  Sources   Download

MIT

The Requires

 

The Development Requires

comparable splfileinfo comparator

06/04 2015

v1.1.1

1.1.1.0 https://github.com/schmengler/comparable-filesystem

Provides Comparators for the file system.

  Sources   Download

MIT

The Requires

 

The Development Requires

comparable splfileinfo comparator

31/03 2015

1.0.0

1.0.0.0 https://github.com/schmengler/comparable-filesystem

Provides Comparators for the file system.

  Sources   Download

MIT

The Requires

 

The Development Requires

comparable splfileinfo comparator