Just go to your discord server -> Server Settings -> Widget -> "Enable Server Widget" and then you copy the string which is below "Premade Widget".
Now you can insert that string into any html page (you can also echo it via php if you're using templates) and it'll show your discord server.