Symfony UX map with leaflet doesnt load on chrome and edge but works fine in firefox
Not sure what s the problem….i dont see any error in symfony profiler. It s simply showing empty box.
I use webpack encore instead of asset mapper. I also install bootstrap and use its css and js.
Dont think there is problem with controller code.
Is there problem with bootstrap?
https://redd.it/1j3uq1c
@r_php
Not sure what s the problem….i dont see any error in symfony profiler. It s simply showing empty box.
I use webpack encore instead of asset mapper. I also install bootstrap and use its css and js.
Dont think there is problem with controller code.
Is there problem with bootstrap?
https://redd.it/1j3uq1c
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
In-depth guide on documenting API requests with Scramble
https://laravel-news.com/in-depth-guide-on-documenting-api-requests-with-scramble
https://redd.it/1j3x98r
@r_php
https://laravel-news.com/in-depth-guide-on-documenting-api-requests-with-scramble
https://redd.it/1j3x98r
@r_php
Laravel News
In-depth guide on documenting API requests with Scramble - Laravel News
When documenting the endpoints of your API, you can mentally split the task into documenting the request part (authentication, request body, request parameters) and documenting the response part. In this guide, we'll do a deep dive into request documentation.
SymfonyLive Berlin 2025: CI in PHP Projects: Automate Everything with Your Personal Army of Robots
https://symfony.com/blog/symfonylive-berlin-2025-ci-in-php-projects-automate-everything-with-your-personal-army-of-robots?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1j3yx8m
@r_php
https://symfony.com/blog/symfonylive-berlin-2025-ci-in-php-projects-automate-everything-with-your-personal-army-of-robots?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1j3yx8m
@r_php
Symfony
SymfonyLive Berlin 2025: CI in PHP Projects: Automate Everything with Your Personal Army of Robots (Symfony Blog)
Supercharge your PHP workflow with CI! Learn with Alexander M. Turek to automate testing, validation, and deployments using GitHub Actions & GitLab CI/CD—because robots never sleep!
PHP Map 3.12 - Arrays and collections made easy!
The 3.12 version of the PHP package for working with arrays and collections easily includes many improvements:
- Added strCompare() and deprecates compare()
- Allow key/path as argument for countBy() and groupBy()
- Allow values, closures and exceptions as default values for find(), findKey(), firstKey() and lastKey()
- first(), firstKey(), last() and lastKey() doesn't affect the internal array pointer any more
- Allow closure as parameter for unique() and duplicate()
- Fixed avg(), min(), max() and sum() when using closures
- Fixed keys when using col(), map(), rekey(), unique()
- Performance optimizations
Have a look at the complete documentation at https://php-map.org.
# Why PHP Map?
Instead of:
Just write:
There are several implementations of collections available in PHP but the PHP Map package is feature-rich, dependency free and loved by most developers according to GitHub.
Feel free to like, comment or give a star :-)
https://php-map.org
https://redd.it/1j40dmg
@r_php
The 3.12 version of the PHP package for working with arrays and collections easily includes many improvements:
- Added strCompare() and deprecates compare()
- Allow key/path as argument for countBy() and groupBy()
- Allow values, closures and exceptions as default values for find(), findKey(), firstKey() and lastKey()
- first(), firstKey(), last() and lastKey() doesn't affect the internal array pointer any more
- Allow closure as parameter for unique() and duplicate()
- Fixed avg(), min(), max() and sum() when using closures
- Fixed keys when using col(), map(), rekey(), unique()
- Performance optimizations
Have a look at the complete documentation at https://php-map.org.
# Why PHP Map?
Instead of:
$list = [['id' => 'one', 'value' => 'v1']];
$list[] = ['id' => 'two', 'value' => 'v2']
unset( $list[0] );
$list = array_filter( $list );
sort( $list );
$pairs = array_column( $list, 'value', 'id' );
$value = reset( $pairs ) ?: null;
Just write:
$value = map( [['id' => 'one', 'value' => 'v1']] )
->push( ['id' => 'two', 'value' => 'v2'] )
->remove( 0 )
->filter()
->sort()
->col( 'value', 'id' )
->first();
There are several implementations of collections available in PHP but the PHP Map package is feature-rich, dependency free and loved by most developers according to GitHub.
Feel free to like, comment or give a star :-)
https://php-map.org
https://redd.it/1j40dmg
@r_php
php-map.org
PHP Collections with PHP Map
PHP collection library for easy and elegant handling of PHP arrays as array-like collections
🚀 I Doxswap – A Laravel Package Supporting 80 Document Conversions!
Hey everyone! 👋
I’m excited to introduce Doxswap, a Laravel package that makes document conversion seamless! 🚀
Doxswap supports 80 different document conversions, allowing you to easily transform files between formats such as:
✅ DOCX → PDF
✅ XLSX → CSV
✅ PPTX → PDF
✅ SVG → PNG
✅ TXT → DOCX
✅ And many more!
This package uses LibreOffice to perform high-quality document conversions directly within Laravel.
# ✨ Features
✅ Supports 80 different document conversions
✅ Works with Laravel Storage Drivers
✅ Converts Word, Excel, PowerPoint, Images, and more!
✅ Handles cleanup after conversion
✅ Compatible with Laravel 9, 10, 11, 12
✅ Simple and Easy to Use API
Doxswap usage
# 💡 Why I Built This
I needed a self-hosted, open-source solution for document conversion in Laravel, but most existing options were paid (I've spent thousands), outdated, or lacked flexibility. So I built Doxswap to solve this problem! 💪
I’d love your feedback, feature requests, and contributions! If you find it useful, please star ⭐ the repo and let me know what you think! 🚀
Doxswap is currently in pre-release, you can take a look at the package and documentation here 🔗 https://github.com/Blaspsoft/doxswap
https://redd.it/1j473di
@r_php
Hey everyone! 👋
I’m excited to introduce Doxswap, a Laravel package that makes document conversion seamless! 🚀
Doxswap supports 80 different document conversions, allowing you to easily transform files between formats such as:
✅ DOCX → PDF
✅ XLSX → CSV
✅ PPTX → PDF
✅ SVG → PNG
✅ TXT → DOCX
✅ And many more!
This package uses LibreOffice to perform high-quality document conversions directly within Laravel.
# ✨ Features
✅ Supports 80 different document conversions
✅ Works with Laravel Storage Drivers
✅ Converts Word, Excel, PowerPoint, Images, and more!
✅ Handles cleanup after conversion
✅ Compatible with Laravel 9, 10, 11, 12
✅ Simple and Easy to Use API
Doxswap usage
# 💡 Why I Built This
I needed a self-hosted, open-source solution for document conversion in Laravel, but most existing options were paid (I've spent thousands), outdated, or lacked flexibility. So I built Doxswap to solve this problem! 💪
I’d love your feedback, feature requests, and contributions! If you find it useful, please star ⭐ the repo and let me know what you think! 🚀
Doxswap is currently in pre-release, you can take a look at the package and documentation here 🔗 https://github.com/Blaspsoft/doxswap
https://redd.it/1j473di
@r_php
Issue 52 of A Day With Laravel : Design Patterns, Livewire 3.6, Laravel Vue Starter Kit, Eloquentize and OWASP Laravel Cheat Sheets are discussed
https://preview.redd.it/3be4c0ovfwme1.jpg?width=1280&format=pjpg&auto=webp&s=85afd9a7657cff44bb72a7992dfb50f385f924c4
Hello Laravel friends 👋
Today in "**A Day With Laravel**", I present the following topics :
* 15 Laravel Design Patterns for Peak Performance, Scalability & Efficiency
* What's new in Livewire 3.6
* A deep dive presentation of Laravel Vue Starter Kit *by Christoph Rumpel*
* A solution to manage multiple Laravel applications : Eloquentize
* A topic about security with a Cheat Sheet about Laravel's Security *by OWASP*
I really hope this free content brings value to you.
Let me know in comment what do you think about it.
See you on the next issue.
[https://go.itanea.fr/adwl52](https://go.itanea.fr/adwl52)
https://redd.it/1j47f1f
@r_php
https://preview.redd.it/3be4c0ovfwme1.jpg?width=1280&format=pjpg&auto=webp&s=85afd9a7657cff44bb72a7992dfb50f385f924c4
Hello Laravel friends 👋
Today in "**A Day With Laravel**", I present the following topics :
* 15 Laravel Design Patterns for Peak Performance, Scalability & Efficiency
* What's new in Livewire 3.6
* A deep dive presentation of Laravel Vue Starter Kit *by Christoph Rumpel*
* A solution to manage multiple Laravel applications : Eloquentize
* A topic about security with a Cheat Sheet about Laravel's Security *by OWASP*
I really hope this free content brings value to you.
Let me know in comment what do you think about it.
See you on the next issue.
[https://go.itanea.fr/adwl52](https://go.itanea.fr/adwl52)
https://redd.it/1j47f1f
@r_php
Anonymous functions.
Trying to understand if I need to use anonymous functions. The following code seems to be about the same.
https://redd.it/1j4ac5p
@r_php
Trying to understand if I need to use anonymous functions. The following code seems to be about the same.
<?php$greet = function($name) {echo $name;};$greet('World');echo"<br>";//==============================================function showname($name2){echo $name2;}showname("Texas");?>https://redd.it/1j4ac5p
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
PSA: Laracon US CFP still open!
Hey y'all this year [Laracon US takes](https://laracon.us/) place July 29-30 in Denver, CO. Our [CFP form is still open](https://frequent-pick-a8d.notion.site/1843f372b480802c9cf8ffb63a2c51f5?pvs=105) and we'd love to have submissions from the community. All you need to apply is your name, email, brief denoscription, and 1-2 minute recording of you speaking. A good proposal generally has the following attributes:
* Clearly frames the problem you're trying to solve
* Explains the technology you're using
* Has examples, code samples, or a demo to show
Lmk if you have any questions, hope to see you there!
https://redd.it/1j4cg4c
@r_php
Hey y'all this year [Laracon US takes](https://laracon.us/) place July 29-30 in Denver, CO. Our [CFP form is still open](https://frequent-pick-a8d.notion.site/1843f372b480802c9cf8ffb63a2c51f5?pvs=105) and we'd love to have submissions from the community. All you need to apply is your name, email, brief denoscription, and 1-2 minute recording of you speaking. A good proposal generally has the following attributes:
* Clearly frames the problem you're trying to solve
* Explains the technology you're using
* Has examples, code samples, or a demo to show
Lmk if you have any questions, hope to see you there!
https://redd.it/1j4cg4c
@r_php
laracon.us
Laracon 2026
The flagship Laravel conference.
Laravel AI Agent Development Made Easy
https://towardsdev.com/laravel-ai-agent-development-made-easy-ac7ddd17a7d0
https://redd.it/1j4cu3b
@r_php
https://towardsdev.com/laravel-ai-agent-development-made-easy-ac7ddd17a7d0
https://redd.it/1j4cu3b
@r_php
Medium
Laravel AI Agent Development Made Easy
Dive into AI agent development within your Laravel applications with LarAgent, a new open-source package simplifying AI integration and…
How to migrate router middleware in Laravel to Symfony?
As a developer with years of experience using Laravel, we've implemented numerous router middleware in our projects, applying various middleware to individual routes and route groups. Now I want to migrate part of the functionality to Symfony. After reviewing Symfony's documentation, I see only listeners are available. However, implementing Laravel-style middleware using listeners would be extremely cumbersome, requiring pattern matching against routes using various regular expressions. Is there a more efficient approach to accomplish this?
https://redd.it/1j4m249
@r_php
As a developer with years of experience using Laravel, we've implemented numerous router middleware in our projects, applying various middleware to individual routes and route groups. Now I want to migrate part of the functionality to Symfony. After reviewing Symfony's documentation, I see only listeners are available. However, implementing Laravel-style middleware using listeners would be extremely cumbersome, requiring pattern matching against routes using various regular expressions. Is there a more efficient approach to accomplish this?
https://redd.it/1j4m249
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
PHPoker: Library and Hand Evaluator
If anybody is interested, I posted about it awhile ago, finally got around to finishing it.
♦️♥️♣️♠️ PHPoker
https://github.com/PHPoker/Poker
A PHP library for working with playing cards, specifically poker (based on Nuno's Skeleton-PHP, great package).
It started off as a port of Kevin "CactusKev" Suffecool's Poker Hand Evaluator (both 5/7 card), written in C, and then I added some additional stuff to round it out and improve the developer experience a bit.
I am sure the direct C implementation Kevin will be more performant, but this is actually a very faithful port of his algorithm, including the "perfect hash" improvements contributed by Paul Senzee. Since PHP is written in C under the hood, it may not actually be as far behind as one would expect. I will do some real performance benchmarks soon and add to the ReadMe.
My version is also nicer to use from a development perspective, if I do say so myself.
Check it out, let me know what you think, or feel free to submit an issue, PR, or idea via GitHub. 🙏
Also - shoutout to CactusKev, not only for sharing his code with the detailed explanations, but he actually responded to an e-mail I sent. There was a typo on his example code which caused me some headaches before I figured it out and let him know. He was super humble and supportive that people were still using his code, and seemed like a cool and smart guy. 🌵🧊
https://redd.it/1j4p6xf
@r_php
If anybody is interested, I posted about it awhile ago, finally got around to finishing it.
♦️♥️♣️♠️ PHPoker
https://github.com/PHPoker/Poker
A PHP library for working with playing cards, specifically poker (based on Nuno's Skeleton-PHP, great package).
It started off as a port of Kevin "CactusKev" Suffecool's Poker Hand Evaluator (both 5/7 card), written in C, and then I added some additional stuff to round it out and improve the developer experience a bit.
I am sure the direct C implementation Kevin will be more performant, but this is actually a very faithful port of his algorithm, including the "perfect hash" improvements contributed by Paul Senzee. Since PHP is written in C under the hood, it may not actually be as far behind as one would expect. I will do some real performance benchmarks soon and add to the ReadMe.
My version is also nicer to use from a development perspective, if I do say so myself.
Check it out, let me know what you think, or feel free to submit an issue, PR, or idea via GitHub. 🙏
Also - shoutout to CactusKev, not only for sharing his code with the detailed explanations, but he actually responded to an e-mail I sent. There was a typo on his example code which caused me some headaches before I figured it out and let him know. He was super humble and supportive that people were still using his code, and seemed like a cool and smart guy. 🌵🧊
https://redd.it/1j4p6xf
@r_php
GitHub
GitHub - PHPoker/Poker: The premier poker library for PHP
The premier poker library for PHP. Contribute to PHPoker/Poker development by creating an account on GitHub.
From “You will fail” to 15,000 GitHub stars: The story of Wasp
https://itnext.io/from-you-will-fail-to-15-000-github-stars-the-story-of-wasp-a-laravel-for-js-full-stack-5f9b810a5669
https://redd.it/1j4ru61
@r_php
https://itnext.io/from-you-will-fail-to-15-000-github-stars-the-story-of-wasp-a-laravel-for-js-full-stack-5f9b810a5669
https://redd.it/1j4ru61
@r_php
Medium
From “You will fail” to 15,000 GitHub stars: The story of Wasp, a “Laravel for JS” full-stack…
This is the story of Wasp, the first full-stack framework for JavaScript.
I’ve been developing with Laravel for 10 years—here’s why I stopped using Service + Repository
https://medium.com/@poopoo888888/stop-using-service-repository-in-laravel-a-better-architecture-for-small-medium-businesses-bb44ab7bad0b
https://redd.it/1j4sx4k
@r_php
https://medium.com/@poopoo888888/stop-using-service-repository-in-laravel-a-better-architecture-for-small-medium-businesses-bb44ab7bad0b
https://redd.it/1j4sx4k
@r_php
Medium
Stop Using Service + Repository in Laravel. A Better Architecture for Small & Medium Businesses
The Laravel community has long recommended using Service classes and Repository classes to organize source code.
Commenter[2.3.0]: Now You Can Reference Individual Comments as Requested
https://github.com/Lakshan-Madushanka/laravel-comments/releases/tag/2.3.0
https://redd.it/1j4u2ev
@r_php
https://github.com/Lakshan-Madushanka/laravel-comments/releases/tag/2.3.0
https://redd.it/1j4u2ev
@r_php
GitHub
Release 2.3.0 · Lakshan-Madushanka/laravel-comments
What's Changed
Update dev dependencies to compatible with Laravel 12 by @Lakshan-Madushanka in #105
Feat: reference link to a single comment by @Lakshan-Madushanka in #106
Apply fixes from Sty...
Update dev dependencies to compatible with Laravel 12 by @Lakshan-Madushanka in #105
Feat: reference link to a single comment by @Lakshan-Madushanka in #106
Apply fixes from Sty...
Integrating YOLO AI Predictions into a Laravel Project
https://medium.com/p/0160f77227e0
https://redd.it/1j4uqi0
@r_php
https://medium.com/p/0160f77227e0
https://redd.it/1j4uqi0
@r_php
Medium
Integrating YOLO AI Predictions into a Laravel Project
Incorporating YOLO (You Only Look Once) into a Laravel project can be a powerful way to handle object detection tasks such as image…
Unicode: A Type-Safe Unicode Character Package
Hey, everyone!
Lately, I’ve been working a lot with Unicode characters, both actual symbols in UTF-8 and their escape sequences in other encodings. Managing the different variants and remembering escape sequences alongside the actual symbols (e.g.,
Example usage:
// Output a right arrow
echo Unicode::RIGHTARROW; // Outputs →
// Convert to escaped Unicode sequence
echo Unicode::escape(Unicode::RIGHTARROW); // Outputs \u2190
Would love to hear your thoughts and suggestions! It doesn’t cover every case yet, so if you think something useful is missing, feel free to reach out—or even better, send a PR!
https://github.com/rayblair06/unicode
https://redd.it/1j4vrih
@r_php
Hey, everyone!
Lately, I’ve been working a lot with Unicode characters, both actual symbols in UTF-8 and their escape sequences in other encodings. Managing the different variants and remembering escape sequences alongside the actual symbols (e.g.,
\u2190 => →) became a bit cumbersome. I also wanted a type-safe way to handle them, so inspired by spatie/emoji I built this package!Example usage:
// Output a right arrow
echo Unicode::RIGHTARROW; // Outputs →
// Convert to escaped Unicode sequence
echo Unicode::escape(Unicode::RIGHTARROW); // Outputs \u2190
Would love to hear your thoughts and suggestions! It doesn’t cover every case yet, so if you think something useful is missing, feel free to reach out—or even better, send a PR!
https://github.com/rayblair06/unicode
https://redd.it/1j4vrih
@r_php
GitHub
GitHub - rayblair06/unicode: Type-Safe Unicode Characters
Type-Safe Unicode Characters. Contribute to rayblair06/unicode development by creating an account on GitHub.
logic that decide how data is displayed, in twig or controller??
What s the right way?
Let s say I hav data to be displayed in table format. Data row that meets certain threshold will be displayed in certain color.
Do I put if else statement in twig? Or is there more elegant way?
https://redd.it/1j4xgxu
@r_php
What s the right way?
Let s say I hav data to be displayed in table format. Data row that meets certain threshold will be displayed in certain color.
Do I put if else statement in twig? Or is there more elegant way?
https://redd.it/1j4xgxu
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Introducing Neuron AI – Create full featured AI Agents in PHP
Hi to all PHP engineers, I'm Valerio, CTO of Inspector
I'm very exited to share the release of Neuron AI, an open source framework for integrating AI agents into your existing PHP applications.
https://inspector.dev/introduction-to-neuron-ai-create-full-featured-ai-agents-in-php/
In the last year, I struggled a lot mainly because the PHP ecosystem to develop this kind of “Agentic” features into existing applications it’s not as advanced and rich as it is in other technologies.
In this article I jot down why I decided to release this internal tool as an open source project and what is the market opportunity for me and the PHP community.
I hope it could be the right tool for PHP developers to build AI agents into their products with stronger foundations.
Feel free to write your feedback, share this tool with other PHP friends, or contact me for further information.
https://redd.it/1j4x8ja
@r_php
Hi to all PHP engineers, I'm Valerio, CTO of Inspector
I'm very exited to share the release of Neuron AI, an open source framework for integrating AI agents into your existing PHP applications.
https://inspector.dev/introduction-to-neuron-ai-create-full-featured-ai-agents-in-php/
In the last year, I struggled a lot mainly because the PHP ecosystem to develop this kind of “Agentic” features into existing applications it’s not as advanced and rich as it is in other technologies.
In this article I jot down why I decided to release this internal tool as an open source project and what is the market opportunity for me and the PHP community.
I hope it could be the right tool for PHP developers to build AI agents into their products with stronger foundations.
Feel free to write your feedback, share this tool with other PHP friends, or contact me for further information.
https://redd.it/1j4x8ja
@r_php
Inspector
Introducing Neuron AI - Create full featured AI Agents in PHP
Create AI Agents in PHP with Neuron AI framework. It simplify every stage of the AI application development life cycle for PHP developers.
Has anyone tried this (curious)
So I'm curious about something that I haven't tried myself yet, time permitting I will soon. Has anyone ever attempted sending the browser's DOM to their PHP server, manipulating the DOM with PHP and then sent it back to the browser replacing the original DOM to render stuff. I don't mind if it's a bad idea I'm just brain farting. Please tell me your experience.
https://redd.it/1j4zehs
@r_php
So I'm curious about something that I haven't tried myself yet, time permitting I will soon. Has anyone ever attempted sending the browser's DOM to their PHP server, manipulating the DOM with PHP and then sent it back to the browser replacing the original DOM to render stuff. I don't mind if it's a bad idea I'm just brain farting. Please tell me your experience.
https://redd.it/1j4zehs
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Laravel and Massive Historical Data: Scaling Strategies
Hey guys
I'm developing a project involving real-time monitoring of offshore oil wells. Downhole sensors generate pressure and temperature data every 30 seconds, resulting in \~100k daily records. So far, with SQLite and 2M records, charts load smoothly, but when simulating larger scales (e.g., 50M), slowness becomes noticeable, even for short time ranges.
Reservoir engineers rely on historical data, sometimes spanning years, to compare with current trends and make decisions. My goal is to optimize performance without locking away older data. My initial idea is to archive older records into secondary tables, but I'm curious how you guys deal with old data that might be required alongside current data?
I've used SQLite for testing, but production will use PostgreSQL.
(PS: No magic bullets needed—let's brainstorm how Laravel can thrive in exponential data growth)
https://preview.redd.it/uzgs39fll4ne1.png?width=1349&format=png&auto=webp&s=7e565cdfb826656959b0ff7a50a7cbeb846f0243
https://preview.redd.it/1xbd238hk4ne1.png?width=580&format=png&auto=webp&s=2d6c9dedefe6190813b28f75f7970a5556514734
https://redd.it/1j54qum
@r_php
Hey guys
I'm developing a project involving real-time monitoring of offshore oil wells. Downhole sensors generate pressure and temperature data every 30 seconds, resulting in \~100k daily records. So far, with SQLite and 2M records, charts load smoothly, but when simulating larger scales (e.g., 50M), slowness becomes noticeable, even for short time ranges.
Reservoir engineers rely on historical data, sometimes spanning years, to compare with current trends and make decisions. My goal is to optimize performance without locking away older data. My initial idea is to archive older records into secondary tables, but I'm curious how you guys deal with old data that might be required alongside current data?
I've used SQLite for testing, but production will use PostgreSQL.
(PS: No magic bullets needed—let's brainstorm how Laravel can thrive in exponential data growth)
https://preview.redd.it/uzgs39fll4ne1.png?width=1349&format=png&auto=webp&s=7e565cdfb826656959b0ff7a50a7cbeb846f0243
https://preview.redd.it/1xbd238hk4ne1.png?width=580&format=png&auto=webp&s=2d6c9dedefe6190813b28f75f7970a5556514734
https://redd.it/1j54qum
@r_php