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…
PHP is 30
PHP has turned 30 years old today. Here's a quick retrospective on PHP's origins:
https://kieranpotts.com/php-is-30
https://redd.it/1l6ewx0
@r_php
PHP has turned 30 years old today. Here's a quick retrospective on PHP's origins:
https://kieranpotts.com/php-is-30
https://redd.it/1l6ewx0
@r_php
Kieranpotts
PHP is 30
PHP version 1.0 was announced on 8 June 1995. It quickly became a popular server-side noscripting language for websites. Here's why.
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/1l6h1ps
@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/1l6h1ps
@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.
Getting my Laravel application security audited
https://govigilant.io/articles/getting-my-laravel-application-security-audited
https://redd.it/1l6i2r0
@r_php
https://govigilant.io/articles/getting-my-laravel-application-security-audited
https://redd.it/1l6i2r0
@r_php
Startup Project
Hello, im building a startup. the stacks are symfony and expo for the mobile application. it is a SAAS product. I think it will be a successful idea and would like to ask if someone would like to collaborate with me to build it. To be completely honest i dont have money to pay, but i will provide shares from the profits once we go live. i will handle the marketing and sales. i should need a solid developer to help me build it. if you're serious, please DM with some of your work or CV.
Peace all! <3
https://redd.it/1l6g5lf
@r_php
Hello, im building a startup. the stacks are symfony and expo for the mobile application. it is a SAAS product. I think it will be a successful idea and would like to ask if someone would like to collaborate with me to build it. To be completely honest i dont have money to pay, but i will provide shares from the profits once we go live. i will handle the marketing and sales. i should need a solid developer to help me build it. if you're serious, please DM with some of your work or CV.
Peace all! <3
https://redd.it/1l6g5lf
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Getting my PHP (Laravel) application security audited
https://govigilant.io/articles/getting-my-laravel-application-security-audited
https://redd.it/1l6i3d4
@r_php
https://govigilant.io/articles/getting-my-laravel-application-security-audited
https://redd.it/1l6i3d4
@r_php
Reddit
From the PHP community on Reddit: Getting my PHP (Laravel) application security audited
Posted by DutchBytes - 0 votes and 0 comments
PHP Records: In Userland
Some of you may remember my RFC on Records (https://wiki.php.net/rfc/records). After months of off-and-on R&D, I now present to you a general-use Records base-class: https://github.com/withinboredom/records
This library allows you to define and use records — albeit, with a bit of boilerplate. Records are value objects, meaning strict equality (===) is defined by value, not by reference. This is useful for unit types or custom scalar types (like "names", "users", or "ids").
Unfortunately, it is probably quite slow if you have a lot of records of a single type in memory (it uses an O(n) algorithm for interning due to being unable to access lower-level PHP internals). For most cases, it is probably still orders of magnitude faster than a database access. So, it should be fine.
https://redd.it/1l6p85a
@r_php
Some of you may remember my RFC on Records (https://wiki.php.net/rfc/records). After months of off-and-on R&D, I now present to you a general-use Records base-class: https://github.com/withinboredom/records
This library allows you to define and use records — albeit, with a bit of boilerplate. Records are value objects, meaning strict equality (===) is defined by value, not by reference. This is useful for unit types or custom scalar types (like "names", "users", or "ids").
Unfortunately, it is probably quite slow if you have a lot of records of a single type in memory (it uses an O(n) algorithm for interning due to being unable to access lower-level PHP internals). For most cases, it is probably still orders of magnitude faster than a database access. So, it should be fine.
https://redd.it/1l6p85a
@r_php
Just launched: Laravel AI Chat Starter Kit
I’ve just open-sourced a Laravel based AI chat starter kit built using:
* **Prism** (for AI/LLM integration)
* **Laravel Streams** (for native response streaming)
* **VILT stack** (Vue, Inertia, Laravel, Tailwind)
It comes with:
* Persistable chat history
* Model configuration
* Chat sharing
* Markdown & code rendering
[GitHub Repo](https://github.com/pushpak1300/ai-chat)
https://redd.it/1l6sdrz
@r_php
I’ve just open-sourced a Laravel based AI chat starter kit built using:
* **Prism** (for AI/LLM integration)
* **Laravel Streams** (for native response streaming)
* **VILT stack** (Vue, Inertia, Laravel, Tailwind)
It comes with:
* Persistable chat history
* Model configuration
* Chat sharing
* Markdown & code rendering
[GitHub Repo](https://github.com/pushpak1300/ai-chat)
https://redd.it/1l6sdrz
@r_php
GitHub
GitHub - pushpak1300/ai-chat: A modern AI chat starter kit built with Laravel, featuring real-time streaming responses using Prism…
A modern AI chat starter kit built with Laravel, featuring real-time streaming responses using Prism, Inertia.js, Vue.js, and TailwindCSS. - pushpak1300/ai-chat
The most simple way to generate pdf for invoice n report
Hi guys,
I remember using phpjasperxml ver 0.9 in symfony 2.7 and php 5 to generate pdf.
What s current option to generate pdf for symfony 7 and php 8?
I read that phpjasper and phpjasperxml r possible. I also read gutenbergbundle. Which will be recommended for simplicity and ease of use? The invoice and the report r simple pdf without any fancy stuff.
https://redd.it/1l6uup7
@r_php
Hi guys,
I remember using phpjasperxml ver 0.9 in symfony 2.7 and php 5 to generate pdf.
What s current option to generate pdf for symfony 7 and php 8?
I read that phpjasper and phpjasperxml r possible. I also read gutenbergbundle. Which will be recommended for simplicity and ease of use? The invoice and the report r simple pdf without any fancy stuff.
https://redd.it/1l6uup7
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony 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/1l6uj36
@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/1l6uj36
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community