26
1
submitted 5 months ago by symfonystation@kbin.social to c/php@kbin.social

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

27
1
submitted 5 months ago by symfonystation@kbin.social to c/php@kbin.social

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

28
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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.

29
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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

30
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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

31
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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.

32
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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

33
0
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

Pest is a testing framework for PHP you can install via composer that makes writing your tests a lot easier than you think!

34
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

A quick guide on how to set up OPCache and fine-tune PHP-FPM.

35
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social
36
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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?

37
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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

38
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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

39
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social
40
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

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

41
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

...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.

42
2
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

Windows support for NativePHP was announced this mean, which means that you can now build applications for the Windows platform.

43
1
submitted 6 months ago* (last edited 6 months ago) by symfonystation@kbin.social to c/php@kbin.social

I have gone through all the Drupalcon sessions in Portland and selected those that I think are perfect for someone learning Drupal. Here is the result. NOTE: Did I miss anything that you think it should be highlighted here? Please let me know 😊.

44
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

When you are deploying code to a server and not with containers then it is critical to know how to properly restart Opcache. Why? Opcache never throws old files out of the cache. Therefore, if a new version is deployed in a completely new directory, all files from the old version will remain in the [...]

45
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

PHP 8.4 will be released in November 2024, but the list of new features and deprecated features is...

46
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

Welcome to the April edition of PHP Annotated! We'll recap the most interesting developments in the PHP community over the past couple of months, featuring handpicked news, articles, tools, and videos

47
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

As a developer, you may have encountered situations where you need to convert numbers to words or...

48
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

Germany's Sovereign Tech Fund has been making significant, much-needed investments into various open-source upstream projects from the GNOME desktop to Rust-written Coreutils and more

49
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

In the landscape of software testing, the choice between a do-it-yourself (DIY) approach to mocking and utilizing mocking frameworks is a pivotal decision for programmers. While mocking is indispensable for code reliability, its overuse or incorrect implementation can introduce complexities and fragilities within test suites. This article navigates the balance between leveraging mocks effectively and avoiding common pitfalls, including the dangers of writing mocks in a suboptimal manner.

50
1
submitted 6 months ago by symfonystation@kbin.social to c/php@kbin.social

In this article, we'll explore the process of creating JSON Web Tokens (JWTs) from scratch in PHP, presenting a superior and more secure authentication scheme. By implementing this advanced approach, we unveil a robust and highly secure authentication mechanism that significantly enhances data protection and user authentication. Table Of

view more: ‹ prev next ›

PHP

1 readers
1 users here now

founded 2 years ago