Skip to content

2022#

How to install and configure Xdebug for XAMPP on Mac

Cover Image

XAMPP is a very popular cross-platform Apache distribution containing MariaDB (fork of MySQL), PHP, and Perl. But unfortunately, XAMPP doesn't come bundled with the Xdebug, which is an extension that enables PHP debugging. This tutorial shows one way how to get it on Mac - we will be compiling Xdebug from sources.

Start with Laravel in VS Code on Docker

Cover Image

Imagine you are part of the team and you want each member to develop in one standardized environment. They can have different operating systems and use different development tools or IDEs, but you want to have one unified environment with all the required dependencies.

Create PHP Project using Composer in VS Code

Cover Image

You know composer is a framework for maintaining PHP packages - installing them as a dependency to your project, ensuring their requirements, auto-loading classes, and much more. But you can also create a new PHP project directly from a composer package, easily. In Visual Studio Code it's even simpler.

Generics in PHP using PHP DocComments

Cover Image

Most of the type-safe languages, like TypeScript, C++, C#, Java, ... or Hack, .. allow you to specify not just types but also so-called generic type arguments - a way of substituting a type name with an actual type when you use it. PHP lets you to specify types for extra type-safety (and improved code completion), but generic types need to be specified inside Doc Comments. That's because the PHP language syntax itself does not know them yet.

Performance Profiling PHP with VS Code

Cover Image

Your PHP application or a website might be running fluently, or you might see it takes some time to load. In both cases, it is a good practice to do performance profiling. This technique lets you know how much time all the functions in the code take, and how many times they've been called. You might see interesting results and improve the live of your users, and the live of your Web Server.

Introducing Composer for VS Code

Cover Image

We are adding a new extension to the Visual Studio Code Marketplace - Composer All-in-One. Composer "All-in-One" provides complete integration of composer and packagist into Visual Studio Code. The extension provides quick composer commands, IntelliSense for composer.json, code lenses, code actions, schema validation, browsing and searching packages, checking abandoned packages, running user scripts, and it extends VS Code with composer tasks.

Bracket pair colorization for PHP in Visual Studio

Cover Image

When you work with code that is deeply nested, it might get hard to know in what context the code is. You should follow good practices and not to create such a code, but sometimes the code is not yours or you are refactoring an old one. In such cases bracket, pair colorization comes in handy. Each bracket pair gets a different color, so you will have an easier job to orient yourself.