Leonardo Losoviz

  https://leoloso.com/ Freelance developer and writer, with an ongoing quest to integrate innovative paradigms into existing PHP frameworks, and unifying all of them into a single mental model.

     



18 Stories by Leonardo Losoviz

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

Creating an @export GraphQL directive

Until GraphQL adds an official @export directive to the spec, implementers need to code this functionality through a custom directive.
0 11 min read

Treating GraphQL directives as middleware

Directives are among GraphQL's most powerful features, but that's only if the GraphQL server provides a good support for them.
0 14 min read