There’s a PHP package to display errors in the browser called whoops. It has the feature to open files in a text editor as detailed in their docs here: https://github.com/filp/whoops/blob/master/docs/Open%20Files%20In%20An%20Editor.md
It doesn’t explicitly support Atom, but it does detail how to generically open files by using the following command:
Does atom support this? Can I just substitute
atom in the above line?