No need to use PHP.
Example of forms with a static website or static site generator :
https://forestry.io/blog/5-ways-to-handle-forms-on-your-stat...
Example of comments for static sites or SSG :
https://darekkay.com/blog/static-site-comments/
( I recommend personally Isso )