Mercurial > hg > isophonics-drupal-site
annotate vendor/webflo/drupal-finder/README.md @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | af1871eacc83 |
children |
rev | line source |
---|---|
Chris@18 | 1 # Drupal Finder |
Chris@18 | 2 |
Chris@18 | 3 [](https://travis-ci.org/webflo/drupal-finder) [](https://packagist.org/packages/webflo/drupal-finder) |
Chris@18 | 4 |
Chris@18 | 5 Drupal Finder provides a class to locate a Drupal installation in a given path. |
Chris@18 | 6 |
Chris@18 | 7 ## Usage |
Chris@18 | 8 |
Chris@18 | 9 ```PHP |
Chris@18 | 10 $drupalFinder = new \DrupalFinder\DrupalFinder(); |
Chris@18 | 11 if ($drupalFinder->locateRoot(getcwd())) { |
Chris@18 | 12 $drupalRoot = $drupalFinder->getDrupalRoot(); |
Chris@18 | 13 $composerRoot = $drupalFinder->getComposerRoot(); |
Chris@18 | 14 ... |
Chris@18 | 15 } |
Chris@18 | 16 ``` |
Chris@18 | 17 |
Chris@18 | 18 ## Examples |
Chris@18 | 19 |
Chris@18 | 20 - [Drupal Console Launcher](https://github.com/hechoendrupal/drupal-console-launcher) |
Chris@18 | 21 - [Drush Launcher](https://github.com/drush-ops/drush-launcher) |
Chris@18 | 22 |
Chris@18 | 23 ## License |
Chris@18 | 24 |
Chris@18 | 25 GPL-2.0+ |