diff --git a/README.md b/README.md index 3a10978..04afb21 100644 --- a/README.md +++ b/README.md @@ -298,6 +298,38 @@ The app includes an Internet Access Policy file, so if you're using something li +
+How do I various presets to show up? + +You must set these presets up in a JSON file, located in `~/.config/phpmon/config.json`. + +You must have set up at least one valid preset for this presets to work in PHP Monitor. + +Here's an example of a working preset: + +
+{
+    "scan_apps": [],
+    "presets": [
+        {
+            "name": "Legacy Project",
+            "php": "8.0",
+            "extensions": {
+                "xdebug": false
+            },
+            "configuration": {
+                "memory_limit": "128M",
+                "upload_max_filesize": "128M",
+                "post_max_size": "128M"
+            }
+        }
+    ]
+}
+
+ +You can omit the `php` key in the preset if you do not wish for the preset to switch to a given PHP version. +
+
How do I get various applications to show up in the domain list's right-click menu? @@ -309,11 +341,12 @@ All of these apps should just be detected correctly, no matter their location on To see which files are checked to determine availability, see [this file](./phpmon/Domain/Helpers/Application.swift). -You can add your own apps by creating and editing a `~/.config/phpmon/config.json` file, with the following entry: +You can add your own apps by creating and editing a `~/.config/phpmon/config.json` file, and make sure the `scan_apps` key is set:
 {
-    "scan_apps": ["Xcode", "Kraken"]
+    "scan_apps": ["Xcode", "Kraken"],
+    "presets": []
 }