acquia/drupal-environment-detector
最新稳定版本:1.7.0
Composer 安装命令:
composer require acquia/drupal-environment-detector
包简介
Provides common methods for detecting the current Acquia environment
README 文档
README
This package provides a static class that your application can use to detect various characteristics of the current hosting environment.
It also provides static helper classes that provide canonical information about any arbitrary environment.
Detector class
Scans environment variables and settings files to determine several characteristics of the current hosting environment, including:
- Hosting provider (Acquia or non-Acquia)
- Hosting type (ACE, ACSF)
- Hosting realm (prod, devcloud, gardens, etc)
- Environment stage (dev, stage, prod)
- Environment type (IDE, ODE/CDE)
- Common site properties (name, file path)
See all available methods in src/AcquiaDrupalEnvironmentDetector.php.
Helper classes
The additional static classes allow you to predict the characteristics of any Acquia hosting environment given the site group and environment name, including:
- A mapping of Acquia environment names (e.g.
01test,stg,live) to human-readable standard names (dev,stage,prod) - A set of standard filesystem paths for things like the private files directory or
sites.jsonfile on ACSF.
Installation and usage
In your project, require the plugin with Composer:
composer require acquia/drupal-environment-detector
License
Copyright (C) 2020 Acquia, Inc.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
统计信息
- 总下载量: 5.56M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 17
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-01-04