https://github.com/studio24/requirements-checker
Simple PHP requirements checker for hosting environments
https://github.com/studio24/requirements-checker
Last synced: 11 months ago
JSON representation
Simple PHP requirements checker for hosting environments
- Host: GitHub
- URL: https://github.com/studio24/requirements-checker
- Owner: studio24
- License: mit
- Created: 2018-01-30T11:25:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T14:25:51.000Z (over 8 years ago)
- Last Synced: 2025-07-08T03:19:44.402Z (11 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Requirements checker
Simple PHP requirements checker for checking minimum requirements for PHP web applications at your hosting environment.
## Usage
This is a standalone script, simply copy this to your hosting environment and run on the CLI:
```
php requirements.php
```
You can optionally email the output via the email parameter:
```
php requirements.php --email=name@domain.com
```
## Configuration
Add requirements to the `$req` array. This accepts:
* `php_version` - minimum PHP version required
* `modules` - PHP modules required
* `ini` - PHP ini settings required
For ini settings express boolean ini settings as `'1'` or `'0'`
A limited number of ini settings are supported at present, you can add new ones in the `check_php_ini` function.
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
## Credits
- [Simon R Jones](https://github.com/simonrjones)
- Inspired by [Symfony requirements checker](https://github.com/symfony/requirements-checker)