Yaffs site version 1.1
[yaffs-website] / vendor / webflo / drupal-finder / README.md
1 # Drupal Finder
2
3 [![Build Status](https://travis-ci.org/webflo/drupal-finder.svg?branch=master)](https://travis-ci.org/webflo/drupal-finder)
4
5 Drupal Finder provides a class to locate a Drupal installation in a given path.
6
7 ## Usage
8
9 ```
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/blob/master/bin/drupal.php)
21 - [Drush Shim](https://github.com/webflo/drush-shim) (with webflo/drupal-finder:^0.0.1)
22
23 ## License
24
25 GPL-2.0+