PHP Serbia Conference delivers high-value technical content about PHP and related web technologies, architecture, best practices and testing. It offers two days of amazing talks by some of the most prominent experts and professionals in the PHP world in a comfortable and professional setting.

Saturday 27th May 2017

10:15
22
Keynote
Keynote by Rasmus Lerdorf in Majestic (45 minutes)

Keynote talk

11:00
13
Microservices vs The Distributed Monolith
Talk by Christopher Riley in Majestic (50 minutes)

When faced with a challenging legacy code base, tightly coupled and void of discernible structure: a big ball of mud, it is common to decide to refactor this monolith to a microservice architecture to separate concerns and split the codebase up, however without any clear boundaries you are in danger of creating a distributed big ball of mud. You may recognise the symptoms of a distributed ball of mud: a large unfocused 'common' library shared between multiple services; performance issues as your front end makes calls to multiple back end API's to serve a single request; dependency hell on deployments as you have to release multiple code bases simultaneously and uptime issues as a single microservice going down brings down your entire application. In this talk I'm going to cover some of the common pitfalls you might encounter when building a microservice architecture and show you how to use an event driven architecture to build truly scalable microservices.

Building APIs with Slim Framework
Talk by Rob Allen in Practicum (50 minutes)

Slim Framework builds on the PSR-7 HTTP message interfaces and provides useful features such as routing, and a DI container. It's lightweight and so is an ideal platform for building APIs. We'll look at how to use Slim as the basis for a fully featured API. We'll cover the key concepts around HTTP request-response resource APIs including handling content type and status codes, authentication and also returning errors appropriately. By the end of the session, you'll be able to build a Slim API.

12:00 Managing dependencies is more than running composer update
Talk by Nils Adermann in Majestic (50 minutes)

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.

8
Handling deployment process from concept to production
Talk by Aleksandar Baloš, Aleksandar Ilić in Practicum (50 minutes)

Developing an application does not end once the coding is finished. Deploying it to production, and making it available to the users should be a part of the development process, not an afterthought. Can you be sure that your application will behave the same way it did in your test environment? Is the configuration correct? What about server settings? Database changes? What would you do if things go wrong. In this workshop we will try to find the answers to this questions, analyze some different concepts, available tools and important principles. Let's share our experiences together, and try to come up with a solution(s) that best fit the needs.

14:30 Solving Cross-Cutting Concerns in PHP
Talk by Alexander Lisachenko in Majestic (50 minutes)

Everybody likes Object-Oriented Programming and wants to keep the source code clean and clear, but there are cross-cutting concerns that can not be solved easily such as logging, caching, authorization, transaction control and more. Are there any ways to solve them? Yes. One of them is Aspect-Oriented Programming. This is a talk about Aspect-Oriented Paradigm with presentation of Go! AOP framework, that was inspired by Lithium, Java Spring and famous AspectJ frameworks. And for now AOP is possible in PHP. I will show some new techniques such as inter-type declarations (dynamic traits for classes, dynamic interfaces, adapters), such as method interception, AOP caching, logging and much more. Are you tired of implementing of logging or caching in all methods? Do you want to extract this code to the one place? Join me and learn the elegant ways of solving cross-cutting concerns in PHP.

3
NoOps: k8s & serverless
Talk by Dragan Stefanov in Practicum (50 minutes)

What if you as a developer don't have to talk to tech ops person ever again. What if you as a developer could move closer to a business and further away from the hardware. Devops culture improved processes and collaboration and brought lot of other benefits. But can we go step or two further? Let's explore possibilities of infrastructure abstraction and complete automation of provisioning, deployment, running and monitoring. In this talk we will look at some of the solutions available today. We are going to see how can we use tools like kuberneties, deis workflow and cloud functions on our quest for NoOps!

16:00 Debugging ElePHPants
Talk by Adam Culp in Majestic (50 minutes)

Everybody knows how to install a debugger in PHP. But yet very few professional PHP developers have embraced step debugging, and instead do it the old-fashioned way. For many, this is because they simply don't know how to step-debug effectively. In this talk we will see how to debug common issues to speed problem resolution, and spend less time troubleshooting and more time coding. Attendees will walk away with the fundamentals to get up and running quickly once they get a debugger installed.

Year with event sourcing and CQRS
Talk by Miro Svrtan in Practicum (50 minutes)

For the last few years, PHP community has been buzzing about ES/CQRS, pretty much there was a talk on every conference. Now it's time to see how it worked out for me in practice. ES/CQRS is a different approach to building applications from what we all have been thought to do for years. I'm not going to introduce Event Sourcing and Command Query Responsibility Segregation (ES & CQRS) but speak about my experiences in developing & running it on production. I have implemented it on few projects: in some I run it as a part of bigger application, while in some it's just the core and one where everything is event driven. The shift in architecture and mindset is pretty big: while code structures and logic became simple, amount of code and workflows get complicated to the point of 'where did I loose this input?'. Not to go into too many details, I've had to learn lot of DDD practices that I feel have made me a better developer and use some of the knowledge gathered in this projects into 'everyday' code of projects that I work on.

17:00 Time is an illusion (lunchtime doubly so)
Talk by Andreas Heigl in Majestic (50 minutes)

Have you ever read a "Good morning" in an international IRC-Channel shortly before you leave the office for lunch? In international business time is an illusion as everywhere is a different time. In this talk we'll dive into he depths of Timezones and how to handle them. We'll see why timezones are important and why and how they started to exist. And of course we'll examine how to handle those little buggers efficiently in code and database.

13
Websockets and Torrents - A match made in PHP
Talk by James Mallison in Practicum (50 minutes)

Websockets are a technology allowing bi-directional communication between the server and the client and are not often the topic of focus when it comes to writing standard web applications due to their complexity and learning curve required. This talk is the story of my first real project involving sending torrent data from the server to the browser so I could build my own Torrent Web GUI. What is an event loop? How does it work? How about authentication when using both HTTP and Websocket requests? How do I make my code non-blocking? How about the overall architecture? These are some of the topics covered from both a theoretical and a practical standpoint. I also talk about security and privacy and how not to get caught when setting up a server designed solely for streaming Ubuntu downloads.

Sunday 28th May 2017

10:15 Databases — the choice is yours
Talk by Philipp Krenn in Majestic (50 minutes)

In hardly any other area we've had as much change and improvement as in the field of databases. Just a few years ago everyone had "their" database that was used for each project. Today you are confronted with a variety of approaches and implementations. We start off with a brief look at the theoretical background of distributed systems and databases in particular. On the basis of this, we take a look at traditional relational databases such as PostgreSQL. Additionally, we dive into newer NoSQL systems like MongoDB, Redis, Cassandra, or Elasticsearch. After that, we discuss possible scenarios as well as the advantages and disadvantages of several databases: - Why SQL is in fashion (again). - Why MongoDB's document structure fits object-oriented programming so well. - How you can capture visitor hits with Redis efficiently. - Why Cassandra is so scalable and fail-safe. - How full-text search works with Elasticsearch. The right choice of database(s) hasn't become easier through the wide range of possibilities, but all the more interesting!

Kicking off with Zend Expressive and Doctrine ORM
Talk by James Titcumb in Practicum (50 minutes)

You've heard of Zend's new framework, Expressive, and you've heard it's the new hotness. In this talk, I will introduce the concepts of Expressive, how to bootstrap a simple application with the framework using best practices, and finally how to integrate a third party tool like Doctrine ORM.

11:00 Domain-driven Design Deconstructed
Talk by Andrew Cassell in Majestic (50 minutes)

Once you try domain-driven design (DDD), you will never design software in the same way again. We will start by discussing what it means to use a ubiquitous language, encapsulate logic in value objects, and use bounded contexts, entities, and aggregate roots to manage state and protect invariants. We will also cover more-advanced topics in the DDD world, such as event sourcing and command query responsibility segregation.

5
Your butler just received an upgrade
Talk by Michael Heap in Practicum (50 minutes)

Jenkins has been one of the most popular continuous integration systems out there for many years. It was perfectly functional, but the UI wasn't the friendliest in the world and configuring jobs through a UI or XML files was just painful. In late 2016, Jenkins finally made it to version 2.0 which brought a huge number of improvements. From the new Blue Ocean UI to being able to define build configurations in your repo, it's a massive step up from version 1. In this talk, we'll go from an empty machine to a Jenkins install that automatically detects repos, branches and pull requests and builds them according to the Jenkinsfile in each branch. We'll be running tests, linting and packaging applications in parallel where possible, and even running things on Linux, Windows and MacOS all at the same time!

12:00 Beyond Testing
Talk by Michael Bodnarchuk in Majestic (50 minutes)

Yes, you know, you should have written that test! But what If you already do writing tests, but you don't see the result of your actions. Tests run slow, they are fragile, hard to read and maintain. Fixing a test is harder than disabling it. Don't blame yourself. It's not about you, it's about some points you should have taken into account while your testing codebase grew. In this talk I will tell you about - What are best practices for tests (with code samples) - Do we need acceptance tests and what framework to choose: Behat, Codeception, Selenium, PhantomJS - How data should be managed? (Dumps, Fixtures, FactoryMuffin) - How to test APIs (Codeception, php-vcr) - Creating test environments with Docker containers - Setting up parallel testing with Docker

4
Processing multi-queue messages using daemonized process in PHP
Talk by Simo Simeunović, Nikola Nikolic in Practicum (50 minutes)

More often than not, in software development there are situations with long running sequential operations which can be avoided utilizing parallelization. During the workshop we'll go through the challenges and pitfalls we had during the development of a system that handles messages from multiple queues asynchronously. Building a daemon process in PHP which spawns custom handlers for different queues, processing them all in parallel.

14:30 PHP without Frameworks
Talk by Patrick Allaert in Majestic (50 minutes)

What does Java, Python, Ruby,… have in common that PHP doesn’t? They are general purpose languages while PHP is primarily designed for web development! That said, it means you can use PHP as a framework, but should you? What are the consequences of going that way? In this session, we are going to investigate the building blocks of frameworks (Routing, MVC, Dependency Injection,…) leveraging features that PHP provides natively and how a project can be realised with PHP as the only framework while respecting principles like: “Don’t reinvent the wheel”, KISS, DRY, YAGNI, …

PHP and IoT: Creating a Deployment Device
Workshop by Petar Slović, Ivan Ciric in Practicum (50 minutes)

We will create a fun and useful development and deployment tool. We’ll set up Jenkins on a Raspberry Pi, which will be a local CI server. Then we’ll create an APP in Laravel that will be built and tested by Jenkins. Raspberry Pi will shine a light while a build is in progress, and produce different sounds if a job was successful or not (if PHPUnit tests pass or fail). We will have a NodeMCU which will have a motion sensor, so when you wave, it will send a request which will trigger a build on the Jenkins Raspberry Pi.

16:00 The Things Your Application Does While You’re Not Looking
Talk by Josh Butts in Majestic (50 minutes)

It’s 2:00am. Is your application working properly? How will you know for sure when you wake up tomorrow morning? In this talk we’ll look at strategies for effective logging, monitoring and metrics collection from within your application. We’ll look at what kind of data you should and shouldn’t log, and with what frequency, as well as some great open-source tools to use. We’ll also take some first steps with Statsd and Graphite to help see trends in performance, user behavior, and overall application health. We’ll also learn some useful ways to interpret the data we collect to get the best picture of what’s really going on when you’re not looking.

7
Speed Up Your Database 300 Times
Talk by Anna Filina in Practicum (50 minutes)

Are your queries slow? Learn how to speed them up through better SQL and use of meaningful indices. You will understand what works well and what doesn't, and will walk away with a checklist for faster databases. I expect that you will all be itching to analyze MySQL queries to see how much you can shave off.

17:00 Does Your Code Measure Up?
Talk by Adam Culp in Majestic (50 minutes)

After days, weeks, or months of coding many developers don't know how to gauge the quality of their code. Adam Culp will introduce tools to grade, benchmark, and analyze PHP code in an automated fashion allowing developers to write better quality software. He will explain key metrics to help understand what may need to be refactored, and use code smells to point out bugs before end-users discover them. Attendees will see how to use these tools, know where to find them, and be able to implement them in their own workflows.