should i focus procedural php or continue learning until i finishes all the oop concepts?
I've been learning php through to programming with gio, i am on the namespace section and i am kinda struggling to understand the concept, but i do manage to understand it using copilot to explain the code functionality. i ask in discord about nullsafe in oop and someone said that i should directly build in order to learn and not to watch tutorials because you are not learning base on what he says. oop is large, should i focus learning all the concepts and follow what gio is coding in the video or should i abandon the tutorial and start building after learning the basics of php? right now, i still don't know about sql and building simple login website using php but i have sufficient knowledge about html and css. i am kinda lost. any advice is appreciated, thank you.
https://redd.it/1l3asc5
@r_php
I've been learning php through to programming with gio, i am on the namespace section and i am kinda struggling to understand the concept, but i do manage to understand it using copilot to explain the code functionality. i ask in discord about nullsafe in oop and someone said that i should directly build in order to learn and not to watch tutorials because you are not learning base on what he says. oop is large, should i focus learning all the concepts and follow what gio is coding in the video or should i abandon the tutorial and start building after learning the basics of php? right now, i still don't know about sql and building simple login website using php but i have sufficient knowledge about html and css. i am kinda lost. any advice is appreciated, thank you.
https://redd.it/1l3asc5
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Laravel AI Translator - JSON Support Update
https://github.com/kargnas/laravel-ai-translator
https://redd.it/1l3a6xm
@r_php
https://github.com/kargnas/laravel-ai-translator
https://redd.it/1l3a6xm
@r_php
GitHub
GitHub - kargnas/laravel-ai-translator: High quality automatic translate your language files into many languages using AI like…
High quality automatic translate your language files into many languages using AI like Claude, GPT and etc. - kargnas/laravel-ai-translator
Architecture of my open source Laravel monitoring application
https://govigilant.io/articles/architecture-of-my-open-source-laravel-monitoring-application
https://redd.it/1l3dj2r
@r_php
https://govigilant.io/articles/architecture-of-my-open-source-laravel-monitoring-application
https://redd.it/1l3dj2r
@r_php
Architecture of my open source Laravel monitoring application
https://govigilant.io/articles/architecture-of-my-open-source-laravel-monitoring-application
https://redd.it/1l3dinz
@r_php
https://govigilant.io/articles/architecture-of-my-open-source-laravel-monitoring-application
https://redd.it/1l3dinz
@r_php
Reddit
From the laravel community on Reddit: Architecture of my open source Laravel monitoring application
Posted by DutchBytes - 2 votes and 3 comments
Because free can be good and it has good speakers - Conference
Just seen this floating around on Reddit - sharing
https://lp.jetbrains.com/phpverse-2025/?rdt\_cid=4985743870647516493&utm\_campaign=amer\_en\_dc\_phpstorm\_phpverse2025&utm\_content=phpverse25\_amer\_all\_banner&utm\_medium=cpc&utm\_source=reddit
https://redd.it/1l3heb6
@r_php
Just seen this floating around on Reddit - sharing
https://lp.jetbrains.com/phpverse-2025/?rdt\_cid=4985743870647516493&utm\_campaign=amer\_en\_dc\_phpstorm\_phpverse2025&utm\_content=phpverse25\_amer\_all\_banner&utm\_medium=cpc&utm\_source=reddit
https://redd.it/1l3heb6
@r_php
JetBrains: Developer Tools for Professionals and Teams
JetBrains PHPverse 2025 – Online Event Celebrating 30 Years of PHP
Join us for a free virtual event as we celebrate PHP’s 30th anniversary with top experts and thought leaders. Enjoy insightful talks, exciting announcements, and a look at the future of PHP development.
How do I choose between Livewire and Vue.js for my project? Your criteria and feedback
Hi everyone,
I am currently working on a project for an application that is intended to serve the customers of a in the context of requests for financing for the customer of a bank, and I hesitate between two technologies for the front-end part: fr in the cad Livewire and Vue.js. I'm trying to better understand which criteria I should take into account when making my choice.
To give you some context:
My project needs to handle real-time interactions, integrate with Laravel.
I'm used to Laravel and Livewire.
The technical constraints are limited hosting, no complex APIs, etc...
My main question: what criteria or aspects should I consider when choosing between Livewire and Vue.js in this case? For example, ease of learning, performance, scalability, integration with Laravel, or something else? If you've used either technology, I'd love to hear your feedback!
Thanks in advance for your advice!
https://redd.it/1l3h9ag
@r_php
Hi everyone,
I am currently working on a project for an application that is intended to serve the customers of a in the context of requests for financing for the customer of a bank, and I hesitate between two technologies for the front-end part: fr in the cad Livewire and Vue.js. I'm trying to better understand which criteria I should take into account when making my choice.
To give you some context:
My project needs to handle real-time interactions, integrate with Laravel.
I'm used to Laravel and Livewire.
The technical constraints are limited hosting, no complex APIs, etc...
My main question: what criteria or aspects should I consider when choosing between Livewire and Vue.js in this case? For example, ease of learning, performance, scalability, integration with Laravel, or something else? If you've used either technology, I'd love to hear your feedback!
Thanks in advance for your advice!
https://redd.it/1l3h9ag
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
SymfonyOnline June 2025 starts next week!
https://symfony.com/blog/symfonyonline-june-2025-starts-next-week?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1l3vb7n
@r_php
https://symfony.com/blog/symfonyonline-june-2025-starts-next-week?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1l3vb7n
@r_php
Symfony
SymfonyOnline June 2025 starts next week! (Symfony Blog)
Get ready for SymfonyOnline June 2025 with engaging talks, practical workshops, and valuable insights await. Don't miss out!
Recommendations for Backend Hosting
I'm needing to provision a single mysql db, and to host some php code that will handle api calls from my front end - the API accepting 10-50 lines of text on an api transaction. Possibly 25 users simultaneously at any one time, but that may be a hopeful number even.
Between Railway and Linode (now called Akamai ), what might be the best option.
\- Looking for economy. The $5/mo plan on Railway, or the $12 plan on linode is what I'm looking at.
\- But, was wondering if anyone with experience in either hoster - if you found your useage all of a sudden is pushing the limits of the plan you choose, which hoster of the two makes it easy to just boost up to the next plan without having to re-deploy if that's possible.
Note: I was considering Linode because I heard they have built in protection against DDOS'ing, and have heard stories about big unexpected bills you can get.
https://redd.it/1l4hu0c
@r_php
I'm needing to provision a single mysql db, and to host some php code that will handle api calls from my front end - the API accepting 10-50 lines of text on an api transaction. Possibly 25 users simultaneously at any one time, but that may be a hopeful number even.
Between Railway and Linode (now called Akamai ), what might be the best option.
\- Looking for economy. The $5/mo plan on Railway, or the $12 plan on linode is what I'm looking at.
\- But, was wondering if anyone with experience in either hoster - if you found your useage all of a sudden is pushing the limits of the plan you choose, which hoster of the two makes it easy to just boost up to the next plan without having to re-deploy if that's possible.
Note: I was considering Linode because I heard they have built in protection against DDOS'ing, and have heard stories about big unexpected bills you can get.
https://redd.it/1l4hu0c
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Case study - Yousign: Scaling Trust with Smart, Scalable Architecture
https://symfony.com/blog/case-study-yousign-scaling-trust-with-smart-scalable-architecture?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1l4mwi2
@r_php
https://symfony.com/blog/case-study-yousign-scaling-trust-with-smart-scalable-architecture?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1l4mwi2
@r_php
Symfony
Case study - Yousign: Scaling Trust with Smart, Scalable Architecture (Symfony Blog)
How do you scale trust across Europe with speed, security, and developer happiness? Discover how Yousign builds on Symfony to power millions of digital signatures every month. Read the full story!
ChatGPT Finally Supports MCP! Laravel MCP Server v1.2.0 with Full Protocol Support
https://github.com/opgginc/laravel-mcp-server/
https://redd.it/1l4nie1
@r_php
https://github.com/opgginc/laravel-mcp-server/
https://redd.it/1l4nie1
@r_php
GitHub
GitHub - opgginc/laravel-mcp-server: A Laravel package for implementing secure Model Context Protocol servers using Streamable…
A Laravel package for implementing secure Model Context Protocol servers using Streamable HTTP and SSE transport, providing real-time communication and a scalable tool system for enterprise environ...
Building bridges: announcing AnyCable for Laravel
https://blog.anycable.io/p/building-bridges-announcing-anycable
https://redd.it/1l4thdj
@r_php
https://blog.anycable.io/p/building-bridges-announcing-anycable
https://redd.it/1l4thdj
@r_php
blog.anycable.io
Building bridges: announcing AnyCable for Laravel
github.com/anycable/anycable-laravel
Symfony Messenger in Node.js? Yes, it's possible!
The Symfony Messenger component is a powerful tool for building message-driven architectures, enabling seamless communication between services and transport layers. If you're a full-stack developer or work across multiple stacks, you might appreciate having similar patterns available in other ecosystems.
I wanted to share a library for NestJS that follows a similar philosophy to Symfony Messenger — and even draws inspiration from systems like NServiceBus in the .NET world. It brings structured, maintainable messaging to the Node.js ecosystem using decorators, handlers, middleware, and transport abstraction.
NPM package: https://www.npmjs.com/package/@nestjstools/messaging
Example repo: https://github.com/nestjstools/messaging-rabbitmq-example
If you're working in a polyglot setup or just curious about messaging in Node.js, give it a try and let me know what you think!
https://redd.it/1l4ufbe
@r_php
The Symfony Messenger component is a powerful tool for building message-driven architectures, enabling seamless communication between services and transport layers. If you're a full-stack developer or work across multiple stacks, you might appreciate having similar patterns available in other ecosystems.
I wanted to share a library for NestJS that follows a similar philosophy to Symfony Messenger — and even draws inspiration from systems like NServiceBus in the .NET world. It brings structured, maintainable messaging to the Node.js ecosystem using decorators, handlers, middleware, and transport abstraction.
NPM package: https://www.npmjs.com/package/@nestjstools/messaging
Example repo: https://github.com/nestjstools/messaging-rabbitmq-example
If you're working in a polyglot setup or just curious about messaging in Node.js, give it a try and let me know what you think!
https://redd.it/1l4ufbe
@r_php
npm
npm: @nestjstools/messaging
Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.. Latest version: 2.17.1, last published: 6 days ago. Start using @nestjstools/messaging…
An easier way to document your Laravel endpoints using Swagger
Hi everyone!
Today I want to share a library I’ve been working on that makes documenting your Laravel API endpoints much easier.
During your E2E tests, this library captures the requests made to your endpoints and automatically generates the corresponding Swagger (OpenAPI) documentation.
For example, if you have a test like this:
The library will capture the request, response, headers, and other relevant details, then generate a Swagger-compatible YAML file documenting the endpoint automatically.
The generated file can be used with Swagger UI, Redoc, Postman, or any tool that supports OpenAPI specs.
## How to install
Install it via Composer:
Then run the library using:
You can check out the full documentation and source code on GitHub:
https://github.com/n4m-ward/perry
https://redd.it/1l5079q
@r_php
Hi everyone!
Today I want to share a library I’ve been working on that makes documenting your Laravel API endpoints much easier.
During your E2E tests, this library captures the requests made to your endpoints and automatically generates the corresponding Swagger (OpenAPI) documentation.
For example, if you have a test like this:
function test_shouldCreateUser() {
$this
->perryHttp()
->withHeaders(['api_key' => 'some_api_key'])
->withBody([
'name' => 'John Doe',
'age' => 25,
'email' => 'john@doe.com',
'password' => 'password',
])
->post('/user')
->assertJson(['success' => true])
->assertStatus(Response::HTTP_CREATED);
}
The library will capture the request, response, headers, and other relevant details, then generate a Swagger-compatible YAML file documenting the endpoint automatically.
The generated file can be used with Swagger UI, Redoc, Postman, or any tool that supports OpenAPI specs.
## How to install
Install it via Composer:
composer require n4m-ward/laravel-perry
Then run the library using:
./vendor/bin/perry
You can check out the full documentation and source code on GitHub:
https://github.com/n4m-ward/perry
https://redd.it/1l5079q
@r_php
GitHub
GitHub - n4m-ward/perry: A swagger generator library using e2e tests for laravel
A swagger generator library using e2e tests for laravel - n4m-ward/perry
how to disable flush in test
Hi,
is it possible to disable flush only for the tests? so i can use the fixtures i have loaded and i can use zenstruck factory function to make a new entity, but when i test a post it persists the entity but just does not save it to the DB?
thank!
i use symfony 7.2 (doctrine and postgress)
and api platform 4.1
and phpunit for the tests
https://redd.it/1l53a4t
@r_php
Hi,
is it possible to disable flush only for the tests? so i can use the fixtures i have loaded and i can use zenstruck factory function to make a new entity, but when i test a post it persists the entity but just does not save it to the DB?
thank!
i use symfony 7.2 (doctrine and postgress)
and api platform 4.1
and phpunit for the tests
https://redd.it/1l53a4t
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Policy Attributes
Policies are a slightly obscure but critical part of Laravel security. They're the best solution to the common route-model-binding vulnerability where an attacker can just hit /post/123 even through they are only the author of /post/456. We've been working quietly on a proof concept to make CRUD resource controllers "locked by default" and to allow more explicating Model to Policy mapping using php attributes. https://github.com/icehouse-ventures/laravel-policy-attributes Taylor just merged a new Model-Policy mapping attribute called UsePolicy so it seemed a good time to get some feedback on upgrading the Controller side of things. Any feedback?
https://redd.it/1l5g1t1
@r_php
Policies are a slightly obscure but critical part of Laravel security. They're the best solution to the common route-model-binding vulnerability where an attacker can just hit /post/123 even through they are only the author of /post/456. We've been working quietly on a proof concept to make CRUD resource controllers "locked by default" and to allow more explicating Model to Policy mapping using php attributes. https://github.com/icehouse-ventures/laravel-policy-attributes Taylor just merged a new Model-Policy mapping attribute called UsePolicy so it seemed a good time to get some feedback on upgrading the Controller side of things. Any feedback?
https://redd.it/1l5g1t1
@r_php
GitHub
GitHub - icehouse-ventures/laravel-policy-attributes: Laravel policy resource authorisation mapping using php attributes.
Laravel policy resource authorisation mapping using php attributes. - GitHub - icehouse-ventures/laravel-policy-attributes: Laravel policy resource authorisation mapping using php attributes.
Laravel Observers - The Cleanest Way to Handle Model Events
https://backpackforlaravel.com/articles/tutorials/laravel-observers-the-cleanest-way-to-handle-model-events
https://redd.it/1l5o0lz
@r_php
https://backpackforlaravel.com/articles/tutorials/laravel-observers-the-cleanest-way-to-handle-model-events
https://redd.it/1l5o0lz
@r_php
Backpack
Laravel Observers - The Cleanest Way to Handle Model Events
As your Laravel app grows, repetitive tasks can clutter your controllers and models. Now imagine this: when a customer places an order—...
How do you set your rate limiters?
I had considered blocking ip addresses for more than 60 requests per minute for 24 hours and displaying a 429. But then I thought, no one sends 60+ requests per minute, 30 might be enough ... but then I thought, what about some search engine bots - maybe they need more requests.
It would probably also make sense to block ip addresses for example at more than 1000 requests per hour and 5000 requests per day (or so).
And, for example, try to reduce login attempts to 10 per hour.
Of course, it also depends on the application and the usual traffic.
So, how do you go about this? What does your setup look like and how do you find out if it is optimal?
https://redd.it/1l5th8q
@r_php
I had considered blocking ip addresses for more than 60 requests per minute for 24 hours and displaying a 429. But then I thought, no one sends 60+ requests per minute, 30 might be enough ... but then I thought, what about some search engine bots - maybe they need more requests.
It would probably also make sense to block ip addresses for example at more than 1000 requests per hour and 5000 requests per day (or so).
And, for example, try to reduce login attempts to 10 per hour.
Of course, it also depends on the application and the usual traffic.
So, how do you go about this? What does your setup look like and how do you find out if it is optimal?
https://redd.it/1l5th8q
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Modern full-featured non-blocking driver for AMQP 0.9.1
The driver is written entirely using fibers and offers the following features:
- automatic handling of delivery acknowledgments and returns in publisher confirms mode enabled;
- an alternative, more convenient API for transactions and message processing via a concurrent iterator;
- support for batch message processing;
- built-in RPC support.
For more features, refer to the library's documentation. Feedback is welcome.
https://github.com/thesis-php/amqp
https://redd.it/1l5zv4g
@r_php
The driver is written entirely using fibers and offers the following features:
- automatic handling of delivery acknowledgments and returns in publisher confirms mode enabled;
- an alternative, more convenient API for transactions and message processing via a concurrent iterator;
- support for batch message processing;
- built-in RPC support.
For more features, refer to the library's documentation. Feedback is welcome.
https://github.com/thesis-php/amqp
https://redd.it/1l5zv4g
@r_php
GitHub
GitHub - thesis-php/amqp: Non-blocking (fiber based) client for AMQP 0.9.1.
Non-blocking (fiber based) client for AMQP 0.9.1. Contribute to thesis-php/amqp development by creating an account on GitHub.
GitHub - ddddddO/ps2: Tool to convert from serialized string processed by PHP's serialize function to JSON
https://github.com/ddddddO/ps2
https://redd.it/1l61qw7
@r_php
https://github.com/ddddddO/ps2
https://redd.it/1l61qw7
@r_php
GitHub
GitHub - ddddddO/ps2: 🎮 phP Serialize() To xxxx (e.g. JSON)
🎮 phP Serialize() To xxxx (e.g. JSON). Contribute to ddddddO/ps2 development by creating an account on GitHub.
A Week of Symfony #962 (June 2–8, 2025)
https://symfony.com/blog/a-week-of-symfony-962-june-2-8-2025?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1l66v36
@r_php
https://symfony.com/blog/a-week-of-symfony-962-june-2-8-2025?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1l66v36
@r_php
Symfony
A Week of Symfony #962 (June 2–8, 2025) (Symfony Blog)
This week, development activity focused on the upcoming Symfony 7.4 and 8.0 versions, which will deprecate and remove many features. In addition, we published a case study about Yousign. Finally, we'r…