fd35fabcda790bc754e3bc41938d575d43ab9add
[yaffs-website] / vendor / webflo / drupal-finder / README.md
1 # Drupal Finder
2
3 [![Travis](https://img.shields.io/travis/webflo/drupal-finder.svg)](https://travis-ci.org/webflo/drupal-finder) [![Packagist](https://img.shields.io/packagist/v/webflo/drupal-finder.svg)](https://packagist.org/packages/webflo/drupal-finder)
4
5 Drupal Finder provides a class to locate a Drupal installation in a given path.
6
7 ## Usage
8
9 ```PHP
10 $drupalFinder = new \DrupalFinder\DrupalFinder();
11 if ($drupalFinder->locateRoot(getcwd())) {
12     $drupalRoot = $drupalFinder->getDrupalRoot();
13     $composerRoot = $drupalFinder->getComposerRoot();
14     ...
15 }
16 ```
17
18 ## Examples
19
20 - [Drupal Console Launcher](https://github.com/hechoendrupal/drupal-console-launcher)
21 - [Drush Launcher](https://github.com/drush-ops/drush-launcher)
22
23 ## License
24
25 GPL-2.0+