Is there a php editor with code/form view that can be installed on CPanel?
Not to my knowledge the way you are asking the question.
Why not use sublime text or phpstorm or Microsoft VS Code?
These would be better or editing code than using CPanel.
You could try eXtplorer available under Softaculous in CPanel. It works well for php, css js and jq.