Does the SPL still have any relevance in the Brave New World of PHP7?

Mark Baker (26.Jan.2018 at 18:20, 1 hr )
Talk at PHPBenelux Conference 2018 (English - US)

Rating: 4 of 5

Largely ignored under PHP5, the SPL (Standard PHP Library) offered a powerful toolbox for developers, ranging from it’s horrendously named collection of Iterators, and a series of Interfaces allowing us to build our own, to DataStructures, and Object Oriented file handling classes. Fast and powerful, the SPL provided a stable and well-tested library of classes and functions. But with all the performance and memory improvements of PHP7, SPL has remained unchanged, and feels like it has been left behind. Now, Generators provide a simpler replacement for writing our own Iterators without all the boilerplate code that SPL’s core Iterators require, especially with the introduction of “yield from” in PHP7 for recursive Iterators. And PHP7’s performance improvements allow us to write our own Datastructures (based around standard PHP arrays, or custom objects) that are as efficient as SPL’s basic Datastructures.

So does SPL still have any purpose or value in this new world of PHP7? Let’s find out!

Who are you?

Claim talk

Talk claims have been moved to the new site.

Please login to the new site to claim your talk

Comments closed.


Rating: 4 of 5

27.Jan.2018 at 09:09 by Martin V (16 comments) via Web2 LIVE

I didn't know few SPL features, like types, thanks for that.

Rating: 5 of 5

27.Jan.2018 at 10:03 by Michiel Kodde (9 comments) via Web2 LIVE

Talk of the day for me. Mr. Baker clearly did his homework on this one!

Rating: 3 of 5

27.Jan.2018 at 13:39 by Johan Vervloet (49 comments) via Web2 LIVE

Interesting talk.

Rating: 4 of 5

29.Jan.2018 at 09:29 by Timo Schinkel (9 comments) via Web2 LIVE

Great informative talk on the current state of SPL. I kind of hoped to get a strong answer on the question that is the title of this talk :)

Rating: 4 of 5

30.Jan.2018 at 08:48 by Frits van Tiel (13 comments) via Web2 LIVE

Nice reminder of the good and bad in SPL

Rating: 3 of 5

30.Jan.2018 at 13:09 by Ruben Woudenberg (13 comments) via Web2 LIVE

Interesting topic that brought some useful info, but missed a clear-cut conclusion because its nature. The presentation style was too laid back for me and the repetition about iterators and data structures (e.g. Rudi Theunissen's) was a bit too much.

© 2019