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

Mark Baker (18.May.2017 at 09:20, 40 min)
Talk at PHP Tour 2017 Nantes (English - UK)

Rating: 5 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: 5 of 5

18.May.2017 at 16:32 by Mathieu Santostefano (53 comments) via Web2 LIVE

Présentation super intéressante ! J'ai découvert plusieurs choses que je ne soupçonnait pas dans PHP ;) Merci

Rating: 4 of 5

19.May.2017 at 15:40 by Arnaud Langlade (21 comments) via Web2 LIVE

Interesting talk! It is still good to know what will change in a major version! Thank you.

Rating: 5 of 5

19.May.2017 at 21:30 by Romain Gautier (103 comments)

Rating: 5 of 5

19.May.2017 at 23:31 by Anonymous

Rating: 5 of 5

20.May.2017 at 11:01 by lnc (51 comments) via Web2 LIVE

I learned a lot, thanks

Rating: 5 of 5

20.May.2017 at 14:42 by Thomas Sieffert (29 comments) via Web2 LIVE

Great talk

Rating: 5 of 5

22.May.2017 at 14:01 by Jacques Billard (4 comments) via Web2 LIVE


© 2019