Skip to content

Commit d660fbe

Browse files
authored
Updated readme with minimum PHP requirement
Also added information about making it compatible with PHP 7.0, just in case.
1 parent 240b965 commit d660fbe

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A clean and responsive interface for Zend OPcache information, showing statistics, settings and cached files, and providing a real-time update for the information.
44

5-
This interface uses ReactJS and Axios and is for modern browsers.
5+
This interface uses ReactJS and Axios and is for modern browsers and requires a minimum of PHP 7.1.
66

77
[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=acollington&url=https://github.com/amnuts/opcache-gui&title=opcache-gui&language=&tags=github&category=software)
88
If you like this software or find it helpful then maybe you'll consider supporting my efforts in some way by [signing up to Flattr and leaving a micro-donation](https://flattr.com/@acollington).
@@ -236,6 +236,20 @@ Releases of the GUI are available at:
236236

237237
https://github.com/amnuts/opcache-gui/releases/
238238

239+
### Making is compatible with PHP 7.0
240+
241+
The script requires PHP 7.1 or above. I'm not tempted to downgrade the code to make it compatible with version 7.0, and hopefully most people would have upgraded by now. But I really do appreciate that sometimes people just don't have the ability to change the version of PHP they use because it's out of their control. So if you're one of the unlucky ones, you can make the following changes to `index.php` (or `Service.php` and run the build script). For the lines:
242+
243+
```
244+
public function getOption(?string $name = null)
245+
246+
public function getData(?string $section = null, ?string $property = null)
247+
248+
public function resetCache(?string $file = null): bool
249+
```
250+
251+
It'll just be a case of removing the `?` from each of the params.
252+
239253
# License
240254

241255
MIT: http://acollington.mit-license.org/

0 commit comments

Comments
 (0)