|Classes of Francisco Núñez||PHP Web or Cli Detect||README.md||Download|
Detection of execution by command (Terminal) or web environment.
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
Instance of Class:
Implementation of Class:
Other Way to implement:
this is an option to instance and validate in one line