gist($url, $file = null)

Embeds a Gist from Github by URL

  • $url (string)
  • $file (string)
    Which file to embed
  • return (string)

Example

<?= gist('https://gist.github.com/bastianallgeier/b79615a9f7ca76c810b7') ?>