Leonardo Losoviz Freelance developer and writer, with an ongoing quest to integrate innovative paradigms into existing PHP frameworks, and unify all of them into a single mental model.

Stories by Leonardo Losoviz

Building Extensible PHP Apps with Symfony DI

Building extensible PHP apps with Symfony DI

Dev

Learn how to use DependencyInjection and service containers to manage the services in your complex PHP app.

Leonardo Losoviz
May 31, 2021 ⋅ 7 min read
Tips for Transpiling Code from PHP 8.0 Down to 7.1

Tips for transpiling code from PHP 8.0 down to 7.1

Dev

Transpiling your code from PHP 8.0 to 7.1 allows you to use the latest features of the language while reaching the most possible users.

Leonardo Losoviz
May 20, 2021 ⋅ 9 min read
HTTP Caching in GraphQL

HTTP caching in GraphQL

Dev

GraphQL’s lack of support for server-side caching is a well-known disadvantage. But there are indeed ways to use HTTP caching with GraphQL.

Leonardo Losoviz
Apr 13, 2021 ⋅ 6 min read
Hosting php Packages Together Monorepo

Hosting all your PHP packages together in a monorepo

Dev

A monorepo makes it easy to maintain a coherent state for your project and submit pull requests with code from multiple packages.

Leonardo Losoviz
Mar 24, 2021 ⋅ 8 min read
Tips for Creating Your First Rector Rule to Transform PHP Code

Tips for creating your first Rector rule to transform PHP code

Dev

Rector is a reconstructor tool for PHP. Learn how you can use it to code with modern PHP features yet still deploy to legacy environments.

Leonardo Losoviz
Feb 18, 2021 ⋅ 6 min read
Supporting Opt-in Nested Mutations in GraphQL

Supporting opt-in nested mutations in GraphQL

Dev

We argue the benefits of supporting nested mutations as an opt-in feature in GraphQL.

Leonardo Losoviz
Jan 13, 2021 ⋅ 8 min read
Comparing GraphQL Server in Javascript vs. Wordpress

Coding a GraphQL server in JavaScript vs. WordPress

Dev

Explore how building a GraphQL solution for WordPress may diverge from the standard JavaScript guidelines on several circumstances.

Leonardo Losoviz
Dec 21, 2020 ⋅ 12 min read

Coding in PHP 7.4 and deploying to 7.1 via Rector and GitHub Actions

Dev

PHP developers want to have access to the latest features of the language, but for various reasons, they may not […]

Leonardo Losoviz
Nov 9, 2020 ⋅ 12 min read
Transpiling PHP Code via Rector

Transpiling PHP code from 8.0 to 7.x via Rector

Dev

With Rector, we can write code with PHP 8.0 features and deploy it to an environment running lower versions.

Leonardo Losoviz
Oct 8, 2020 ⋅ 7 min read
Adding Directives To The Schema In Code-first GraphQL Servers

Adding directives to the schema in code-first GraphQL servers

Dev

See how code-first GraphQL servers — which have no schema definition language — can manage to provide support for schema-type directives.

Leonardo Losoviz
Sep 7, 2020 ⋅ 8 min read
Essentials For Building Your First Gutenberg Block

Essentials for building your first Gutenberg block

Dev

Even if you already know the libraries used by Gutenberg, it can still feel daunting to get started. Here’s where to start.

Leonardo Losoviz
Jul 21, 2020 ⋅ 10 min read
Setting Up Your First Gutenberg Project

Setting up your first Gutenberg project

Dev

Learn how to set up the development environment for WordPress’ React-based Gutenberg editor, as well has how to create a new project.

Leonardo Losoviz
Jul 15, 2020 ⋅ 6 min read