Slide 1

Slide 1 text

Static website generators in PHP by Andrei Rusu Sibiu Web Meetup #8 23.11.2019

Slide 2

Slide 2 text

A few things about me… • Zend Certified Engineer • PHP Backend Dev • First time speaker, long time listener Sibiu Web Meetup #8 23.11.2019

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

Static Site Generators in PHP • Jigsaw • Sculpin • Couscous • Handle • Katana • … and others Sibiu Web Meetup #8 23.11.2019

Slide 6

Slide 6 text

Workflow Sibiu Web Meetup #8 23.11.2019

Slide 7

Slide 7 text

Generate project Jigsaw Sculpin Sibiu Web Meetup #8 23.11.2019

Slide 8

Slide 8 text

The Source folder Jigsaw Sculpin Sibiu Web Meetup #8 23.11.2019

Slide 9

Slide 9 text

Generate the site Jigsaw Sculpin Sibiu Web Meetup #8 23.11.2019

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

Use Cases • Documentation sites • Presentation sites • CV sites • Read-only APIs Sibiu Web Meetup #8 23.11.2019

Slide 12

Slide 12 text

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

Slide 13

Slide 13 text

Thank you Sibiu Web Meetup #8 23.11.2019