Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via composer

webflo/drupal-finder 1.2.2

Helper class to locate a Drupal installation from a given path.
Package summary
Share
1
issue
1
high severity
license
1
1
license
1
GPL-2.0-or-later
Package created
7 Oct 2016
Version published
27 Oct 2020
Maintainers
1
Total deps
1
Direct deps
0
License
GPL-2.0-or-later

Issues

1

1 high severity issue

high
Recommendation: Validate that the package complies with your license policy
via: webflo/drupal-finder@1.2.2
Collapse
Expand

Licenses

GNU General Public License v2.0 or later

Strongly Protective
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
webflo/drupal-finder@1.2.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of webflo/drupal-finder 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does webflo/drupal-finder do?

Webflo/drupal-finder is a handy Composer package that helps users to locate a Drupal installation from any given path. This useful class enables developers and users who work with Drupal to conveniently find the root directory of their Drupal installations.

How do you use webflo/drupal-finder?

Utilizing webflo/drupal-finder is a straightforward process and the package can be used following these steps:

Firstly, you need to instantiate a new DrupalFinder object. After that, call the locateRoot method on this object, passing in the current working directory. If a Drupal installation is identified in that path, it will return true, and you can then use getDrupalRoot and getComposerRoot methods to retrieve the Drupal and Composer root directories respectively.

The PHP code below demonstrates how one would use the DrupalFinder:

$drupalFinder = new \DrupalFinder\DrupalFinder();
if ($drupalFinder->locateRoot(getcwd())) {
    $drupalRoot = $drupalFinder->getDrupalRoot();
    $composerRoot = $drupalFinder->getComposerRoot();
    ...
}

Where are the webflo/drupal-finder docs?

The documentation for webflo/drupal-finder is available at the project's GitHub page. The examples and usage instructions provided in the readme file guide both PHP and Drupal developers through the process. Additional examples of how this package is used in other projects can be found in the "Examples" section -- specifically in the Drupal Console Launcher and Drush Launcher projects.