2017 © Pedro Peláez
 

library silex-finder-provider

A Silex service provider for Symfony finder component

image

bgaze/silex-finder-provider

A Silex service provider for Symfony finder component

  • Sunday, August 27, 2017
  • by Bgaze
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

bgaze/silex-finder-provider

A Silex service provider for Symfony finder component., (*1)

Install

composer require bgaze/silex-finder-provider dev-master

Usage

Once the provider is registred, a Symfony Finder Component instance is available through $app['finder']., (*2)

$app->register(new \Bgaze\Silex\Provider\FinderProvider());

$app["finder"]->files()->in(__DIR__);

foreach ($app["finder"] as $file) {
    // Dump the absolute path
    var_dump($file->getRealpath());

    // Dump the relative path to the file, omitting the filename
    var_dump($file->getRelativePath());

    // Dump the relative path to the file
    var_dump($file->getRelativePathname());
}

More stuff

The Versions

27/08 2017

dev-master

9999999-dev

A Silex service provider for Symfony finder component

  Sources   Download

MIT

The Requires

 

The Development Requires

service php silex provider finder serviceprovider