A state of PHP in 2020BetterCollective Ciasteczka #4 - Dev Meetup
View Slide
Konrad AlfaroSoftware Developer @ BetterCollective
Thank you!github.com/RadnoKtwitter.com/RadnoK_radnok.com
Jokes aside
The (sad) past
Low entrylevelPHP
~ Już na pewno NIE mój kolega
github.com/google/tink/issues/104#issuecomment-417512050
It’s simple!
roots.io
< 7.0
Versioning
OOP, Dynamic types only…
Current problems
Standard PHP Library functions
Standard PHP Library functionsSPL for short*
array_map(callable $callback, array $array1 [, array $... ]) : arrayarray_filter(array $array [, callable $callback [, int $flag = 0 ]]): array
phpsadness.com
Modern times
Language itself
PHP 7.x
Fancy and cool features
Type-hints / Return types!
Arrow functions!
Null coalescing assignment operator
Array spread operator
And many more…
Yes, we know that others haveit for a long time…
But we are getting there, too!
Dependencies
Ich LIBe Dich
composer.jsoncomposer.lock
Frameworks
❤
There is something slightly similar…
•Both like Annotations, YAMLs•Use separate fully-featured ORM•Is based on Components
But it’s (not) a full-stack framework!
But wait! There is something similar…
•Model View Controller (MVC)•ActiveRecord pattern for ORM•Authorization out of the box•Full-stack framework•Magic…
And others…
But we’ve got more!
eCommerce world
⚡
Tools
blog.jetbrains.com/phpstorm/category/php-annotated-monthly/
Libraries
Static Code Analysis
Yup, we do that
github.com/exakat/php-static-analysis-tools
Event-Driven in PHP?
reactphp.org
Serverless?
github.com/brefphp/bref
Tests?
Yeah, we do that too!
Event Sourcing, CQRS etc.
I’ve got a Prooph
github.com/prooph
Machine Learning?
Yup, even that
github.com/php-ai/php-ml
⭐ Standards?
Hell, YES!
PHP around us
Well, no longer…
gist.github.com/nikcub/3833406
HHVM & Hack
HipHop Virtual Machine
Implemented in PHP! Implemented in PHP!
Implemented in PHP! We are still waiting… Implemented in PHP!
PHP 7.4 kicks in!
Community
Meet-ups
Conferences
2019…and more…
confs.tech/php
Online
Last thoughts
twitter.com/akrabat/status/1223214852191268865
PHP is just a tool. Like any other tool,it can be used in a bad or a good way.
PS. Rekrutujemy BetterCollectivebettercollective.com/career