Mercurial > hg > cmmr2012-drupal-site
view vendor/webflo/drupal-finder/README.md @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
line wrap: on
line source
# Drupal Finder [](https://travis-ci.org/webflo/drupal-finder) [](https://packagist.org/packages/webflo/drupal-finder) Drupal Finder provides a class to locate a Drupal installation in a given path. ## Usage ```PHP $drupalFinder = new \DrupalFinder\DrupalFinder(); if ($drupalFinder->locateRoot(getcwd())) { $drupalRoot = $drupalFinder->getDrupalRoot(); $composerRoot = $drupalFinder->getComposerRoot(); ... } ``` ## Examples - [Drupal Console Launcher](https://github.com/hechoendrupal/drupal-console-launcher) - [Drush Launcher](https://github.com/drush-ops/drush-launcher) ## License GPL-2.0+