alexkomaralex / file-search-bundle
Allow to find files recursively by content.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
- ext-mbstring: *
- symfony/config: ~2.5
- symfony/console: ~2.5
- symfony/dependency-injection: ~2.5
- symfony/yaml: ~2.5
Requires (Dev)
- phpunit/phpunit: >=3.7.0
- symfony/browser-kit: ~2.5
- symfony/debug: ~2.5
- symfony/framework-bundle: ~2.5
This package is not auto-updated.
Last update: 2024-11-09 17:19:41 UTC
README
The AlexkomaralexFileSearchBundle allows serch files by content in Symfony2. It provides a flexible interface to handle different search adapters.
Features include:
- Console command
- Symfony finder adapter
- PHP Directory Iterator adapter
- Unit/Functional tested
#Installation
- Install bundle via composer
composer require alexkomaralex/file-search-bundle dev-master
- Enable the bundle in AppKernel.php:
new Alexkomaralex\FileSearchBundle\AlexkomaralexFileSearchBundle()
#Configuration
Use original services.yml as example.
Define any new search adapter as service and inject it into search command service Or use one of two predefined adapters.
#Usage
php app/console fsearch:find [--path=PATH] <query>
- path - where to find
- query - what to find
Example: php app/console fsearch:find --path=app/config database