Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Static website generators in PHP

Static website generators in PHP

Avatar for Sibiu Web Meetup

Sibiu Web Meetup

November 23, 2019
Tweet

More Decks by Sibiu Web Meetup

Other Decks in Programming

Transcript

  1. A few things about me… • Zend Certified Engineer •

    PHP Backend Dev • First time speaker, long time listener Sibiu Web Meetup #8 23.11.2019
  2. Talking Points • What are Static Site Generators? • Static

    Site Generators in PHP • Workflow • What are Collections? • Use cases for Static Site Generators. Sibiu Web Meetup #8 23.11.2019
  3. What are they? • Takes formatted text and converts it

    into web resources. • For Example: • Markdown to HTML • about-us.md => /about-us/index.html – with the URL: example.com/about-us/ • 2019-01-07-my-first-post.md => /2019/01/07/my-first-post/index.html – with the URL: example.com/2019/01/07/my-first-post/ • RSS Feed • Sitemap Sibiu Web Meetup #8 23.11.2019
  4. Static Site Generators in PHP • Jigsaw • Sculpin •

    Couscous • Handle • Katana • … and others Sibiu Web Meetup #8 23.11.2019
  5. Collections • Can be defined in configuration • Have corresponding

    “_collectionname” folder in the source folder • Configured individually with YAML Frontmatter • Access to them anywhere in the template Sibiu Web Meetup #8 23.11.2019
  6. Use Cases • Documentation sites • Presentation sites • CV

    sites • Read-only APIs Sibiu Web Meetup #8 23.11.2019
  7. Key Takeaways • Takes collections • Formatted in Markdown or

    Textile • With YAML Frontmatter • To generate web resources • HTML • Asset management (built in for Jigsaw) • XML • JSON Sibiu Web Meetup #8 23.11.2019