An open API service indexing awesome lists of open source software.

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

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)