- dev.to Php Serialização
Serialização e Desserialização em PHP O que é Serialização? Serialização é o...
Serialização e Desserialização em PHP O que é Serialização?
- tomasvotruba.com How to add visibility to 338 Class Constants in 25 seconds
In PHP, we have classes with methods inside them. Would making all your methods `public` be a good idea? No, because some of them should be used only by the class they're in and not anywhere else. What about class constants?
In PHP, we have classes with methods inside them. Would making all your methods
public
be a good idea? No, because some of them should be used only by the class they're in and not anywhere else. What about class constants? - dev.to How to switch or update PHP version in Laragon
Laragon is a portable, isolated, fast & powerful universal development environment for PHP,...
Laragon is a portable, isolated, fast & powerful universal development environment for PHP,...
-
The danger of boolean flags in object methods
sarah-savage.com The danger of boolean flags in object methods - Sarah SavageDevelopers like to use booleans as flags. They're a convenient way to indicate something as on/off, true/false, yes/no. But the problem is that booleans are not clear from calling code exactly what they do. For example: Does anyone in the calling scope have any idea what the defining scope is doing?...
- stitcher.io Tagged Singletons - stitcher.io
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
- dev.to How to Receive Email from HTML Form Using PHP
In this post, you will learn how to Receive Email from HTML Form Using PHP. What is PHP...
In this post, you will learn how to Receive Email from HTML Form Using PHP. What is PHP...
- www.ambionics.io Iconv, set the charset to RCE: Exploiting the glibc to hack the PHP engine (part 1)
A few months ago, I stumbled upon a 24 years old buffer overflow in the glibc, the base library for linux programs. Despite being reachable in multiple well-known libraries or executables, it proved rarely exploitable — while it didn't provide much leeway, it required hard-to-achieve preconditions. ...
- alexwebdevelop.activehosted.com Fix Your Code With The Debug Backtrace
It's easy to debug a single...
- dev.to How to configure PHP in Airflow?
Apache Airflow is an open-source platform used for managing complex workflows. It allows users to...
-
Running PHP blazingly fast at the Edge with WebAssembly
- acairns.co.uk Primitive Obsession
Discover Primitive Obsession in code: recognize symptoms, understand implications, and learn effective fixes with value objects.
-
cspray.io - Annotated Container Without Attributes
Annotated Container Without PHP Attributes
-
php: write php 8.4’s array_find from scratch
gbh.fruitbat.io php: write php 8.4’s array_find from scratch - gbhbuild php8.4's array_find, array_find_key, array_any and array_all from scratch
build php8.4's array\_find, array\_find\_key, array\_any and array\_all from scratch
- laravel-news.com New Proposed Array Find Functions in PHP 8.4 - Laravel News
Four new array functions are likely coming to PHP 8.4 that are still in the RFC voting stage. Learn about these array_find functions and how they work.
Four new array functions are likely coming to PHP 8.4 that are still in the RFC voting stage. Learn about these array\_find functions and how they work.
- dev.to Turn a country code into an emoji flag (US ➡️ 🇺🇸)
Flag emojis are a fun and visual way to represent countries and regions. These emojis are part of the...
-
PHP's Magic Methods | php
As PHP developers, we need to know a lot of language features to make our code easy to write and maintain. Without explicitly being told about a part of the language, it’s hard to even know it exists, so today, we’re going to discuss the magic methods our classes have and how we should use […]
- dev.to How to start a Symfony 7 application with Docker without having PHP locally installed on your machine
Introduction Original Post:...
Introduction Original Post:...
- dev.to 📚 How to see what changed in Composer files
When reviewing a Pull Request that touched composer.json and composer.lock files you might notice...
- wendelladriel.com Why to use Custom Exceptions in PHP
When creating applications with PHP, Exceptions play a vital role in handling errors and irregularities that arise during the application lifecycle. We are going to see how to use Custom Exceptions to improve our applications.
- php.watch How to fix `mysql_native_password` not loaded errors on MySQL 8.4
How to fix the `SQLSTATE[HY000] [1524] Plugin 'mysql_native_password' is not loaded` errors caused in MySQL 8.4 no longer enabling the `mysql_native_password` plugin by default.
- stitcher.io What's new in PHP 8.4 - stitcher.io
Features, performance upgrades, and deprecations in PHP 8.4
- dev.to Building a Secured User Authentication System with PHP, MySQL, PDO and hashed password
Tired of Boring and insecured Logins? Let's ditch the basic sign-up and sign-in systems and build a...
- phpfashion.com How to Handle Getters When They Have Nothing to Return?
Software development often presents dilemmas, such as how to handle situations when a getter has nothing to return. In this article, we'll explore three strategies for implementing getters in PHP, which affect the structure and readability of code, each with its own specific advantages and…
- dev.to How to Validate Emails in PHP: regex, filter_var(), and API Explained
Be it marketing or transactional emails, email address validation is a necessity, or you could risk...
- dev.to Mastering Object Calisthenics in PHP 8: Crafting Cleaner Code
Now you gonna put your code to do some push ups and pull ups, let's see how much your code can...
- tomasvotruba.com Cool features of Swiss Knife
When using a Swiss knife, we think of a tool with many practical abilities. They're useful for different situations we might experience in the wild. Opening a box of milk? Here is a knife. Cutting wood to start a fire? Here is a chainsaw. Are the letters on the paint bucket too tiny? Try this magni...
When using a Swiss knife, we think of a tool with many practical abilities. They're useful for different situations we might experience in the wild. Opening a box of milk? Here is a knife. Cutting wood to start a fire? Here is a chainsaw. Are the letters on the paint bucket too tiny? Try this magnifying class. Now, we apply the same approach to PHP tooling.
- dev.to Symfony 7 vs. .NET 8 - Same-same but different?
Intro I've decided to widen my horizons and learn a new programming language. In my day...
Intro I've decided to widen my horizons and learn a new programming language. In my day...
- dev.to Criando uma API simples com PHP puro
Habitualmente, aprendemos a criar sites em PHP com resquícios de um velho e antiquado modo de...
- www.linkedin.com Using PHP Attributes instead of Annotations for Static Analysis
Since the release of PHP 8.0 more and more libraries, frameworks and tools have been updated to use attributes instead of annotations in PHPDocs.
- blog.gitguardian.com PHP[TEK] 2024: Pioneering the Future of Web Development in Chicago
Explore insights from PHP experts who gathered from all around the world to discuss web development innovations, embracing change, and securely maintaining our code.
- javorszky.co.uk Pest in PHP is good, actually!
Pest is a testing framework for PHP you can install via composer that makes writing your tests a lot easier than you think!
-
Optimizing PHP applications for performance — Mateus Guimarães
A quick guide on how to set up OPCache and fine-tune PHP-FPM.
- tomasvotruba.com Get Quick Error Count for each PHPStan level
When I come to a new project, I want to make a rough idea of what I'm dealing with in a few minutes. I usually check `composer.json` and [measure the lines](/blog/easy-and-quick-way-to-measure-lines-of-code-in-php). Then, I'd love to run PHPStan and get a rough idea of the current state. But are th...
When I come to a new project, I want to make a rough idea of what I'm dealing with in a few minutes. I usually check
composer.json
and measure the lines. Then, I'd love to run PHPStan and get a rough idea of the current state. But are there baselines, custom extensions, global ignores, or no PHPStan at all? - dev.to The PHP Orkestra Framework
Introduction Some months ago I started a side project aiming for study and personal use to...
Introduction Some months ago I started a side project aiming for study and personal use to...
- dev.to Php features: type hinting
Attributes First class callable syntax Constructor changes Parameter changes This post is going to...
Attributes First class callable syntax Constructor changes Parameter changes This post is going to...
- dev.to Building Native Apps with Familiar Tools: A Look at NativePHP
For many developers, PHP is synonymous with web development. But what if you could leverage your...
- tomasvotruba.com How adding Type Declarations makes Your Code Dangerous
...and how to avoid it. [Type coverage](/blog/how-to-measure-your-type-coverage) is a way to gradually add type declarations to your PHP project—step by step, one by one. It's a PHPStan package that helps you maintain a specific minimal level from 0 % to 100 %. <br><br> Once we reach high coverage ...
...and how to avoid it. Type coverage is a way to gradually add type declarations to your PHP project—step by step, one by one. It's a PHPStan package that helps you maintain a specific minimal level from 0 % to 100 %. Once we reach high coverage of 80-90 %, we feel safer. But our code can actually be in worse, even dangerous, shape.
- laravel-news.com NativePHP Windows Builds are Here - Laravel News
Windows support for NativePHP was announced this mean, which means that you can now build applications for the Windows platform.
Windows support for NativePHP was announced this mean, which means that you can now build applications for the Windows platform.