{"id":1709,"date":"2019-04-09T08:13:14","date_gmt":"2019-04-08T23:13:14","guid":{"rendered":"https:\/\/n8finch2024.local\/?p=1709"},"modified":"2022-03-11T06:44:29","modified_gmt":"2022-03-10T21:44:29","slug":"templating-in-php-with-rest-apis","status":"publish","type":"post","link":"https:\/\/n8finch2024.local\/templating-in-php-with-rest-apis\/","title":{"rendered":"Templating in PHP with REST APIs"},"content":{"rendered":"\n

Here are the slides for the presentation I gave at Madison Area Technical College’s Advanced PHP class in the spring of 2019 semester. <\/p>\n\n\n\n

The main objective is to learn some templating principles and see how partial templates can be managed in a larger project, and how templates can work with data, specifically received from REST APIs.<\/p>\n\n\n\n\n\n\n\n

This project uses the Twig templating engine<\/a>.<\/p>\n\n\n\n

PDF Slides<\/a><\/strong><\/p>\n\n\n\n

Repos<\/h3>\n\n\n\n

https:\/\/github.com\/n8finch\/twig-template-testing<\/a><\/p>\n\n\n\n

https:\/\/github.com\/n8finch\/php-templating-matc<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Here are the slides for the presentation I gave at Madison Area Technical College’s Advanced PHP class in the spring of 2019 semester. The main objective is to learn some templating principles and see how partial templates can be managed in a larger project, and how templates can work with data, specifically received from REST […]<\/p>\n","protected":false},"author":1,"featured_media":1712,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[1,46,8],"tags":[],"yoast_head":"\nTemplating in PHP with REST APIs | Nate Finch<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Templating in PHP with REST APIs | Nate Finch\" \/>\n<meta property=\"og:description\" content=\"Here are the slides for the presentation I gave at Madison Area Technical College’s Advanced PHP class in the spring of 2019 semester. The main objective is to learn some templating principles and see how partial templates can be managed in a larger project, and how templates can work with data, specifically received from REST […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/\" \/>\n<meta property=\"og:site_name\" content=\"Nate Finch\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-08T23:13:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-10T21:44:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/n8finch-site.site.strattic.io\/wp-content\/uploads\/2020\/11\/templating-rest-apis_key_qmzjmw.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1412\" \/>\n\t<meta property=\"og:image:height\" content=\"780\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nate\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@n8finch\" \/>\n<meta name=\"twitter:site\" content=\"@n8finch\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nate\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/\"},\"author\":{\"name\":\"Nate\",\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce\"},\"headline\":\"Templating in PHP with REST APIs\",\"datePublished\":\"2019-04-08T23:13:14+00:00\",\"dateModified\":\"2022-03-10T21:44:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/\"},\"wordCount\":85,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce\"},\"articleSection\":[\"Blog\",\"Talks\",\"Web Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/\",\"url\":\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/\",\"name\":\"Templating in PHP with REST APIs | Nate Finch\",\"isPartOf\":{\"@id\":\"https:\/\/n8finch.local\/#website\"},\"datePublished\":\"2019-04-08T23:13:14+00:00\",\"dateModified\":\"2022-03-10T21:44:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/n8finch.local\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Templating in PHP with REST APIs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/n8finch.local\/#website\",\"url\":\"https:\/\/n8finch.local\/\",\"name\":\"Nate Finch\",\"description\":\"All the things, keeping it clever...🤓\",\"publisher\":{\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/n8finch.local\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce\",\"name\":\"Nate\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/n8finch2024.local\/wp-content\/uploads\/2020\/11\/nate-pic_ykd6mq.jpg\",\"contentUrl\":\"https:\/\/n8finch2024.local\/wp-content\/uploads\/2020\/11\/nate-pic_ykd6mq.jpg\",\"width\":796,\"height\":792,\"caption\":\"Nate\"},\"logo\":{\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Templating in PHP with REST APIs | Nate Finch","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/","og_locale":"en_US","og_type":"article","og_title":"Templating in PHP with REST APIs | Nate Finch","og_description":"Here are the slides for the presentation I gave at Madison Area Technical College’s Advanced PHP class in the spring of 2019 semester. The main objective is to learn some templating principles and see how partial templates can be managed in a larger project, and how templates can work with data, specifically received from REST […]","og_url":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/","og_site_name":"Nate Finch","article_published_time":"2019-04-08T23:13:14+00:00","article_modified_time":"2022-03-10T21:44:29+00:00","og_image":[{"width":1412,"height":780,"url":"https:\/\/n8finch-site.site.strattic.io\/wp-content\/uploads\/2020\/11\/templating-rest-apis_key_qmzjmw.jpg","type":"image\/jpeg"}],"author":"Nate","twitter_card":"summary_large_image","twitter_creator":"@n8finch","twitter_site":"@n8finch","twitter_misc":{"Written by":"Nate"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/#article","isPartOf":{"@id":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/"},"author":{"name":"Nate","@id":"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce"},"headline":"Templating in PHP with REST APIs","datePublished":"2019-04-08T23:13:14+00:00","dateModified":"2022-03-10T21:44:29+00:00","mainEntityOfPage":{"@id":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/"},"wordCount":85,"commentCount":0,"publisher":{"@id":"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce"},"articleSection":["Blog","Talks","Web Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/","url":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/","name":"Templating in PHP with REST APIs | Nate Finch","isPartOf":{"@id":"https:\/\/n8finch.local\/#website"},"datePublished":"2019-04-08T23:13:14+00:00","dateModified":"2022-03-10T21:44:29+00:00","breadcrumb":{"@id":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/n8finch-site.site.strattic.io\/templating-in-php-with-rest-apis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/n8finch.local\/"},{"@type":"ListItem","position":2,"name":"Templating in PHP with REST APIs"}]},{"@type":"WebSite","@id":"https:\/\/n8finch.local\/#website","url":"https:\/\/n8finch.local\/","name":"Nate Finch","description":"All the things, keeping it clever...🤓","publisher":{"@id":"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/n8finch.local\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce","name":"Nate","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/n8finch.local\/#\/schema\/person\/image\/","url":"https:\/\/n8finch2024.local\/wp-content\/uploads\/2020\/11\/nate-pic_ykd6mq.jpg","contentUrl":"https:\/\/n8finch2024.local\/wp-content\/uploads\/2020\/11\/nate-pic_ykd6mq.jpg","width":796,"height":792,"caption":"Nate"},"logo":{"@id":"https:\/\/n8finch.local\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/posts\/1709"}],"collection":[{"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/comments?post=1709"}],"version-history":[{"count":5,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/posts\/1709\/revisions"}],"predecessor-version":[{"id":1892,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/posts\/1709\/revisions\/1892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/media\/1712"}],"wp:attachment":[{"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/media?parent=1709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/categories?post=1709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/tags?post=1709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}