neutron / silex-filesystem-provider
A Silex Provider for Symfony Filesystem component
Installs: 137 671
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- php: >=5.3.3
- pimple/pimple: ^3.0
- symfony/filesystem: ~2.8|^3.0|^4.0
Requires (Dev)
- phpunit/phpunit: ~4.1
This package is auto-updated.
Last update: 2024-10-25 06:29:33 UTC
README
#Silex Filesystem Service Provider
This is a Silex Service Provider for Symfony Filesystem Component.
Installation
Add it using composer :
{ "require": { "neutron/silex-filesystem-provider": "dev-master" } }
Usage
use Silex\Application; use Neutron\Silex\Provider\FilesystemServiceProvider; $app = new Application(); // Register the filesystem $app->register(new FilesystemServiceProvider()); // Just use it as any Silex service if (!$app['filesystem']->exists('any-absolute-or-relative-path...')) { throw new \Namespace\PathNotFoundCustomException(); }
Information
Read more information about the Symfony Filesystem Component
License
This is released under the MIT license