From 91b16b90a0e7cf76b767316e5843146125b4ad25 Mon Sep 17 00:00:00 2001 From: Jitendra Adhikari Date: Mon, 5 Apr 2021 20:08:37 +0700 Subject: [PATCH] docs: add parseFromFile --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 57e3d16..a4919bb 100644 --- a/README.md +++ b/README.md @@ -52,4 +52,7 @@ $someJsonText = file_get_contents('...'); // Or you can use static alias of decode: Comment::parse($json, true); + +# Or use file directly +Comment::parseFromFile('/path/to/file.json', true); ```