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

Static website generators in PHP

Static website generators in PHP

98ede30a4a96e7c5547dc964b391e2ed?s=128

Sibiu Web Meetup

November 23, 2019
Tweet

More Decks by Sibiu Web Meetup

Other Decks in Programming

Transcript

  1. Static website generators in PHP by Andrei Rusu Sibiu Web

    Meetup #8 23.11.2019
  2. A few things about me… • Zend Certified Engineer •

    PHP Backend Dev • First time speaker, long time listener Sibiu Web Meetup #8 23.11.2019
  3. 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
  4. 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
  5. Static Site Generators in PHP • Jigsaw • Sculpin •

    Couscous • Handle • Katana • … and others Sibiu Web Meetup #8 23.11.2019
  6. Workflow Sibiu Web Meetup #8 23.11.2019

  7. Generate project Jigsaw Sculpin Sibiu Web Meetup #8 23.11.2019

  8. The Source folder Jigsaw Sculpin Sibiu Web Meetup #8 23.11.2019

  9. Generate the site Jigsaw Sculpin Sibiu Web Meetup #8 23.11.2019

  10. 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
  11. Use Cases • Documentation sites • Presentation sites • CV

    sites • Read-only APIs Sibiu Web Meetup #8 23.11.2019
  12. 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
  13. Thank you Sibiu Web Meetup #8 23.11.2019