Game changing editions — some thoughts on how to move PHP forward
https://stitcher.io/blog/game-changing-editions
https://redd.it/1ovx2qi
@r_php
https://stitcher.io/blog/game-changing-editions
https://redd.it/1ovx2qi
@r_php
stitcher.io
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
New in Symfony 7.4: DX Improvements (Part 2)
https://symfony.com/blog/new-in-symfony-7-4-dx-improvements-part-2?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ovx39s
@r_php
https://symfony.com/blog/new-in-symfony-7-4-dx-improvements-part-2?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ovx39s
@r_php
Symfony
New in Symfony 7.4: DX Improvements (Part 2) (Symfony Blog)
Symfony 7.4 enhances developer experience with easier session handling in tests, improved route debugging, more accessible forms, and native FrankenPHP integration.
What are you doing to make your project or codebase more AI-friendly for coding agents?
Pretty much what the noscript says. I want to spend some time improving the codebase and processes we have so coding agents like Claude Code or Junie can write higher-quality code that adheres to styling specs and is well-tested.
I've not done much so far outside of using Laravel Boost and customising the template a bit.
I feel like there could be more, though. When using AI it still sometimes uses the wrong code style or writes pretty bad code.
I'm open to tips!
https://redd.it/1ovxvg0
@r_php
Pretty much what the noscript says. I want to spend some time improving the codebase and processes we have so coding agents like Claude Code or Junie can write higher-quality code that adheres to styling specs and is well-tested.
I've not done much so far outside of using Laravel Boost and customising the template a bit.
I feel like there could be more, though. When using AI it still sometimes uses the wrong code style or writes pretty bad code.
I'm open to tips!
https://redd.it/1ovxvg0
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Recording video on a phone from Laravel
https://www.youtube.com/watch?v=8LB2HPhKHuY
https://redd.it/1ow4fj4
@r_php
https://www.youtube.com/watch?v=8LB2HPhKHuY
https://redd.it/1ow4fj4
@r_php
YouTube
Native iOS/Android Video Support - With PHP 🤯
🚨🤳🚨🤳🚨🤳
NativePHP now supports video!
Yep, we shot this entire demo with NativePHP itself.
No Swift. No Kotlin. Just pure Laravel magic.
https://nativephp.com 🤘🚀
#NativePHP #Laravel #PHP #MobileDev #MadeWithLaravel
NativePHP now supports video!
Yep, we shot this entire demo with NativePHP itself.
No Swift. No Kotlin. Just pure Laravel magic.
https://nativephp.com 🤘🚀
#NativePHP #Laravel #PHP #MobileDev #MadeWithLaravel
Make PHPUnit tests Perfect in 15 Diffs
https://getrector.com/blog/make-phpunit-tests-perfect-in-15-diffs
https://redd.it/1ow313y
@r_php
https://getrector.com/blog/make-phpunit-tests-perfect-in-15-diffs
https://redd.it/1ow313y
@r_php
Getrector
Make PHPUnit tests Perfect in 15 Diffs
Rector helps you improve PHP code, upgrade it to latest PHP version, make use of modern features and faster code structures. But did you know it can make your PHPUnit tests faster and easier to read?
New PHPUnit version have more precise and reliable asserts…
New PHPUnit version have more precise and reliable asserts…
e-Invoicing and Peppol in Europe with PHP
PHP is used in a lot of commerce software, so I think this is a suitable topic to discuss in this subreddit.
Soon all companies need to send their invoices into the Peppol network. Who is already doing this? What is your experience?
Easiest way is to make use of a Peppol access point / provider which offers a REST API. What provider would you recommend?
Are there any good libraries to use?
I'm considering using Billit. They offer reasonable pricing for small quantities of invoices. They give a lot of information in a clear way on their website. They offer both a portal and an API.
An SDK exists for Billit, but it hasn't seen a commit since 3 years...
https://redd.it/1ow4f3g
@r_php
PHP is used in a lot of commerce software, so I think this is a suitable topic to discuss in this subreddit.
Soon all companies need to send their invoices into the Peppol network. Who is already doing this? What is your experience?
Easiest way is to make use of a Peppol access point / provider which offers a REST API. What provider would you recommend?
Are there any good libraries to use?
I'm considering using Billit. They offer reasonable pricing for small quantities of invoices. They give a lot of information in a clear way on their website. They offer both a portal and an API.
An SDK exists for Billit, but it hasn't seen a commit since 3 years...
https://redd.it/1ow4f3g
@r_php
GitHub
GitHub - drakakisgeo/billit: The billit.io API Client for PHP.
The billit.io API Client for PHP. Contribute to drakakisgeo/billit development by creating an account on GitHub.
SymfonyCon Amsterdam 2025: Blast Off Your CI with Dagger
https://symfony.com/blog/symfonycon-amsterdam-2025-blast-off-your-ci-with-dagger?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ow9hdv
@r_php
https://symfony.com/blog/symfonycon-amsterdam-2025-blast-off-your-ci-with-dagger?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ow9hdv
@r_php
Symfony
SymfonyCon Amsterdam 2025: Blast Off Your CI with Dagger (Symfony Blog)
Join SymfonyCon Amsterdam 2025 to discover Adrien Roches and his talk “Blast Off Your CI with Dagger”! Learn how to supercharge your CI pipelines using PHP and Dagger! 🚀
Generate SVG image charts with PHP to be able to use it in web and pdf at the same time.
https://github.com/brainfoolong/php-noscript-charts
https://redd.it/1ow15ns
@r_php
https://github.com/brainfoolong/php-noscript-charts
https://redd.it/1ow15ns
@r_php
GitHub
GitHub - brainfoolong/php-noscript-charts: Generate SVG image charts to be able to use it in web and pdf at the same time.
Generate SVG image charts to be able to use it in web and pdf at the same time. - brainfoolong/php-noscript-charts
Staying relevant today as a PHP Developer
I have always been a big PHP fan and used it now for near 20 years now.
Being a PHP developer has always had a stigma, like somehow you aren’t a real developer and pretty much sneers from other developers like Java or Python.
This was never an issue for me as there was always plenty of good paying jobs so I didn’t let it bother me too much.
But now I am out of a job in the UK and there is a real lack of jobs in PHP, and the majority that are hiring are offering a poor salary compared to other languages. Which makes no sense, especially with the likes of Node.js which is just JavaScript.
Even now I build microservices on AWS using PHP and Bref, it works great and extremely fast and powerful.
Recruiters even hit me with the “oh PHP” and I can’t get a look in. These PHP jobs that are hiring don’t even respond to me or I get an auto rejection. My previous salary was 120k and now I’m getting turned down for jobs at 40-50k.
What are people’s thoughts? Unfortunately I think it is time to reinvent myself, maybe move to Go, Rust or Python?
https://redd.it/1owdz15
@r_php
I have always been a big PHP fan and used it now for near 20 years now.
Being a PHP developer has always had a stigma, like somehow you aren’t a real developer and pretty much sneers from other developers like Java or Python.
This was never an issue for me as there was always plenty of good paying jobs so I didn’t let it bother me too much.
But now I am out of a job in the UK and there is a real lack of jobs in PHP, and the majority that are hiring are offering a poor salary compared to other languages. Which makes no sense, especially with the likes of Node.js which is just JavaScript.
Even now I build microservices on AWS using PHP and Bref, it works great and extremely fast and powerful.
Recruiters even hit me with the “oh PHP” and I can’t get a look in. These PHP jobs that are hiring don’t even respond to me or I get an auto rejection. My previous salary was 120k and now I’m getting turned down for jobs at 40-50k.
What are people’s thoughts? Unfortunately I think it is time to reinvent myself, maybe move to Go, Rust or Python?
https://redd.it/1owdz15
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
How WithCachedRoutes and WithCachedConfig sped up a modular monolith's test pipeline
https://cosmastech.com/2025/11/13/improve-modular-test-suite-performance.html
https://redd.it/1owl90m
@r_php
https://cosmastech.com/2025/11/13/improve-modular-test-suite-performance.html
https://redd.it/1owl90m
@r_php
cosmastech
Improving unit test run time in a Laravel modular monolith
I recently started a new job and was given my first exposure to a modular monolith. On the surface, they have a lot to love: all aspects of your app in one repo, one set of dependencies to keep updated, reduced code duplication, and allowing multiple engineering…
Alternative book for Jon Duckett php and mysql book, that use postgresql instead.
Does anyone here know any alternative book?
mysql in my country are rarely (not rarely it most used on a older project, but all the job require senior level. )used in company, company mostly use postgresql specially the new company project.
https://redd.it/1ownhtu
@r_php
Does anyone here know any alternative book?
mysql in my country are rarely (not rarely it most used on a older project, but all the job require senior level. )used in company, company mostly use postgresql specially the new company project.
https://redd.it/1ownhtu
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
New in Symfony 7.4: Signing Messages
https://symfony.com/blog/new-in-symfony-7-4-signing-messages?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1owsdbt
@r_php
https://symfony.com/blog/new-in-symfony-7-4-signing-messages?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1owsdbt
@r_php
Symfony
New in Symfony 7.4: Signing Messages (Symfony Blog)
Symfony 7.4 adds message signing to the Messenger component, ensuring queued messages can't be tampered with before processing.
PHP Prisma: Integrate multi-media related LLMs
Hey r/PHP
Excited to introduce **PHP Prisma** – a new, light-weight PHP package designed to streamline interactions with multi-media related Large Language Models (LLMs) through a unified interface:
[**https://php-prisma.org**](https://php-prisma.org)
Integrating advanced image and multi-media AI capabilities into your PHP applications can be complex, dealing with different APIs and providers. PHP Prisma aims to solve this by offering a consistent way to tap into the power of various AI models.
# What can you do with PHP Prisma right now?
The first version of our image API is packed with features, making it easy to manipulate and generate images programmatically:
* **Background:** Replace image background with a background described by the prompt.
* **Describe:** Get AI-generated denoscriptions for image content.
* **Detext:** Remove text from images.
* **Erase:** Erase objects or parts of an image.
* **Imagine:** Generate entirely new images from prompts (text-to-image).
* **Inpaint:** Edit an image by inpainting an area defined by a mask according to a prompt.
* **Isolate:** Remove the image background
* **Relocate:** Place the foreground object on a new background.
* **Repaint:** Edit an image according to the prompt.
* **Studio:** Create studio photo from the object in the foreground of the image.
* **Uncrop:** Extend/outpaint the image.
* **Upscale:** Scale up the image.
# Current Supported AI Providers:
We're starting with integration for some of the leading AI providers:
* Clipdrop
* Gemini (Google)
* Ideogram (beta)
* Imagen (Google) (beta)
* OpenAI
* RemoveBG
* StabilityAI
This means you can switch between providers or leverage the unique strengths of their models, all through a single, clean PHP interface. The next versions will contain more AI providers as well as audio and video capabilities.
We're really excited about the potential of PHP Prisma to empower PHP developers to build more innovative and AI-powered applications. We welcome all feedback, contributions, and suggestions.
Give it a try and let us know what you think! :-)
[**https://php-prisma.org**](https://php-prisma.org)
https://redd.it/1owsn8k
@r_php
Hey r/PHP
Excited to introduce **PHP Prisma** – a new, light-weight PHP package designed to streamline interactions with multi-media related Large Language Models (LLMs) through a unified interface:
[**https://php-prisma.org**](https://php-prisma.org)
Integrating advanced image and multi-media AI capabilities into your PHP applications can be complex, dealing with different APIs and providers. PHP Prisma aims to solve this by offering a consistent way to tap into the power of various AI models.
# What can you do with PHP Prisma right now?
The first version of our image API is packed with features, making it easy to manipulate and generate images programmatically:
* **Background:** Replace image background with a background described by the prompt.
* **Describe:** Get AI-generated denoscriptions for image content.
* **Detext:** Remove text from images.
* **Erase:** Erase objects or parts of an image.
* **Imagine:** Generate entirely new images from prompts (text-to-image).
* **Inpaint:** Edit an image by inpainting an area defined by a mask according to a prompt.
* **Isolate:** Remove the image background
* **Relocate:** Place the foreground object on a new background.
* **Repaint:** Edit an image according to the prompt.
* **Studio:** Create studio photo from the object in the foreground of the image.
* **Uncrop:** Extend/outpaint the image.
* **Upscale:** Scale up the image.
# Current Supported AI Providers:
We're starting with integration for some of the leading AI providers:
* Clipdrop
* Gemini (Google)
* Ideogram (beta)
* Imagen (Google) (beta)
* OpenAI
* RemoveBG
* StabilityAI
This means you can switch between providers or leverage the unique strengths of their models, all through a single, clean PHP interface. The next versions will contain more AI providers as well as audio and video capabilities.
We're really excited about the potential of PHP Prisma to empower PHP developers to build more innovative and AI-powered applications. We welcome all feedback, contributions, and suggestions.
Give it a try and let us know what you think! :-)
[**https://php-prisma.org**](https://php-prisma.org)
https://redd.it/1owsn8k
@r_php
php-prisma.org
PHP Prisma - Multi-media PHP LLM API for AI providers
Light-weight PHP package for integrating multi-media related Large Language Models (LLMs) using a unified interface
Experience with Laravel Cloud after the pricing changes?
Just curious how reasonable (or not) the bills have been after they pricing changes a few months ago. Tried it on launch and it was pretty nuts, had to pivot off.
Just looking for practical real-world client usage, not hobby sites.
Thoughts?
https://redd.it/1owwl28
@r_php
Just curious how reasonable (or not) the bills have been after they pricing changes a few months ago. Tried it on launch and it was pretty nuts, had to pivot off.
Just looking for practical real-world client usage, not hobby sites.
Thoughts?
https://redd.it/1owwl28
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Spatie Testing Laravel vs Laracasts Pest courses - which is most comprehensive / better for juniors?
I’ve got a couple junior/mid devs I want to get up to speed with automated testing in Laravel (mainly Pest). I’m deciding between:
Spatie – Testing Laravel ($149 one-time)
Laracasts – Pest From Scratch / Pest Driven Laravel ($25/mo per user)
Has anyone taken either (or both)? Which would you recommend for juniors/mids who are new to testing? Or is there another video course you’d suggest instead?
Thanks!
https://redd.it/1owx6z8
@r_php
I’ve got a couple junior/mid devs I want to get up to speed with automated testing in Laravel (mainly Pest). I’m deciding between:
Spatie – Testing Laravel ($149 one-time)
Laracasts – Pest From Scratch / Pest Driven Laravel ($25/mo per user)
Has anyone taken either (or both)? Which would you recommend for juniors/mids who are new to testing? Or is there another video course you’d suggest instead?
Thanks!
https://redd.it/1owx6z8
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
First time Tried to build a RAG using Laravel, but..
So laravel has so many built-in packages which are I think very profound for a RAG, so i gave it a try, basic structure is done but I'm having some problems.
1- the system is gathering lot of info from the database based on query relevance, but when its presented to LLM(gemini) it's just ignoring most of the data and picking up a very little of that, and the answers are vague.
2- Ridiculous answers- Even for just a 'hey' its giving lengthy and irrelivent answers.
3- Timings- 15-20 seconds for a simple answer
I haven't used any vector database, and is using MySQL as of now, so it might be differential.. but this was just a curiosity thing so i thought maybe ask here first, what should i do to improve it as i wanna make it functional now.
here's what i am using:
"php": "\^8.2",
"google-gemini-php/laravel": "\^2.0",
"google/apiclient": "2.15",
"google/auth": "\^1.47",
"laravel/framework": "\^12.0",
"laravel/sanctum": "\^4.0",
"laravel/tinker": "\^2.10.1",
"maatwebsite/excel": "\^3.1",
"meilisearch/meilisearch-php": "\^1.16",
"phpoffice/phpspreadsheet": "\^1.30",
"smalot/pdfparser": "\^2.12",
"spatie/browsershot": "\^5.0",
"spatie/crawler": "\^8.4",
"symfony/dom-crawler": "\^7.3"
https://redd.it/1ox0gpl
@r_php
So laravel has so many built-in packages which are I think very profound for a RAG, so i gave it a try, basic structure is done but I'm having some problems.
1- the system is gathering lot of info from the database based on query relevance, but when its presented to LLM(gemini) it's just ignoring most of the data and picking up a very little of that, and the answers are vague.
2- Ridiculous answers- Even for just a 'hey' its giving lengthy and irrelivent answers.
3- Timings- 15-20 seconds for a simple answer
I haven't used any vector database, and is using MySQL as of now, so it might be differential.. but this was just a curiosity thing so i thought maybe ask here first, what should i do to improve it as i wanna make it functional now.
here's what i am using:
"php": "\^8.2",
"google-gemini-php/laravel": "\^2.0",
"google/apiclient": "2.15",
"google/auth": "\^1.47",
"laravel/framework": "\^12.0",
"laravel/sanctum": "\^4.0",
"laravel/tinker": "\^2.10.1",
"maatwebsite/excel": "\^3.1",
"meilisearch/meilisearch-php": "\^1.16",
"phpoffice/phpspreadsheet": "\^1.30",
"smalot/pdfparser": "\^2.12",
"spatie/browsershot": "\^5.0",
"spatie/crawler": "\^8.4",
"symfony/dom-crawler": "\^7.3"
https://redd.it/1ox0gpl
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Sentience Database, Querybuilder + database abstraction
Hey everyone,
Sentience is my personal framework project that i've kept evolving over the years, even using it in some startup projects. I decided to separate the database abstraction from the framework.
https://github.com/Sentience-Framework/database
Why did i create this package?
There are things that existing database abstraction packages do that i think can be done better. I've pulled inspiration from Golang's BUN ORM package for this database abstraction, with new or improved features that make my developer experience more pleasant. The ORM part of the abstraction is separated from the database abstraction, to reduce bloat, when it's highly likely you only want a database abstraction to execute some basic queries if you're not already using an ORM integrated in a framework.
The README contains all the documentation for the project. I've kept it short and simple to make it easy to review.
I would love to get your feedback on the project!
https://redd.it/1oww7nm
@r_php
Hey everyone,
Sentience is my personal framework project that i've kept evolving over the years, even using it in some startup projects. I decided to separate the database abstraction from the framework.
https://github.com/Sentience-Framework/database
Why did i create this package?
There are things that existing database abstraction packages do that i think can be done better. I've pulled inspiration from Golang's BUN ORM package for this database abstraction, with new or improved features that make my developer experience more pleasant. The ORM part of the abstraction is separated from the database abstraction, to reduce bloat, when it's highly likely you only want a database abstraction to execute some basic queries if you're not already using an ORM integrated in a framework.
The README contains all the documentation for the project. I've kept it short and simple to make it easy to review.
I would love to get your feedback on the project!
https://redd.it/1oww7nm
@r_php
GitHub
GitHub - Sentience-Framework/database: The database of Sentience
The database of Sentience. Contribute to Sentience-Framework/database development by creating an account on GitHub.