The GrUSP, the Italian PHP user group, organises the 14th phpDay, a conference dedicated to PHP for the enterprise.

Friday 12th May 2017

09:45
24
Code Manifesto
Keynote by Graham Daniels in Track 1 (1 hour)

The Code Manifesto is a set of values, created in hopes of guiding our community towards a place that is welcoming, safe, and empowering to all. Currently, our communities are greatly lacking in diversity, and sometimes outright hostile towards the minority members that we do have. In this talk I try to illustrate that problem, and also cover WHY it matters, and finally what we can do to help fix it. I talk about what the Code Manifesto is, why it came to be, and why each of the values were selected.

11:00 The most exciting features of PHP 7.1
Talk by Enrico Zimuel in Track 1 (1 hour)

PHP 7.1 contains new exciting features and improvements that can facilitate the life of many PHP developers. During the talk I will show some of these new features like nullable types, catching of multiple exception, the curl HTTP/2 server push support, void return types, Class constant visibility, authenticated encryption in OpenSSL with GCM and CCM modes, and more.

Climbing the Abstract Syntax Tree
Talk by James Titcumb in Track 2 (1 hour)

The new Abstract Syntax Tree (AST) in PHP 7 means the way our PHP code is being executed has changed. Understanding this new fundamental compilation step is key to understanding how our code is being run. To demonstrate, James will show how a basic compiler works and how introducing an AST simplifies this process. We’ll look into how these magical time-warp techniques* can also be used in your code to introspect, analyse and modify code in a way that was never possible before. After seeing this talk, you'll have a great insight as to the wonders of an AST, and how it can be applied to both compilers and userland code. (*actual magic or time-warp not guaranteed)

Hands on PHPSpec
Workshop by Miro Svrtan in Tutorial (2 hour)

PHPSpec and BDD are cool buzzwords this days in PHP community and I would like to invite you to show you how to build better code with it. I will be live coding few examples to introduce you to PHPSpec features, show you some caveats and by working in small teams build a feature together. So what is PHPSpec? It's a great tool to model (specify) and build your code that has a side effect: you get some tests out of it. It's not a drop in replacement for unit testing (or testing in general) but can help you out build great products in short amount of time.

12:00 Dockerize your unit tests for faster feedback
Talk by Michelangelo van Dam in Track 2 (1 hour)

Ever got the message "Fatal error: Out of memory" when running your unit tests? Or do you have to wait for more than 5 minutes for all of your unit tests to complete? We're using Docker to mitigate these and other issues. In this session I will show you how we have split up a single testsuite of 10K+ tests into manageable unit modules which are executed by Docker micro instances in parallel. And with this set up we test our application on the current PHP version, but it also allows us to test against a new major PHP version the moment it is released or even is available in beta.

17
“Writing code that lasts” … or writing code you won’t hate tomorrow.
Talk by Rafael Dohms in Track 1 (1 hour)

As developers we write code everyday, only to frown at it a week after that. Why do we have such a hard time with code written by others and ourselves, this raging desire to rewrite everything we see? Writing code that survives the test of time and self judgment is a matter of clarity and simplicity. Let's talk about growing, learning and improving our code with calisthenics, readability and good design.

14:30
7
Static Optimization of PHP Bytecode
Talk by Nikita Popov in Track 1 (1 hour)

The PHP compiler turns PHP code into "opcodes", which are then executed on the Zend Virtual Machine. To improve performance, it is possible to optimize these opcodes prior to execution. PHP 7.1 introduces a sophisticated opcode optimization infrastructure, which uses static single assignment (SSA) form and type inference to enable more advanced optimizations. This talk introduces the new optimization infrastructure, the optimizations based on it, and discusses which parts of the PHP language are particularly hostile to this form of optimization. This is an advanced talk, but I will try to present the topic in a way that does not require a strong compiler construction background.

Branching strategies: choose wisely to minimise costs
Talk by Georgiana Gligor in Track 2 (1 hour)

Is your team choosing the branching strategy from the beginning, or is it switching after a while to better accommodate the current project stage? How does this affect you, and what are the costs involved? Multiply this by the number of repositories, each playing a definite role in a large-scale project, and you will want to know how to minimise the impact. In the inception phase, developers are the ones producing code, and oftentimes they choose the project branching strategy that mostly fits their immediate needs. In some teams the developers don't have DevOps knowledge, so when there is a working prototype that needs to see the light of day (err... server), they need a packagist to help them assemble the code so that it can be deployed in a specific environment, which often translates into a branching change. When the codebase matures and bug hunts start to occur, new constraints are imposed, and a more mature strategy is transitioned to. The branching model needs to be simple - so that everyone involved can grasp it quickly, flexible - so it can serve the needs of very different roles within the project lifecycle, adaptable - when you have a particular unforeseen need, it should not be a barrier. See what's already being used by others, ask a few questions that might drive an adaptation of your choice, then choose wisely. Then let your team spend their time on coding rather than painfully switching strategies.

2
Basic CQRS and Event Sourcing with Prooph
Workshop by Marco Pivetta in Tutorial (2 hour)

CQRS and Event Sourcing are challenging if approached for the first time, and especially if done from scratch. We help you installing, configuring and getting Prooph to run. We’ll build a fairly simple event-sourced aggregate in order for you to understand how to organize things inside CQRS/ES stack, and how to massively simplify some problems that usually cause very big performance issues when put at scale.

15:30 Drupal8 for Symfony developers
Talk by Antonio Peric in Track 2 (1 hour)

Drupal8 modernization (new object-oriented base) and adoption of many Symfony components is a huge step in connecting these two amazing communities and amazing projects. Drupal8 is not powered by full-stack Symfony and there is still many differences between these two relatives, but still, Symfony developers should master it easily. This talk is for Symfony developers who don't have experience with Drupal8. It will guide you through routing, controllers, hooks, events, Drupal Console, DI and many other interesting elements that power Drupal8 under the hood. It will also show how to build custom modules Symfony way.

Managing dependencies is more than running "composer update"
Talk by Nils Adermann in Track 2 (1 hour)

You've used Composer so many times now, but how deep is your understanding of your dependencies? Can you get yourself out of every tricky situation? This talk will cover a broad range of dependency management subjects: From assessing the risk, e.g. through BC breaks, introduced into your business critical code by third party software, all the way to hand-on tips for working with composer in the real world, e.g. what to do if composer.lock conflicts during a merge, when your colleagues and you modified dependencies in different ways.

17:00
4
Containing Chaos with Kubernetes
Talk by Terrence Ryan in Track 2 (30 minutes)

Okay, you've made the move to containers and can now write Dockerfiles for everything. How do you manage all of those containers?. Have you found that you traded managing individual machines for managing individual containers? Kubernetes, an Open Source container orchestration engine, can be your answer. We'll explore Kubernetes and see how you can use it to run massive collections of containers that fix their own problems and allow you to move your setup wherever you need to be.

7
Confessions of a Backend Developer
Talk by Richard Fussenegger in Track 1 (30 minutes)

When it comes to PHP architectures and frameworks everybody is always talking about Model–View–Controller (MVC), or sometimes Action–Domain–Responder (ADR). Close attention is usually paid to the Views and Controllers, as well as the whole bootstrapping required to make them work, while the Model is left as an exercise to the user. This makes perfect sense from an open source point of view, as the model is always domain specific. That is exactly why most work in closed source projects—like trivago—concentrates on that part. We will discuss the Clean Architecture, which helps us to manage dependency hell in the domain model. We will further explore Domain-Driven Design (DDD) basics, like value objects and entities, which help us to reason about the various sub-layers of the domain model. Finally, we will have a brief look at how we can use types (read classes) to provide us with certain guarantees.

17:30 How to open source a PHP package
Talk by Jonathan Reinink in Track 1 (30 minutes)

If you've ever dreamed of creating an open source PHP package, this talk is for you. The process can be a little intimidating the first time. Fret not, we'll walk through each step of the PHP Package Checklist (phppackagechecklist.com), ensuring that your project is taken seriously by the rest of the PHP community! We'll look at setting up Composer and auto-loading, semantic versioning, writing unit tests, implementing a continuous integration workflow and more.

Feature Toggles
Talk by Denis Brumann in Track 2 (30 minutes)

When you develop in a fast cycle and want to continuously deploy or when you have a project with lots of customer specific configurations feature toggles are a must and you probably use the simplest one `if () then {}`. When you switch between features in your code you will accumulate technical debt fast and if you don't watch out it will turn into a monster. I will show you how to tame the beast that is feature toggling by showing good practices to introduce more complex toggle conditions, how to separate new and old behaviour and how to easily get rid of them when you don't need them.

Saturday 13th May 2017

09:45
14
NoEstimates: The 10 new principles for Software Projects – predicting without estimating
Keynote by Vasco Duarte in Track 1 (1 hour)

Often we hear that estimating a project is a must. "We can't make decisions without them" we hear often. In this session I'll present examples of how we can predict a release date of a project without any estimates, only relying on easily available data. I'll show how we can follow progress on a project at all times without having to rely on guesswork, and we will review how large, very large and small projects have already benefited from this in the past. At the end of the session you will be ready to start your own #NoEstimates journey.

11:00 The formula to creating awesome docs
Talk by Jonathan Reinink in Track 2 (1 hour)

We all like to complain about bad documentation, but how many of us actually know how to create good docs? Quality docs are vital to the success of technical projects, and yet so often they're an afterthought. In this talk I'll show you very specifically how to create rock solid docs that your users will love. I'll cover the ideal layout, branding principles, design techniques, syntax highlighting, content organization and more!

Modern PHP Standards and Community
Talk by Ben Edmunds in Track 1 (1 hour)

Learn how to structure and maintain a modern day PHP project using the latest standards. We'll walk through recent language improvements and how they will affect your day to day development. This will use code examples to give you in depth, real world examples of usage. We'll also cover the latest community initiatives and standards including the PHPFIG along with the PSRs they have introduced.

1
Building middleware applications with Zend Framework 3
Workshop by Enrico Zimuel in Tutorial (2 hour)

Zend Framework 3 offers a new package to write PHP application using a middleware approach. This new package is zend-expressive, a micro-framework supporting the PSR-7 standard. In this tutorial we'll show how to build performant, well-structured, and reusable web applications using zend-expressive. We'll show how to design and implement simple web applications, web APIs, and complex web architectures using dependency injection containers, routing systems, and template adapters. Preparation instructions: https://github.com/ezimuel/zend-expressive-workshop/blob/master/README.md

12:00 JWT - To authentication & beyond!
Talk by Luis Cobucci in Track 1 (1 hour)

Tokens are widely used to identify resources and try to add some security to insecure environments, but sometimes the management of those identifiers can get a bit complex - even more on distributed systems. What if we could have an intelligent token, one that simplifies the way things works without losing integrity or security? In this talk we present Json Web Tokens as an alternative for smart and self contained tokens, explaining how to use each claim and giving some common use cases.

The Science of Code Reviews
Talk by Rick Kuipers in Track 2 (1 hour)

We all make mistakes, as much as we try to write flawless code, every now and then an error slips through. In order to reduce this number we do code reviews to ensure the code meets certain standards and to see if the feature was properly implemented. But how do you do a good code review? How do you handle technical discussions? How do you keep your reviews focused and your discussions relevant? In this talk I would like to show you how you can do proper code reviews, what to look out for when doing them, how to give feedback to the developer and a bunch of other tips to improve this process.

14:30
3
Face detection in PHP
Talk by Michelle Sanver in Track 1 (1 hour)

Add face detection to our image service Rokka.io, they said. It'll be easy, they said. Just a few calls to the OpenCV extension, they said. Boy, were they wrong. Follow along on our epic journey to do face detection in PHP and see the challenges we faced, the mistakes we made and how we triumphed in the end.

4
Overriding Symfony in a million ways
Talk by Sarah Khalil in Track 2 (1 hour)

During this session, we will have a look at how easy it is to override everything in a Symfony application. We'll see how the directory structure can be adapted to your needs, but more importantly, we will learn how to override any Symfony feature by writing some custom event listeners or by tweaking the Dependency Container configuration.

15:00
4
Async PHP with ReactPHP and AMPHP
Talk by Stefano Torresi in Unconference (30 minutes)

-

15:30
5
Extremely defensive PHP
Talk by Marco Pivetta in Track 1 (1 hour)

Resistant, highly testable, safe and maintainable code: or not? There are a thousand ways to break your code, and a lot of ways to prevent that from happening. Let's explore defensive programming and learn how to protect our code from invalid usage.

A bird's eye view on API development
Talk by Frederick Vanbrabant in Track 2 (1 hour)

We all know how to develop an API right? You just churn out a bit of JSON and call it a day... In this talk we're going to dig just a bit deeper then that. How do I choose Http codes, when should I use what verb, how do I structure endpoints, and what is this HATEOAS thing? After we've covered the basics, we'll move on to some more advanced topics. This will include stuff like authentication, versioning and custom headers. Even tho the talk will aim itself around people who are new to API development, developers from all skill levels will walk away with something learned.

15:45
1
GIT - How to unfuck
Talk by Melanie Patrick in Unconference (30 minutes)

-

16:15 Anxiety driven development
Talk by Nicole Bartolini in Unconference (15 minutes)

Anxiety leads us to bad decisions, makes us feel uncomfortable and inadequate: how to deal with it? Here some tips and tricks to fight our daily struggles

16:30 Fun with timezones
Talk by Jordi Boggiano in Unconference (30 minutes)

-

2
Long running PHP processes
Talk by Giorgio Sironi in Track 2 (30 minutes)

PHP has outgrown being a simple Apache module, being used on the command line not just for development tools but also in production. Long-running PHP processes may live for hours or days consuming messages from queues or background jobs to execute; this talk will guide you through several years of tweaks to make them reliable and performant. There are many things that can go wrong when leaving a PHP process around on your servers, but it is possible to solve the problems of crashing, memory leaks, interruptions, lost logs, or monitoring. The goal of having smooth operations has to be kept in mind - scaling your servers and traffic without scaling the people needed to look after them.

A recommendation engine in your php applications
Talk by Michele Orselli in Track 1 (30 minutes)

Nowadays a lot of websites try to guess what we could like: ”Recommendation for you in books” or ”People you may like”. Sounds familiar, isn’t it? Wouldn’t be cool if you could do the same in your application? Well, this session is for you! In the first part of this talk recommendation systems will be introduced, focusing on collaborative filtering algorithms (CR). After that we’ll dive in Prediction.io, an open source machine learning server for software developers to create predictive features, such as personalization, recommendation and content discovery. In the last part we’ll cover the integration details with a PHP application.

17:30
6
Using Open Source for Fun and Profit
Keynote by Gary Hockin in Track 1 (1 hour)

10 years ago I was a lonely developer sitting in a small room quietly turning out code between 9am and 5pm, Monday to Friday. Fast-forward to now and you'll see me standing in front of audiences all around the world talking to developers about numerous topics."Why are you bragging like that at me?" I hear you ask. Because it could happen to you too. The question I always ask myself is "How the hell did that happen?!?!". The truth is that the only reason I've managed to advance my career so far in a decade is because of the people that make up the communities of open source projects. Not only do open source projects save you time and money, but the friendships and support groups that can be made within these communities is, frankly, staggering. Join me as I chart my journey from wage slave to conference speaker, and look at how you can leverage the power of open source to make real friends, real money, and real happiness.