Giter Club home page Giter Club logo

build-a-static-site-generator-with-spl-iterators's Introduction

Instructor: Matthew Setter

In PHP, we're all familiar with the foreach, for, do-while, and while looping constructs—constructs which help us quickly, and easily, iterate over data structures in our applications.

But did you know that they're just the tip of the iceberg, and that you can use these constructs in a much more powerful way?

In this course, Envato Tuts+ instructor Matthew Setter will introduce you to SPL iterators, and teach you how to create iterator classes which allow you to use the looping constructs to iterate over your data in a more powerful, more flexible, and more elegant way than you've done before. Along the way, you'll build a simple static site generator which reads markdown from a filesystem directory listing and creates hydrated value objects which model the data they contain.

Source Files Description

This repository contains the completed source code for the course project - a simple static site generator. The course project is created largely with a small collection of PHP's SPL iterators, along with a few other packages to make the process as simple as possible.

The project is an application which, primarily, uses, some SPL iterators to provide the following functionality:

  • Retrieve a filesystem directory listing
  • Filter out any non-markdown file
  • Create a list of hydrated value objects which model the data in the Markdown files
  • Provide a range of functionality for filtering, sub-filtering, and rendering the information collated

Through this hands-on, practical project, the student will see how effective iterators can be in creating simple, maintainable, and reusable code.


These are source files for the Tuts+ course: Build a Static Site Generator With SPL Iterators

Available on Tuts+. Teaching skills to millions worldwide.

build-a-static-site-generator-with-spl-iterators's People

Contributors

adamarthurryan avatar maltblue avatar settermjd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.