Download the PHP package arcanisgk/web-cli-detector without Composer
On this page you can find all versions of the php package arcanisgk/web-cli-detector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arcanisgk/web-cli-detector
More information about arcanisgk/web-cli-detector
Files in arcanisgk/web-cli-detector
Package web-cli-detector
Short Description WEB CLI detector: is a library that allows any development to detect if it is running through the PHP CLI service or a Web Server
License MIT
Informations about the package web-cli-detector
WEB-CLI-Detector
Detection of execution by command (Terminal) or web environment.
Acronym: [WEB-CLI-Detector].
Name: WEB-CLI-Detector.
Dependencies: Stand Alone / PHP v7.4.
What does [WEB-CLI-Detector] do?
is a very simple PHP [WEB-CLI-Detector] implementation that allows you to easily validate if the PHP execution is taking place from a web environment or from the execution of commands (terminal)
Why use [WEB-CLI-Detector]?
Developers need the ability to validate in which environment their libraries or applications are running, this helps decision making depending on the needs or requirements, making it easier for all developers on the same team to use the same validation.
Help to improve [WEB-CLI-Detector]?
if you want to collaborate with the development of the library; You can express your ideas or report any situation related to this in: https://github.com/arcanisgk/WEB-CLI-Detector/issues
[WEB-CLI-Detector] Configuration:
None necessary.
[WEB-CLI-Detector] Installation:
[WEB-CLI-Detector] Usage:
Instance of Class:
Implementation of Class:
Other Way to implement:
this is an option to instance and validate in one line
Example Output:
CLI Test
Web Test
Contributors
- (c) 2020 - 2022 Walter Francisco Núñez Cruz [email protected]