PHP Error Types Explained - Warnings, Notices, Fatal Errors, etc.
The article explains the different types of errors encountered in PHP programming and their significance: Common PHP Error Types Explained - Warnings, Notices & Fatal Errors
It categorizes PHP errors based on their severity and impact on noscript execution, providing examples and solutions for each type. The main error types discussed include fatal errors, parse errors, warnings, noticse, deprecated errors.
The article also includes debugging strategies and emphasizes the importance of understanding these error levels to ensure effective troubleshooting and maintain best practices in PHP development. It also includes debugging strategies and emphasizes the importance of understanding these error levels to ensure effective troubleshooting.
https://redd.it/1jzip2p
@r_php
The article explains the different types of errors encountered in PHP programming and their significance: Common PHP Error Types Explained - Warnings, Notices & Fatal Errors
It categorizes PHP errors based on their severity and impact on noscript execution, providing examples and solutions for each type. The main error types discussed include fatal errors, parse errors, warnings, noticse, deprecated errors.
The article also includes debugging strategies and emphasizes the importance of understanding these error levels to ensure effective troubleshooting and maintain best practices in PHP development. It also includes debugging strategies and emphasizes the importance of understanding these error levels to ensure effective troubleshooting.
https://redd.it/1jzip2p
@r_php
Qodo
What Are Common PHP Error Types? Warnings, Notices & Fatal Errors - Qodo
Read about What Are Common PHP Error Types? Warnings, Notices & Fatal Errors in our blog.
Form data validation with regular expression
My form builder site allows users to specify a regular expression for html 5 input pattern validation.
In addition to validating this on the client side with html5, the service also validates on the server side after submission as client side validation can be circumvented (e.g. by removing the pattern attribute in browser dev tools).
Client side regex on pattern attribute is compiled with the "v" flag which "enhances Unicode support in regular expressions, enabling the use of set notation, string literals within character classes, and properties of strings".
On the server side my noscript checks the input matches the pattern but the "v" flag is not available in php regex functions (I'm on php 8.3) so I am using the "u" flag.
Is this likely to fail in any circumstance? Is there a way to ensure the results are the same in JS and PHP?
Thanks guys.
https://redd.it/1jzlavw
@r_php
My form builder site allows users to specify a regular expression for html 5 input pattern validation.
In addition to validating this on the client side with html5, the service also validates on the server side after submission as client side validation can be circumvented (e.g. by removing the pattern attribute in browser dev tools).
Client side regex on pattern attribute is compiled with the "v" flag which "enhances Unicode support in regular expressions, enabling the use of set notation, string literals within character classes, and properties of strings".
On the server side my noscript checks the input matches the pattern but the "v" flag is not available in php regex functions (I'm on php 8.3) so I am using the "u" flag.
Is this likely to fail in any circumstance? Is there a way to ensure the results are the same in JS and PHP?
Thanks guys.
https://redd.it/1jzlavw
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Simple php based anayltics
I have just created a very simple self hosted anayltics noscript: https://github.com/elzahaby/php-analytics/tree/main
would love to hear your opinon. The goal was to create a simple but useful anayltics noscript that allows me to ditch google analytics and since it is based on server data it doesn't require any cookies consent as far as I know.
Looking forward to hear your thoughts and what features you wish for or how to improve it :)
https://redd.it/1jzpu5a
@r_php
I have just created a very simple self hosted anayltics noscript: https://github.com/elzahaby/php-analytics/tree/main
would love to hear your opinon. The goal was to create a simple but useful anayltics noscript that allows me to ditch google analytics and since it is based on server data it doesn't require any cookies consent as far as I know.
Looking forward to hear your thoughts and what features you wish for or how to improve it :)
https://redd.it/1jzpu5a
@r_php
GitHub
GitHub - elzahaby/php-analytics: A simple Analytics Script in php
A simple Analytics Script in php. Contribute to elzahaby/php-analytics development by creating an account on GitHub.
SymfonyLive Paris 2025: Recap and replay!
https://symfony.com/blog/symfonylive-paris-2025-recap-and-replay?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1jzu1rt
@r_php
https://symfony.com/blog/symfonylive-paris-2025-recap-and-replay?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1jzu1rt
@r_php
Symfony
SymfonyLive Paris 2025: Recap and replay! (Symfony Blog)
SymfonyLive Paris 2025 was an amazing two-day event filled with top-notch talks, hands-on workshops, and vibrant community energy! Big thanks to our speakers, attendees, and sponsors for making it suc…
A new #phpstan capability which will be available with the upcoming release: Remembered types from constructor
https://staabm.github.io/2025/04/15/phpstan-remember-constructor-types.html
https://redd.it/1k00lnx
@r_php
https://staabm.github.io/2025/04/15/phpstan-remember-constructor-types.html
https://redd.it/1k00lnx
@r_php
My developer experience
PHPStan remembered types from constructor
Over the last few days I am working on a new PHPStan capability, which allows PHPStan to use type information from analyzing a class-constructor with the goal to improve results when later on analyzing instance methods or property hook bodies.
Locale-Aware Compact Number Formatting in PHP with NumberFormatter
https://ungureanu.blog/2025/04/15/locale-aware-compact-number-formatting-in-php-with-numberformatter/
https://redd.it/1jzbl8q
@r_php
https://ungureanu.blog/2025/04/15/locale-aware-compact-number-formatting-in-php-with-numberformatter/
https://redd.it/1jzbl8q
@r_php
Bogdan Ungureanu
Locale-Aware Compact Number Formatting in PHP with NumberFormatter
I was working recently on a small feature that needed to output numbers like 1200 to a short compact version like 1.2k. Simple right? I can just make a function or use ChatGPT to generate one for m…
How do I create an emoji font file, specific to a website and app?
I'm a total NOOB when it comes to stuff about emojis, from the system side.
Okay, what I'm about to ask is wild, and I know its a strong chance I won't getting any full on tutorials for this. I just need some leads at least into the right direction.
Long story short, I'm working with a team to build a website/app for various online use for our target audience. The emoji system is painfully limited, and are based on the Microsoft Segoe UI for Windows. Platforms often have their own emoji, Facebook, Discord, Youtube, while like Reddit DO use the Segoe UI it seems. What would I need to do, in order to create emojis for my team's website/app?
ASSUMPTIONS
This is what I assume it would require, and I'd like some insight before I proceed to waste my time with these guesses.
Custom font: the site would need it's own font, that is unique to the site, in order to display emoji.
OTF font type: to house a lot of emoji glyphs, and of course, SVG vectors as emoji.
SVG: all emoji art I'd assume would have to be SVGs, in order to be scalable and work with the font face.
Some kinda "encoding": for lack of better phrasing, once the file is created, you'll need to like... perform some kind of formatting or "encoding" so the font file is properly compatible for web and mobile use.
PHP: I'm learning some bare bones in navigating PHP (this project calls for it), and I believe there's some some sort of .php file and line(s) of code to implement your font, and some more PHP knowhow to implement your emoji.
ANY HELP is majorly appreciated, any leads, just anything.
https://redd.it/1k09hln
@r_php
I'm a total NOOB when it comes to stuff about emojis, from the system side.
Okay, what I'm about to ask is wild, and I know its a strong chance I won't getting any full on tutorials for this. I just need some leads at least into the right direction.
Long story short, I'm working with a team to build a website/app for various online use for our target audience. The emoji system is painfully limited, and are based on the Microsoft Segoe UI for Windows. Platforms often have their own emoji, Facebook, Discord, Youtube, while like Reddit DO use the Segoe UI it seems. What would I need to do, in order to create emojis for my team's website/app?
ASSUMPTIONS
This is what I assume it would require, and I'd like some insight before I proceed to waste my time with these guesses.
Custom font: the site would need it's own font, that is unique to the site, in order to display emoji.
OTF font type: to house a lot of emoji glyphs, and of course, SVG vectors as emoji.
SVG: all emoji art I'd assume would have to be SVGs, in order to be scalable and work with the font face.
Some kinda "encoding": for lack of better phrasing, once the file is created, you'll need to like... perform some kind of formatting or "encoding" so the font file is properly compatible for web and mobile use.
PHP: I'm learning some bare bones in navigating PHP (this project calls for it), and I believe there's some some sort of .php file and line(s) of code to implement your font, and some more PHP knowhow to implement your emoji.
ANY HELP is majorly appreciated, any leads, just anything.
https://redd.it/1k09hln
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Resources to learn pure php best practices?
I recently have become involved in maintaining a legacy php application running php 7. Does anyone have any recommendations for learning the fundamentals of php?
I come from a web dev background mostly using rails. The application I'm working with generally makes sense to me, and I am able to get things working. However I'd love to have some idea what I'm doing beyond simply making things work.
We're attempting to build out some new features with moderately complex logics. More intricate DB interactions, users submitting/displaying html, including a few JS libraries, and some other stuff. Im very interested in getting a better understanding of php in order to properly design these features.
https://redd.it/1k0eui7
@r_php
I recently have become involved in maintaining a legacy php application running php 7. Does anyone have any recommendations for learning the fundamentals of php?
I come from a web dev background mostly using rails. The application I'm working with generally makes sense to me, and I am able to get things working. However I'd love to have some idea what I'm doing beyond simply making things work.
We're attempting to build out some new features with moderately complex logics. More intricate DB interactions, users submitting/displaying html, including a few JS libraries, and some other stuff. Im very interested in getting a better understanding of php in order to properly design these features.
https://redd.it/1k0eui7
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
What do you like least about Laravel?
Laravel is a great framework, and most of us love working with it. It’s simple, powerful, and gets you pretty far without much sweat.
But what’s the thing you like least about it as a dev?
Could it be simpler? Should it be simpler?
Has convention over configuration gone too far—or not far enough?
Any boilerplate that still bugs you?
https://redd.it/1k0fn4t
@r_php
Laravel is a great framework, and most of us love working with it. It’s simple, powerful, and gets you pretty far without much sweat.
But what’s the thing you like least about it as a dev?
Could it be simpler? Should it be simpler?
Has convention over configuration gone too far—or not far enough?
Any boilerplate that still bugs you?
https://redd.it/1k0fn4t
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Locale-Aware Compact Number Formatting in PHP with NumberFormatter
https://ungureanu.blog/2025/04/15/locale-aware-compact-number-formatting-in-php-with-numberformatter/
https://redd.it/1k0fizz
@r_php
https://ungureanu.blog/2025/04/15/locale-aware-compact-number-formatting-in-php-with-numberformatter/
https://redd.it/1k0fizz
@r_php
Bogdan Ungureanu
Locale-Aware Compact Number Formatting in PHP with NumberFormatter
I was working recently on a small feature that needed to output numbers like 1200 to a short compact version like 1.2k. Simple right? I can just make a function or use ChatGPT to generate one for m…
Looking to Join an Interesting Project
Hey everyone!
I’ve been feeling really motivated lately to collaborate on something meaningful or just plain fun. I’m not here to pitch my own idea – I actually want to join someone else’s project and contribute however I can.
Whether you're working on a startup, a coding project, an open-source tool, a game, or even a creative non-tech endeavor – if you’re passionate about it, I’d love to hear about it. I'm eager to jump in and help with development, design, testing, brainstorming, or just being that extra pair of hands to keep things moving.
Let me know if you have something I can help you!
https://redd.it/1k0o4vs
@r_php
Hey everyone!
I’ve been feeling really motivated lately to collaborate on something meaningful or just plain fun. I’m not here to pitch my own idea – I actually want to join someone else’s project and contribute however I can.
Whether you're working on a startup, a coding project, an open-source tool, a game, or even a creative non-tech endeavor – if you’re passionate about it, I’d love to hear about it. I'm eager to jump in and help with development, design, testing, brainstorming, or just being that extra pair of hands to keep things moving.
Let me know if you have something I can help you!
https://redd.it/1k0o4vs
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
SymfonyOnline June 2025: Rethinking File Handling in Symfony
https://symfony.com/blog/symfonyonline-june-2025-rethinking-file-handling-in-symfony?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1k0pfff
@r_php
https://symfony.com/blog/symfonyonline-june-2025-rethinking-file-handling-in-symfony?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1k0pfff
@r_php
Symfony
SymfonyOnline June 2025: Rethinking File Handling in Symfony (Symfony Blog)
Curious about a smarter way to handle files in Symfony? Join #SymfonyOnline June 2025 to hear from Kevin Bond: 🎤 “Rethinking File Handling in Symfony”
Just hit 300,000 installs on my little PHP package 🎉
It’s one of those moments where you realize—open source is magic.
You put something out there, and it grows beyond you.
It lives because people use it, improve it, and share it.
If you've ever used it, contributed, or even just told someone about it—
thank you. Seriously.
Here is the story: https://medium.com/@revaz.gh/php-heic-to-jpgthe-easiest-way-to-convert-heic-heif-images-to-jpeg-using-php-745d66818dfd
https://redd.it/1k0qkk5
@r_php
It’s one of those moments where you realize—open source is magic.
You put something out there, and it grows beyond you.
It lives because people use it, improve it, and share it.
If you've ever used it, contributed, or even just told someone about it—
thank you. Seriously.
Here is the story: https://medium.com/@revaz.gh/php-heic-to-jpgthe-easiest-way-to-convert-heic-heif-images-to-jpeg-using-php-745d66818dfd
https://redd.it/1k0qkk5
@r_php
Medium
The Easiest way to Convert HEIC/HEIF images to JPEG using PHP
How to Convert HEIC Images to JPEG with PHP and Laravel using php-heic-to-jpg package
Launching TrueReviewer — A Robust & Complete Review and Rating System for Laravel
After successfully launching Commenter, I began my next big mission — TrueReviewer. I might be biased, but I believe TrueReviewer is one of the most complete and powerful review systems available for Laravel. Whether you're building a SaaS platform, e-commerce site, or any other web app, it’s designed to fit right in.
Unlike Commenter, TrueReviewer is API-agnostic — meaning the front-end (Vue.js) and back-end are completely decoupled. This gives you the freedom to integrate it into any Laravel project, whether it's a traditional server-side rendered app or a fully separated API-driven architecture using Vue as the front end. Since the Vue components are compiled into JavaScript, it works seamlessly across tech stacks.
TrueReviewer focuses on performance, customization, and design. It comes with five beautifully crafted components that are not just visually appealing but also accessible and user-friendly. Each component is built to make an impact without overwhelming the UI, offering a smooth and intuitive experience. Thanks to its modular design, you can use components independently based on your project’s needs.
Going beyond traditional review systems, TrueReviewer includes AI-powered features like sentiment detection and integrity checks, helping ensure the quality and trustworthiness of reviews.
TrueReviewer is currently offered as sponsorware — a paid product. I understand that the Laravel community often prefers open-source tools, and I genuinely planned to release this as open-source. However, given the effort, time, and resources involved, I needed to find a balance between sustainability and community contribution.
I hope you’ll see the value in this package — and if it helps your project, that alone makes it worth it.
Official Site - https://truereviewer.netlify.app
Product Hunt - https://www.producthunt.com/posts/truereviewer
https://preview.redd.it/1juvpp1lgbve1.jpg?width=1156&format=pjpg&auto=webp&s=b7fd144cf703189f4ea7d4160c856d3206129d5f
https://preview.redd.it/lhzguxgogbve1.jpg?width=1249&format=pjpg&auto=webp&s=0658633ad86e567cf8bc93a973737763e71ce01e
https://preview.redd.it/7bofkp5pgbve1.jpg?width=1247&format=pjpg&auto=webp&s=039cf103d8eb27e3e08db680320f0e12f01f5fe7
https://preview.redd.it/e8tcr7upgbve1.jpg?width=1249&format=pjpg&auto=webp&s=8963e439921a2fa07c1b0055ccf18ee6eeb033ef
https://preview.redd.it/tjvrrpuqgbve1.jpg?width=1272&format=pjpg&auto=webp&s=1e5149cba5097c163e84313c8955ff6d7a2f5089
https://preview.redd.it/7c6p9xuqgbve1.jpg?width=1259&format=pjpg&auto=webp&s=254320b4659e981a7d556c7a097b1510c861f8d0
https://preview.redd.it/1q6l4vwrgbve1.jpg?width=1317&format=pjpg&auto=webp&s=1d7d8d73a574b1a42469db6fc102f9ad4018cafd
https://redd.it/1k13id4
@r_php
After successfully launching Commenter, I began my next big mission — TrueReviewer. I might be biased, but I believe TrueReviewer is one of the most complete and powerful review systems available for Laravel. Whether you're building a SaaS platform, e-commerce site, or any other web app, it’s designed to fit right in.
Unlike Commenter, TrueReviewer is API-agnostic — meaning the front-end (Vue.js) and back-end are completely decoupled. This gives you the freedom to integrate it into any Laravel project, whether it's a traditional server-side rendered app or a fully separated API-driven architecture using Vue as the front end. Since the Vue components are compiled into JavaScript, it works seamlessly across tech stacks.
TrueReviewer focuses on performance, customization, and design. It comes with five beautifully crafted components that are not just visually appealing but also accessible and user-friendly. Each component is built to make an impact without overwhelming the UI, offering a smooth and intuitive experience. Thanks to its modular design, you can use components independently based on your project’s needs.
Going beyond traditional review systems, TrueReviewer includes AI-powered features like sentiment detection and integrity checks, helping ensure the quality and trustworthiness of reviews.
TrueReviewer is currently offered as sponsorware — a paid product. I understand that the Laravel community often prefers open-source tools, and I genuinely planned to release this as open-source. However, given the effort, time, and resources involved, I needed to find a balance between sustainability and community contribution.
I hope you’ll see the value in this package — and if it helps your project, that alone makes it worth it.
Official Site - https://truereviewer.netlify.app
Product Hunt - https://www.producthunt.com/posts/truereviewer
https://preview.redd.it/1juvpp1lgbve1.jpg?width=1156&format=pjpg&auto=webp&s=b7fd144cf703189f4ea7d4160c856d3206129d5f
https://preview.redd.it/lhzguxgogbve1.jpg?width=1249&format=pjpg&auto=webp&s=0658633ad86e567cf8bc93a973737763e71ce01e
https://preview.redd.it/7bofkp5pgbve1.jpg?width=1247&format=pjpg&auto=webp&s=039cf103d8eb27e3e08db680320f0e12f01f5fe7
https://preview.redd.it/e8tcr7upgbve1.jpg?width=1249&format=pjpg&auto=webp&s=8963e439921a2fa07c1b0055ccf18ee6eeb033ef
https://preview.redd.it/tjvrrpuqgbve1.jpg?width=1272&format=pjpg&auto=webp&s=1e5149cba5097c163e84313c8955ff6d7a2f5089
https://preview.redd.it/7c6p9xuqgbve1.jpg?width=1259&format=pjpg&auto=webp&s=254320b4659e981a7d556c7a097b1510c861f8d0
https://preview.redd.it/1q6l4vwrgbve1.jpg?width=1317&format=pjpg&auto=webp&s=1d7d8d73a574b1a42469db6fc102f9ad4018cafd
https://redd.it/1k13id4
@r_php
GitHub
GitHub - Lakshan-Madushanka/laravel-comments: Integrate seamless commenting functionality into your Laravel project
Integrate seamless commenting functionality into your Laravel project - Lakshan-Madushanka/laravel-comments
Launching TrueReviewer — A Robust & Complete Review and Rating System for Laravel
After successfully launching Commenter, I began my next big mission — TrueReviewer. I might be biased, but I believe TrueReviewer is one of the most complete and powerful review systems available for Laravel. Whether you're building a SaaS platform, e-commerce site, or any other web app, it’s designed to fit right in.
Unlike Commenter, TrueReviewer is API-agnostic — meaning the front-end (Vue.js) and back-end are completely decoupled. This gives you the freedom to integrate it into any Laravel project, whether it's a traditional server-side rendered app or a fully separated API-driven architecture using Vue as the front end. Since the Vue components are compiled into JavaScript, it works seamlessly across tech stacks.
TrueReviewer focuses on performance, customization, and design. It comes with five beautifully crafted components that are not just visually appealing but also accessible and user-friendly. Each component is built to make an impact without overwhelming the UI, offering a smooth and intuitive experience. Thanks to its modular design, you can use components independently based on your project’s needs.
Going beyond traditional review systems, TrueReviewer includes AI-powered features like sentiment detection and integrity checks, helping ensure the quality and trustworthiness of reviews.
TrueReviewer is currently offered as sponsorware — a paid product. I understand that the Laravel community often prefers open-source tools, and I genuinely planned to release this as open-source. However, given the effort, time, and resources involved, I needed to find a balance between sustainability and community contribution.
I hope you’ll see the value in this package — and if it helps your project, that alone makes it worth it.
Product Hunt
https://preview.redd.it/0k8sm3oc2cve1.jpg?width=1156&format=pjpg&auto=webp&s=d6c92a08acb17b7bc2bef9922d0a2fd91c97d1e3
https://preview.redd.it/64cxfoaj2cve1.jpg?width=1249&format=pjpg&auto=webp&s=3039f4bc293dfea5b3b44be08799f46201ca505f
https://preview.redd.it/6ftzjchv2cve1.jpg?width=1259&format=pjpg&auto=webp&s=9bd82b3d3f37fd8c86c485ba75c1d8710e9f9b70
https://preview.redd.it/qnfb56cw2cve1.jpg?width=1317&format=pjpg&auto=webp&s=9bd6c2a7d110af5cb47ef22886ae4fda7f980946
https://redd.it/1k15hxp
@r_php
After successfully launching Commenter, I began my next big mission — TrueReviewer. I might be biased, but I believe TrueReviewer is one of the most complete and powerful review systems available for Laravel. Whether you're building a SaaS platform, e-commerce site, or any other web app, it’s designed to fit right in.
Unlike Commenter, TrueReviewer is API-agnostic — meaning the front-end (Vue.js) and back-end are completely decoupled. This gives you the freedom to integrate it into any Laravel project, whether it's a traditional server-side rendered app or a fully separated API-driven architecture using Vue as the front end. Since the Vue components are compiled into JavaScript, it works seamlessly across tech stacks.
TrueReviewer focuses on performance, customization, and design. It comes with five beautifully crafted components that are not just visually appealing but also accessible and user-friendly. Each component is built to make an impact without overwhelming the UI, offering a smooth and intuitive experience. Thanks to its modular design, you can use components independently based on your project’s needs.
Going beyond traditional review systems, TrueReviewer includes AI-powered features like sentiment detection and integrity checks, helping ensure the quality and trustworthiness of reviews.
TrueReviewer is currently offered as sponsorware — a paid product. I understand that the Laravel community often prefers open-source tools, and I genuinely planned to release this as open-source. However, given the effort, time, and resources involved, I needed to find a balance between sustainability and community contribution.
I hope you’ll see the value in this package — and if it helps your project, that alone makes it worth it.
Product Hunt
https://preview.redd.it/0k8sm3oc2cve1.jpg?width=1156&format=pjpg&auto=webp&s=d6c92a08acb17b7bc2bef9922d0a2fd91c97d1e3
https://preview.redd.it/64cxfoaj2cve1.jpg?width=1249&format=pjpg&auto=webp&s=3039f4bc293dfea5b3b44be08799f46201ca505f
https://preview.redd.it/6ftzjchv2cve1.jpg?width=1259&format=pjpg&auto=webp&s=9bd82b3d3f37fd8c86c485ba75c1d8710e9f9b70
https://preview.redd.it/qnfb56cw2cve1.jpg?width=1317&format=pjpg&auto=webp&s=9bd6c2a7d110af5cb47ef22886ae4fda7f980946
https://redd.it/1k15hxp
@r_php
GitHub
GitHub - Lakshan-Madushanka/laravel-comments: Integrate seamless commenting functionality into your Laravel project
Integrate seamless commenting functionality into your Laravel project - Lakshan-Madushanka/laravel-comments
I absolutely love this True Async RFC!!!
I have just been reading through the True Async Stage 3 and WOW! What a refreshing RFC! I love the implementation so so much!!! It’s so clean! It feels like PHP! Great job!
https://externals.io/message/127120
https://redd.it/1k16gp1
@r_php
I have just been reading through the True Async Stage 3 and WOW! What a refreshing RFC! I love the implementation so so much!!! It’s so clean! It feels like PHP! Great job!
https://externals.io/message/127120
https://redd.it/1k16gp1
@r_php
externals.io
PHP True Async RFC Stage 3 - Externals
#externals - Opening PHP's #internals to the outside
Naming pattern for PSR-15 handlers in Dotkernel applications
Enforcing naming conventions and patterns from respected members of the PHP community leads to cleaner code. This is a fact and will always be true.
https://www.dotkernel.com/design-pattern/naming-pattern-for-psr-15-handlers-in-dotkernel-applications/
https://redd.it/1k1a2nd
@r_php
Enforcing naming conventions and patterns from respected members of the PHP community leads to cleaner code. This is a fact and will always be true.
https://www.dotkernel.com/design-pattern/naming-pattern-for-psr-15-handlers-in-dotkernel-applications/
https://redd.it/1k1a2nd
@r_php
Dotkernel PSR-7 Middleware Applications
Naming pattern for PSR-15 handlers in Dotkernel applications
This naming pattern is used in Dotkernel Admin v6 and will also be implemented in the next releases for Frontend and Light.
The bigger a project is, the more time it will take to develop and the more people will be assigned to it. Each developer will…
The bigger a project is, the more time it will take to develop and the more people will be assigned to it. Each developer will…
I just realized backed enum cannot be printed directly
I was using some backed enums and realized that eums cannot be printed directly or passed to functions like fputcsv, even though there is a text rappresentation of them. Also, you cannot implement stringable.
I also found a few rfc talking about this:
[https://wiki.php.net/rfc/enumerations#auto-scalar\_conversion](https://wiki.php.net/rfc/enumerations#auto-scalar_conversion)
https://wiki.php.net/rfc/auto-implement\_stringable\_for\_string\_backed\_enums
In the first RFC, I guess it made sense at that time hold back on this behaviour. Instead, do you know what happend to the second RFC?
Maybe this discussion could be reopened now that enums are more battle tested?
https://redd.it/1k19onm
@r_php
I was using some backed enums and realized that eums cannot be printed directly or passed to functions like fputcsv, even though there is a text rappresentation of them. Also, you cannot implement stringable.
I also found a few rfc talking about this:
[https://wiki.php.net/rfc/enumerations#auto-scalar\_conversion](https://wiki.php.net/rfc/enumerations#auto-scalar_conversion)
https://wiki.php.net/rfc/auto-implement\_stringable\_for\_string\_backed\_enums
In the first RFC, I guess it made sense at that time hold back on this behaviour. Instead, do you know what happend to the second RFC?
Maybe this discussion could be reopened now that enums are more battle tested?
https://redd.it/1k19onm
@r_php
Laravel 12.9 Introduces Memoized Cache Driver
https://nabilhassen.com/laravel-129-introduces-memoized-cache-driver
https://redd.it/1k1chxr
@r_php
https://nabilhassen.com/laravel-129-introduces-memoized-cache-driver
https://redd.it/1k1chxr
@r_php
Nabilhassen
Laravel 12.9 Introduces Memoized Cache Driver
Laravel now includes a memoized cache driver that stores retrieved values in memory per request, reducing repeated access to the underlying cache store.