What are different fetch modes in PDO?
I am trying to learn PDO using PHP official manual, phpdelusions and severl other sites found from Google, but all the time I face new concepts, for example cursor.
Now I know only that different fetch modes exist, but that is all. No any explanations why they exist or when to use each.
Also what fetch and query mean and how do they differ between each other? I can only find some library or SDK related things (I guess next I need to learn some set theory).
https://redd.it/1j0gtcl
@r_php
I am trying to learn PDO using PHP official manual, phpdelusions and severl other sites found from Google, but all the time I face new concepts, for example cursor.
Now I know only that different fetch modes exist, but that is all. No any explanations why they exist or when to use each.
Also what fetch and query mean and how do they differ between each other? I can only find some library or SDK related things (I guess next I need to learn some set theory).
https://redd.it/1j0gtcl
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
About Inertiajs scaling
Is anyone using Inertia.js with 1K-2K concurrent users? Any issues with slow reloads or performance? Is it more expensive than an API approach?
I'm currently exploring how well Inertia.js scales for high-traffic applications. I’ve heard mixed opinions and wanted to get some real-world insights.
Right now, I have a news platform built with Laravel (API) + Nuxt, handling 2K min – 10K max concurrent users (avg ~5K). It works well, but I was wondering if Inertia could have been a solid alternative.
For those using Inertia at 1K-2K+ concurrent users, did you notice any performance bottlenecks or slow reload times compared to a traditional API-based approach? Also, does it end up being more expensive in terms of server costs since Laravel is handling more rendering instead of just returning JSON?
Would love to hear from anyone who has scaled an Inertia app to a large user base!
https://redd.it/1j0jm5u
@r_php
Is anyone using Inertia.js with 1K-2K concurrent users? Any issues with slow reloads or performance? Is it more expensive than an API approach?
I'm currently exploring how well Inertia.js scales for high-traffic applications. I’ve heard mixed opinions and wanted to get some real-world insights.
Right now, I have a news platform built with Laravel (API) + Nuxt, handling 2K min – 10K max concurrent users (avg ~5K). It works well, but I was wondering if Inertia could have been a solid alternative.
For those using Inertia at 1K-2K+ concurrent users, did you notice any performance bottlenecks or slow reload times compared to a traditional API-based approach? Also, does it end up being more expensive in terms of server costs since Laravel is handling more rendering instead of just returning JSON?
Would love to hear from anyone who has scaled an Inertia app to a large user base!
https://redd.it/1j0jm5u
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Non-Volt Livewire starter kit now available
Hey all - dropped a non-Volt flavor of the Livewire starter kit for you.
https://x.com/taylorotwell/status/1895584390580957337
https://redd.it/1j0kx3w
@r_php
Hey all - dropped a non-Volt flavor of the Livewire starter kit for you.
https://x.com/taylorotwell/status/1895584390580957337
https://redd.it/1j0kx3w
@r_php
Reddit
From the laravel community on Reddit: Non-Volt Livewire starter kit now available
Explore this post and more from the laravel community
Pining for the Fjords (of Laravel)
With Laravel 12, Cloud, the new starter kits, mass hysteria and confusion, the community up in arms, etc., my sense is a lot of you are [pining for the fjords](https://www.youtube.com/watch?v=4vuW6tQ0218) of Laravel. Pine no more! You're just 7 commands away from Laravel 12, Bootstrap 5, and auth\*! This is the all joy, no soy OG Starter Kit that my grandma used back in '18 and I'm sharing her secret recipe here for your enjoyment!
composer create-project laravel/laravel your-project-name
cd your-project name
composer require laravel/ui
php artisan ui bootstrap --auth
npm remove @tailwindcss/vite tailwindcss
npm install
php artisan serve
That isn't very DRY, so I even had gippity whip you up a bash noscript so you can use it for all your side projects!
#!/bin/bash
# Exit on any error
set -e
# Store project name from argument or use default
PROJECT_NAME=${1:-"your-project-name"}
echo "Creating new Laravel project: $PROJECT_NAME"
composer create-project laravel/laravel "$PROJECT_NAME"
echo "Changing directory to $PROJECT_NAME"
cd "$PROJECT_NAME"
echo "Installing Laravel UI package"
composer require laravel/ui
echo "Setting up Bootstrap authentication scaffolding"
php artisan ui bootstrap --auth
echo "Removing Tailwind related packages"
npm remove @tailwindcss/vite tailwindcss
echo "Installing npm dependencies"
npm install
echo "Starting Laravel development server"
php artisan serve
Make a directory for all your about-to-be-insanely-productive-and-successful side projects. Create a file in that folder's root called og-start.sh and run it as:
`og-start.sh good-vibes-only`
Bonus! Add that puppy to your bash profile as an alias:
echo
'alias ogs="og-start.sh"' >> ~/.bash_profile && source ~/.bash_profile
Then run it with:
`ogs good-vibes-only`
Let's get back to our roots and ship! Have a great weekend everyone!
\* ^(PHP) ^(and) ^(node) ^(required,) [^(jQuery)](https://jquery.com/download/) ^(optional) ^(but) ^(recommended,) ^(OP) ^(not) ^(responsible) ^(for) ^(injury,) ^(loss) ^(of) ^(life,) ^(or) ^(developer) ^(ridicule)
https://redd.it/1j0p0a2
@r_php
With Laravel 12, Cloud, the new starter kits, mass hysteria and confusion, the community up in arms, etc., my sense is a lot of you are [pining for the fjords](https://www.youtube.com/watch?v=4vuW6tQ0218) of Laravel. Pine no more! You're just 7 commands away from Laravel 12, Bootstrap 5, and auth\*! This is the all joy, no soy OG Starter Kit that my grandma used back in '18 and I'm sharing her secret recipe here for your enjoyment!
composer create-project laravel/laravel your-project-name
cd your-project name
composer require laravel/ui
php artisan ui bootstrap --auth
npm remove @tailwindcss/vite tailwindcss
npm install
php artisan serve
That isn't very DRY, so I even had gippity whip you up a bash noscript so you can use it for all your side projects!
#!/bin/bash
# Exit on any error
set -e
# Store project name from argument or use default
PROJECT_NAME=${1:-"your-project-name"}
echo "Creating new Laravel project: $PROJECT_NAME"
composer create-project laravel/laravel "$PROJECT_NAME"
echo "Changing directory to $PROJECT_NAME"
cd "$PROJECT_NAME"
echo "Installing Laravel UI package"
composer require laravel/ui
echo "Setting up Bootstrap authentication scaffolding"
php artisan ui bootstrap --auth
echo "Removing Tailwind related packages"
npm remove @tailwindcss/vite tailwindcss
echo "Installing npm dependencies"
npm install
echo "Starting Laravel development server"
php artisan serve
Make a directory for all your about-to-be-insanely-productive-and-successful side projects. Create a file in that folder's root called og-start.sh and run it as:
`og-start.sh good-vibes-only`
Bonus! Add that puppy to your bash profile as an alias:
echo
'alias ogs="og-start.sh"' >> ~/.bash_profile && source ~/.bash_profile
Then run it with:
`ogs good-vibes-only`
Let's get back to our roots and ship! Have a great weekend everyone!
\* ^(PHP) ^(and) ^(node) ^(required,) [^(jQuery)](https://jquery.com/download/) ^(optional) ^(but) ^(recommended,) ^(OP) ^(not) ^(responsible) ^(for) ^(injury,) ^(loss) ^(of) ^(life,) ^(or) ^(developer) ^(ridicule)
https://redd.it/1j0p0a2
@r_php
YouTube
Monty Python - Dead Parrot
from Monty Python's Flying Circus
Season 1 - Episode 08
Full Frontal Nudity
Recorded 25-11-69, Aired 07-12-69
The world famous Dead Parrot sketch, here, in it's entirety!
I'm slowly uploading the entire Flying Circus series... Got any requests?
Season 1 - Episode 08
Full Frontal Nudity
Recorded 25-11-69, Aired 07-12-69
The world famous Dead Parrot sketch, here, in it's entirety!
I'm slowly uploading the entire Flying Circus series... Got any requests?
PHP RFC: True Async
https://wiki.php.net/rfc/true\_async
Hello everyone,
A few months ago, the PHP community held a vote on what people would like to see in the new version. I responded that it would be amazing to have true concurrency in PHP as a native language feature, without the need for additional libraries or extensions.
So today, I present to you something I’ve been dreaming of — and hopefully, some of you have too.
I believe that such development should not be done by a single person but should instead be open for discussion. I think this approach to coding is more effective.
Thanks in advance for any valuable feedback — or even just for sharing your thoughts! :)
https://redd.it/1j0vo2a
@r_php
https://wiki.php.net/rfc/true\_async
Hello everyone,
A few months ago, the PHP community held a vote on what people would like to see in the new version. I responded that it would be amazing to have true concurrency in PHP as a native language feature, without the need for additional libraries or extensions.
So today, I present to you something I’ve been dreaming of — and hopefully, some of you have too.
I believe that such development should not be done by a single person but should instead be open for discussion. I think this approach to coding is more effective.
Thanks in advance for any valuable feedback — or even just for sharing your thoughts! :)
https://redd.it/1j0vo2a
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Java vs PHP in Europe
Hey everyone,
I'm curious about the state of backend development in Europe, especially when it comes to Java springboot and php laravel.
I am an FE developer, looking to move into fullstack.
1. Which one do you see more commonly used in companies across Europe? I am assuming Java has more work opportunities.
2. How do salaries compare for spring boot vs laravel? I am assuming Java is higher paid, since the barrier to entry in lower with laravel.
3. If you had to pick one for long-term career growth, which would you choose and why?
Thank you for your comments.
https://redd.it/1j14ohf
@r_php
Hey everyone,
I'm curious about the state of backend development in Europe, especially when it comes to Java springboot and php laravel.
I am an FE developer, looking to move into fullstack.
1. Which one do you see more commonly used in companies across Europe? I am assuming Java has more work opportunities.
2. How do salaries compare for spring boot vs laravel? I am assuming Java is higher paid, since the barrier to entry in lower with laravel.
3. If you had to pick one for long-term career growth, which would you choose and why?
Thank you for your comments.
https://redd.it/1j14ohf
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
To the friendly guy at Barnes & Noble
Stranger saw me looking at a python book and I mentioned he started with PHP. Talked a bit more and I mentioned I was just starting to learn and kept hearing about Python and JavaScript online, hoping to maybe one day get a better job or make some side money.
Got up to the front to pay for Python Crash Course and the cashier handed me a bag with “PHP and MySQL” by John Duckett and said it was already paid for.
I don’t know much about this stuff or if any jobs are around here in NJ for PHP. I feel like I owe it to this stranger to give it a try though.
Thanks whoever you are!
https://redd.it/1j19jie
@r_php
Stranger saw me looking at a python book and I mentioned he started with PHP. Talked a bit more and I mentioned I was just starting to learn and kept hearing about Python and JavaScript online, hoping to maybe one day get a better job or make some side money.
Got up to the front to pay for Python Crash Course and the cashier handed me a bag with “PHP and MySQL” by John Duckett and said it was already paid for.
I don’t know much about this stuff or if any jobs are around here in NJ for PHP. I feel like I owe it to this stranger to give it a try though.
Thanks whoever you are!
https://redd.it/1j19jie
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
First impression of Laravel Cloud?
In my opinion, it is expensive since the machines aren't cheap, and you already pay a subnoscription. I would love it if I could pay an expensive subnoscription but get the machines at cheaper prices.
https://redd.it/1j1d6l9
@r_php
In my opinion, it is expensive since the machines aren't cheap, and you already pay a subnoscription. I would love it if I could pay an expensive subnoscription but get the machines at cheaper prices.
https://redd.it/1j1d6l9
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Upgrade All Your Composer Dependencies with a Single Command!
Hey PHP community,
I'm excited to introduce Composer Upgrader v1.0.0 — a new Composer plugin that streamlines your dependency management. With just one command,
Why You'll Love It:
- Simplicity: No more juggling multiple commands. One command, all dependencies upgraded.
- Flexibility: Choose to upgrade all packages or target specific ones.
- Efficiency: Keeps your projects up-to-date with minimal effort.
Getting Started is Easy:
Install it using:
Give it a try and let me know your thoughts. Happy coding!
Check out the full details and contribute on GitHub.
https://redd.it/1j1f7jm
@r_php
Hey PHP community,
I'm excited to introduce Composer Upgrader v1.0.0 — a new Composer plugin that streamlines your dependency management. With just one command,
composer upgrade-all, you can upgrade patch, minor, major, or even specific packages effortlessly.Why You'll Love It:
- Simplicity: No more juggling multiple commands. One command, all dependencies upgraded.
- Flexibility: Choose to upgrade all packages or target specific ones.
- Efficiency: Keeps your projects up-to-date with minimal effort.
Getting Started is Easy:
Install it using:
composer global require vildanbina/composer-upgrader
Give it a try and let me know your thoughts. Happy coding!
Check out the full details and contribute on GitHub.
https://redd.it/1j1f7jm
@r_php
GitHub
GitHub - vildanbina/composer-upgrader: Upgrade all your Composer dependencies in one go
Upgrade all your Composer dependencies in one go. Contribute to vildanbina/composer-upgrader development by creating an account on GitHub.
Am I missing out by not using any frontend frameworks? None of them feel as clean and intuitive as blade to me.
The noscript basically. I've been making websites since I was 12, and been enjoying Laravel since about 5 years.
I have tried learning Vue and React many times, but I just couldn't wrap my head around the whole concept. So far I've built all my Laravel apps using the good ol' Blade templating engine and I love how readable it is when compared to something like React.
Do you think it's a bad thing that I don't use any js frameworks as a solo (fine, I'll call myself full stack) developer?
I am comfortable with Livewire, and even though most people here seem to hate Volt, I do enjoy writing a single page component for a small feature that requires combining logic with interactivity, and doesn't need to bloat my controller. To me that can be a separation of a concern in itself.
https://redd.it/1j1jbly
@r_php
The noscript basically. I've been making websites since I was 12, and been enjoying Laravel since about 5 years.
I have tried learning Vue and React many times, but I just couldn't wrap my head around the whole concept. So far I've built all my Laravel apps using the good ol' Blade templating engine and I love how readable it is when compared to something like React.
Do you think it's a bad thing that I don't use any js frameworks as a solo (fine, I'll call myself full stack) developer?
I am comfortable with Livewire, and even though most people here seem to hate Volt, I do enjoy writing a single page component for a small feature that requires combining logic with interactivity, and doesn't need to bloat my controller. To me that can be a separation of a concern in itself.
https://redd.it/1j1jbly
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Comparing PHP Application Servers in 2025: Performance, Scalability and Modern Options
https://www.deployhq.com/blog/comparing-php-application-servers-in-2025-performance-scalability-and-modern-options
https://redd.it/1j1mgln
@r_php
https://www.deployhq.com/blog/comparing-php-application-servers-in-2025-performance-scalability-and-modern-options
https://redd.it/1j1mgln
@r_php
Deployhq
Comparing PHP Application Servers in 2025: Performance, Scalability and Modern Options
Choose the right PHP application server. Compare Apache, Nginx, and modern alternatives for performance and scalability. Make an informed decision for your PHP deployments.
A Week of Symfony #948 (24 February - 2 March 2025)
https://symfony.com/blog/a-week-of-symfony-948-24-february-2-march-2025?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1j1njqc
@r_php
https://symfony.com/blog/a-week-of-symfony-948-24-february-2-march-2025?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1j1njqc
@r_php
Symfony
A Week of Symfony #948 (February 24 – March 2, 2025) (Symfony Blog)
This week, Symfony 6.4.19 and 7.2.4 maintenance versions were released. In addition, the upcoming Symfony 7.3 version added a helper to render directory trees in the console. Lastly, we welcomed four …
How to Build a Laravel Dashboard (In No Time) via Backpack
https://backpackforlaravel.com/articles/tutorials/how-to-build-a-laravel-dashboard-using-backpack-in-no-time
https://redd.it/1j1sj4g
@r_php
https://backpackforlaravel.com/articles/tutorials/how-to-build-a-laravel-dashboard-using-backpack-in-no-time
https://redd.it/1j1sj4g
@r_php
Backpack for Laravel
How to Build a Laravel Dashboard Using Backpack (In No Time)
Every successful app needs a dashboard. It’s where you keep an eye on the important stuff. However, building one from scratch is time-c...
Temporary hosting support for 7.4
I’ve agreed to an updated (rebuild) of a web app that I built probably 5 years ago now. Unfortunately, it relies on 7.4 and the framework (CI3) doesn’t look to be compatible with 8.x
It’s hosted on Heroku, the stack for which is already EOL and from May it will no longer allow the app to be built, so anything major that goes wrong, we’re screwed.
There’s no way I’m going to be able to complete the update by May, so can anyone advise any other hosting service (ideally deployable with git etc) that will buy me a few more months of 7.4 support so I can leave the old one as is until the new is ready?
Thanks in advance
https://redd.it/1j1vdpj
@r_php
I’ve agreed to an updated (rebuild) of a web app that I built probably 5 years ago now. Unfortunately, it relies on 7.4 and the framework (CI3) doesn’t look to be compatible with 8.x
It’s hosted on Heroku, the stack for which is already EOL and from May it will no longer allow the app to be built, so anything major that goes wrong, we’re screwed.
There’s no way I’m going to be able to complete the update by May, so can anyone advise any other hosting service (ideally deployable with git etc) that will buy me a few more months of 7.4 support so I can leave the old one as is until the new is ready?
Thanks in advance
https://redd.it/1j1vdpj
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Weekly /r/Laravel Help Thread
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1j1wz97
@r_php
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1j1wz97
@r_php
Laravel
Installation - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
🚀 Introducing Keysmith Vue – Laravel 12 + Vue Starterkit API Token Management 🔑
Hey everyone! 👋
I've just released Keysmith Vue v1.0.1, a Laravel 12 Vue Starterkit package that simplifies API token management using Laravel Sanctum. It provides pre-built Vue components for generating, managing, and revoking API keys— based on the Laravel breeze implementation 🎉
🔑 Key Features:
✅ API Token Generation & Management with Laravel Sanctum
✅ Pre-built Vue 3 Components
✅ Flexible Installation – Choose between Page or Settings templates
✅ Customizable Permissions via
✅ Secure Light and Dark Modes
I plan on releasing React and Livewire versions in the near future
You can take a look at the package and documentation here https://github.com/Blaspsoft/keysmith-vue
https://redd.it/1j21omj
@r_php
Hey everyone! 👋
I've just released Keysmith Vue v1.0.1, a Laravel 12 Vue Starterkit package that simplifies API token management using Laravel Sanctum. It provides pre-built Vue components for generating, managing, and revoking API keys— based on the Laravel breeze implementation 🎉
🔑 Key Features:
✅ API Token Generation & Management with Laravel Sanctum
✅ Pre-built Vue 3 Components
✅ Flexible Installation – Choose between Page or Settings templates
✅ Customizable Permissions via
config/keysmith.php ✅ Secure Light and Dark Modes
I plan on releasing React and Livewire versions in the near future
You can take a look at the package and documentation here https://github.com/Blaspsoft/keysmith-vue
https://redd.it/1j21omj
@r_php
GitHub
GitHub - Blaspsoft/keysmith-vue: Keysmith Vue is a Laravel 12 + Vue 3 package for managing API tokens with Laravel Sanctum. It…
Keysmith Vue is a Laravel 12 + Vue 3 package for managing API tokens with Laravel Sanctum. It provides pre-built Vue components for generating, viewing, and revoking API keys, offering a seamless a...
Reminder: if you prefer to develop on Homestead, it's still maintained as a fork!
Some people don't like the new development solutions offered by Laravel, such as Herd (which, let's not forget, it's not an official Laravel product).
Luckily, the good old Laravel Homestead is still maintained by the original author, just under a new fork.
Switching is easy, as the developer says:
>You should be able to destroy your laravel/homestead VM, copy your
GitHub repo: https://github.com/svpernova09/homestead
If you, like me, prefer to develop on a Homestead machine, show your support to the developer and don't forget to star the repo!
https://redd.it/1j21sbw
@r_php
Some people don't like the new development solutions offered by Laravel, such as Herd (which, let's not forget, it's not an official Laravel product).
Luckily, the good old Laravel Homestead is still maintained by the original author, just under a new fork.
Switching is easy, as the developer says:
>You should be able to destroy your laravel/homestead VM, copy your
Homestead.yaml into the forked repo, and spin up a fresh instance from there. If not please come back and open an issue and let me know what went wrong.GitHub repo: https://github.com/svpernova09/homestead
If you, like me, prefer to develop on a Homestead machine, show your support to the developer and don't forget to star the repo!
https://redd.it/1j21sbw
@r_php
X (formerly Twitter)
Taylor Otwell ☁️ 🦹 (@taylorotwell) on X
@DaBourz I do not manage Herd. That is a BeyondCode product.
Interface typehinting on phpstan
I have a question regarding interface type hinting on strict mode. I have an interface that several classes implements and each class return different types and I'm forced to make it mixed to make phpstan happy:
Interface:
How do I go about explicitly typing return type of the implementing classes while having generalized return type to my interface? Or should I just get rid of the interface itself and have more control to the specific classes that implement the method?
https://redd.it/1j27osl
@r_php
I have a question regarding interface type hinting on strict mode. I have an interface that several classes implements and each class return different types and I'm forced to make it mixed to make phpstan happy:
Interface:
/*** Get the wrapper content.** @ return array<mixed, mixed> The content.*/public function getContent(): array;How do I go about explicitly typing return type of the implementing classes while having generalized return type to my interface? Or should I just get rid of the interface itself and have more control to the specific classes that implement the method?
https://redd.it/1j27osl
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Weekly Ask Anything Thread
Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.
https://redd.it/1j2aaaa
@r_php
Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.
https://redd.it/1j2aaaa
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Weekly help thread
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
https://redd.it/1j2cwpc
@r_php
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
https://redd.it/1j2cwpc
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community