2017 © Pedro Peláez
 

library finder

Fork of Symfony's Finder Component compatible with PHP 5.2+

image

ehough/finder

Fork of Symfony's Finder Component compatible with PHP 5.2+

  • Thursday, December 15, 2016
  • by ehough
  • Repository
  • 2 Watchers
  • 3 Stars
  • 782 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 33 Forks
  • 0 Open issues
  • 36 Versions
  • 0 % Grown

The README.md

finder

Build Status Project Status: Active - The project has reached a stable, usable state and is being actively developed. Latest Stable Version License, (*1)

Fork of Symfony's Finder component compatible with PHP 5.2+., (*2)

Motivation

Symfony's Finder component is a fantastic library, but it's only compatible with PHP 5.3+. While 99% of PHP servers run PHP 5.2 or higher, 13% of all servers are still running PHP 5.2 or lower (source)., (*3)

Once PHP 5.3+ adoption levels break 90%, this library will be retired., (*4)

Differences from Symfony's Finder component

The primary difference is naming conventions of the Symfony classes. Instead of the \Symfony\Component\Finder namespace (and sub-namespaces), prefix the Symfony class names with ehough_finder and follow the PEAR naming convention, (*5)

A few examples of class naming conversions:, (*6)

\Symfony\Component\Finder\Finder                  ----->    ehough_finder_Finder
\Symfony\Component\Finder\Expression\Expression   ----->    ehough_finder_expression_Expression
\Symfony\Component\Finder\Shell\Command           ----->    ehough_finder_shell_Command

Usage

Finder finds files and directories via an intuitive fluent interface., (*7)

$finder = new ehough_finder_Finder();

$iterator = $finder
  ->files()
  ->name('*.php')
  ->depth(0)
  ->size('>= 1K')
  ->in(__DIR__);

foreach ($iterator as $file) {
    print $file->getRealpath()."\n";
}

But you can also use it to find files stored remotely like in this example where we are looking for files on Amazon S3:, (*8)

$s3 = new Zend_Service_Amazon_S3($key, $secret);
$s3->registerStreamWrapper("s3");

$finder = new ehough_finder_Finder();
$finder->name('photos*')->size('< 100K')->date('since 1 hour ago');
foreach ($finder->in('s3://bucket-name') as $file) {
    print $file->getFilename()."\n";
}

Releases and Versioning

Releases are synchronized with the upstream Symfony repository. e.g. ehough/finder v2.3.1 has merged the code from Symfony/Finder v2.3.1., (*9)

The Versions

15/12 2016

dev-develop

dev-develop

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

02/12 2015

dev-master

9999999-dev

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

02/12 2015

v2.8.0

2.8.0.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

02/12 2015

v2.7.7

2.7.7.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

02/12 2015

v2.7.6

2.7.6.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

02/12 2015

v2.7.5

2.7.5.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.7.4

2.7.4.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.7.2

2.7.2.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.7.3

2.7.3.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.7.1

2.7.1.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.7.0

2.7.0.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.8

2.6.8.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.9

2.6.9.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.7

2.6.7.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.6

2.6.6.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.5

2.6.5.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.2

2.6.2.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.3

2.6.3.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.4

2.6.4.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.1

2.6.1.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.6.0

2.6.0.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.5.6

2.5.6.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

01/12 2015

v2.5.5

2.5.5.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

24/09 2014

v2.5.2

2.5.2.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

24/09 2014

v2.5.3

2.5.3.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

24/09 2014

v2.5.4

2.5.4.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

24/09 2014

v2.5.1

2.5.1.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

19/06 2014

v2.5.0

2.5.0.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

30/04 2014

v2.4.4

2.4.4.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

05/04 2014

v2.4.3

2.4.3.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

04/02 2014

v2.4.1

2.4.1.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

04/02 2014

v2.4.2

2.4.2.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

05/12 2013

v2.4.0

2.4.0.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

16/09 2013

v2.3.4

2.3.4.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

19/08 2013

v2.3.3

2.3.3.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

16/07 2013

v2.3.1

2.3.1.0

Fork of Symfony's Finder Component compatible with PHP 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires