Leonardo Losoviz

  https://leoloso.com/ 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.

     



32 Stories by Leonardo Losoviz

Building extensible PHP apps with Symfony DI

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

Tips for transpiling code from PHP 8.0 down to 7.1

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.
1 9 min read

HTTP caching in GraphQL

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.
0 6 min read

Hosting all your PHP packages together in a monorepo

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

Tips for creating your first Rector rule to transform PHP code

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

Supporting opt-in nested mutations in GraphQL

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

Coding a GraphQL server in JavaScript vs. WordPress

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

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

PHP developers want to have access to the latest features of the language, but for various reasons, they may not be able to. It...
2 12 min read

Transpiling PHP code from 8.0 to 7.x via Rector

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

Adding directives to the schema in code-first GraphQL servers

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

Essentials for building your first Gutenberg block

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

Setting up your first Gutenberg project

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