Download the PHP package fleshgrinder/exit-codes without Composer
On this page you can find all versions of the php package fleshgrinder/exit-codes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fleshgrinder/exit-codes
More information about fleshgrinder/exit-codes
Files in fleshgrinder/exit-codes
Package exit-codes
Short Description Library providing constants for common CLI exit codes.
License Unlicense
Homepage https://github.com/Fleshgrinder/php-exit-codes
Informations about the package exit-codes
PHP Exit Codes
Commonly used exit codes for usage in console applications and commands.
Using appropriate exit codes greatly helps users of your project or library to include them in their own scripting and take appropriate decisions based on the returned code. Simply always using the catch-all exit code 1, as is most common, does not help the user in any way unless there is only a single source of error in the complete script; which is very unlikely.
Installation
Open a terminal, enter your project directory and execute the following command to add this package to your dependencies:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Usage
The constants are automatically loaded if you include the Composer provided auto-loader in your script.
Weblinks
- Advanced Bash-Scripting Guide: Appendix E. Exit Codes With Special Meanings
- FreeBSD Man Pages:
man sysexits(3)
License
This is free and unencumbered software released into the public domain.