PHP

https://dev.to/slns/php-serializacao-54o0

Serialização e Desserialização em PHP O que é Serialização?

1
0
https://tomasvotruba.com/blog/how-to-add-visbility-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?

1
0
https://dev.to/murizdev/how-to-switch-or-update-php-version-in-laragon-1k3n

Laragon is a portable, isolated, fast & powerful universal development environment for PHP,...

1
0
https://sarah-savage.com/the-danger-of-boolean-flags-in-object-methods/

Developers 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? Absolutely not. The flag

1
0
https://stitcher.io/blog/tagged-singletons

A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.

1
0
https://dev.to/hmawebdesign/how-to-receive-email-from-html-form-using-php-1g8n

In this post, you will learn how to Receive Email from HTML Form Using PHP. What is PHP...

1
0
https://www.ambionics.io/blog/iconv-cve-2024-2961-p1

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. Looking for targets lead mainly to disappointment. On PHP however, the bug shone, and proved useful in exploiting its engine in two different ways.

1
0
https://dev.to/darkotodoric/how-to-configure-php-in-airflow-5d9i

Apache Airflow is an open-source platform used for managing complex workflows. It allows users to...

2
0
https://acairns.co.uk/posts/primitive-obsession

Discover Primitive Obsession in code: recognize symptoms, understand implications, and learn effective fixes with value objects.

2
0
https://sarah-savage.com/air-traffic-control-routing-microservices-with-a-single-nginx-server/

In my last post I talked about linking microservices together inside a single Docker network for easy communication between the services. For web developers, this poses an interesting problem: if we want to access the services from our local machines, we need to deal with the fact that we can't have multiple machines bound to

2
0
https://gbh.fruitbat.io/2024/05/21/php-write-php-8-4s-array_find-from-scratch/

build php8.4's array\_find, array\_find\_key, array\_any and array\_all from scratch

2
0
https://laravel-news.com/php-8-4-array-find-functions

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.

2
0
https://dev.to/jonas-elias/substituindo-o-redis-pelo-valkey-em-projetos-phphyperf-3lh0

Licença Redis Recentemente, o Redis estava disponível sob a Licença Pública Geral Affero...

1
0
https://dev.to/ionbazan/turn-a-country-code-into-an-emoji-flag-us--360a

Flag emojis are a fun and visual way to represent countries and regions. These emojis are part of the...

2
0
https://www.phparch.com/2024/05/phps-magic-methods/

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 […]

1
0
https://dev.to/ionbazan/how-to-see-what-changed-in-composer-files-1ih6

When reviewing a Pull Request that touched composer.json and composer.lock files you might notice...

0
0
https://wendelladriel.com/blog/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.

1
0
https://php.watch/articles/fix-php-mysql-84-mysql_native_password-not-loaded

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.

1
0
https://stitcher.io/blog/new-in-php-84

Features, performance upgrades, and deprecations in PHP 8.4

1
0
https://phpfashion.com/en/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…

1
0
https://dev.to/veljkoristic/how-to-validate-emails-in-php-regex-filtervar-and-api-explained-4h57

Be it marketing or transactional emails, email address validation is a necessity, or you could risk...

3
0
https://dev.to/razielrodrigues/mastering-object-calisthenics-in-php-8-crafting-cleaner-code-381l

Now you gonna put your code to do some push ups and pull ups, let's see how much your code can...

1
0
https://tomasvotruba.com/blog/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 magnifying class. Now, we apply the same approach to PHP tooling.

2
0
https://dev.to/awons/symfony-7-vs-net-8-same-same-but-different-9ob

Intro I've decided to widen my horizons and learn a new programming language. In my day...

1
0
https://dev.to/pedrohaveloso/criando-uma-api-simples-com-php-puro-2i27

Habitualmente, aprendemos a criar sites em PHP com resquícios de um velho e antiquado modo de...

1
0
https://www.linkedin.com/pulse/using-php-attributes-instead-annotations-static-carlos-granados-qanwe/

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.

3
0
https://blog.gitguardian.com/phptek-2024/

Explore insights from PHP experts who gathered from all around the world to discuss web development innovations, embracing change, and securely maintaining our code.

1
0
https://javorszky.co.uk/2024/05/06/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!

2
0
https://tomasvotruba.com/blog/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 there baselines, custom extensions, global ignores, or no PHPStan at all?

1
0
https://dev.to/lucascarvalhopl/the-php-orkestra-framework-2laj

Introduction Some months ago I started a side project aiming for study and personal use to...

1
0
https://dev.to/xwero/php-features-type-hinting-2i2l

Attributes First class callable syntax Constructor changes Parameter changes This post is going to...

2
0
https://dev.to/sshamza/building-native-apps-with-familiar-tools-a-look-at-nativephp-2lfj

For many developers, PHP is synonymous with web development. But what if you could leverage your...

1
0