Skip to content

Presentation Repo. Displaying how Iterators and Generators work in PHP.

Notifications You must be signed in to change notification settings

Rudis1261/Looping

Repository files navigation

Looping

PHP - A presentation on Iterators & Generators


This is all the code you will need to be able to follow along with my presentation on Iterators & Generators in PHP.

VIEW PRESENTATION

  • With some interesting applications I have discovered along the way.
  • Working examples
  • DockerFiles for both PHP56 and PHP7

Talk on Youtube

Getting Started

git clone https://github.com/drpain/Looping.git
git submodule init
git submodule update

Running Dockers.

Requires Docker to be installed already!

PHP7 Sorry this is larger, it's my dev build including debugging extras

# Clone in
git clone https://github.com/drpain/Looping.git

# Go to the image of your choice
cd Looping/docker/php7-cli

# Run the build script which pulls the image and builds it
./build.sh

# And wait, for everything to complete.

PHP56

# Clone in
git clone https://github.com/drpain/Looping.git

# Go to the image of your choice
cd Looping/docker/php56-cli

# Run the build script which pulls the image and builds it
./build.sh

# And wait, for everything to complete.

Links & Credits

Iterators 101, by Stefan Froelich:

http://www.sitepoint.com/using-spl-iterators-1/


This was largely inspired by an article I read written by Nikita Popov regaring PHP Generators and Iterators:

http://nikic.github.io/2012/12/22/Cooperative-multitasking-using-coroutines-in-PHP.html

About

Presentation Repo. Displaying how Iterators and Generators work in PHP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published