HELP ME I am stuck in the email sending system of WooCommerce WordPress
My functions.php:
theme-child structure
The issue I'm facing is that when I call
And when I switched the order of these two lines, the admin email was no longer sent to the admin:
My code:
file class-wc-email-admin-da-cap-nhat.php
https://textdoc.co/NJPtjVHWwc1RCoyX
file template admin-updated-status.php
https://textdoc.co/WBfPAaELgC9JKGuh
file class-wc-email-customer-da-cap-nhat.php
https://textdoc.co/tEYw4TpK9HSzZ7Gy
file template customer-updated-status.php
https://textdoc.co/KH04c6RbTdB2IMre
Link Image:
email for admin: https://postimg.cc/QH6X4KCN
email for customer: https://postimg.cc/06SPytfr
https://redd.it/1kaj41i
@r_php
My functions.php:
add_filter('woocommerce_email_classes', 'add_custom_order_status_emails');function add_custom_order_status_emails($emails) {$emails['WC_Email_Customer_Doi_Xac_Nhan_Order'] = include get_stylesheet_directory() . '/woocommerce/emails/class-wc-email-customer-doi-xac-nhan-order.php';$email_admin = include get_stylesheet_directory() . '/woocommerce/emails/class-wc-email-admin-da-cap-nhat.php';$email_customer = include get_stylesheet_directory() . '/woocommerce/emails/class-wc-email-customer-da-cap-nhat.php';$emails['WC_Email_Admin_Updated'] = $email_admin;$emails['WC_Email_Customer_Updated'] = $email_customer;return $emails;}add_action('woocommerce_order_status_changed', 'trigger_custom_order_email', 10, 4);function trigger_custom_order_email($order_id, $old_status, $new_status, $order) {if ($new_status === DOI_XAC_NHAN) { WC()->mailer()->emails['WC_Email_Customer_Doi_Xac_Nhan_Order']->trigger($order_id);}if ($new_status === DA_CAP_NHAT) {$email_admin = WC()->mailer()->emails['WC_Email_Admin_Updated'];$email_customer = WC()->mailer()->emails['WC_Email_Customer_Updated'];}}theme-child structure
/woocommerce/emails- admin-new-order.php- admin-updated-status.php- class-wc-email-admin-da-cap-nhat.php- class-wc-email-customer-da-cap-nhat.php- class-wc-email-customer-doi-xac-nhan-order.php- customer-awaiting-confirmation.php- customer-updated-status.php/plain The issue I'm facing is that when I call
trigger() to send emails, the second email gets sent but it doesn't have any CSS. I already checked under WooCommerce → Settings → Emails → Template, and my custom email templates all display the correct layout. I've asked ChatGPT and Cursor, but I still haven't been able to fix it.And when I switched the order of these two lines, the admin email was no longer sent to the admin:
if ($new_status === DA_CAP_NHAT) {$email_customer = WC()->mailer()->emails['WC_Email_Customer_Updated'];$email_admin = WC()->mailer()->emails['WC_Email_Admin_Updated'];}My code:
file class-wc-email-admin-da-cap-nhat.php
https://textdoc.co/NJPtjVHWwc1RCoyX
file template admin-updated-status.php
https://textdoc.co/WBfPAaELgC9JKGuh
file class-wc-email-customer-da-cap-nhat.php
https://textdoc.co/tEYw4TpK9HSzZ7Gy
file template customer-updated-status.php
https://textdoc.co/KH04c6RbTdB2IMre
Link Image:
email for admin: https://postimg.cc/QH6X4KCN
email for customer: https://postimg.cc/06SPytfr
https://redd.it/1kaj41i
@r_php
textdoc.co
Online Text Editor - Create, Edit, Share and Save Text Files
A secure web app that allows you to create, edit, share and save text files to your device or to Google Drive as an editable Doc
New in Symfony 7.3: Slug and Twig Constraints
https://symfony.com/blog/new-in-symfony-7-3-slug-and-twig-constraints?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kak7i1
@r_php
https://symfony.com/blog/new-in-symfony-7-3-slug-and-twig-constraints?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kak7i1
@r_php
Symfony
New in Symfony 7.3: Slug and Twig Constraints (Symfony Blog)
Symfony 7.3 introduces two new constraints to validate slugs and Twig templates.
This media is not supported in your browser
VIEW IN TELEGRAM
Solved my "one more field" client nightmare in Filament without migrations - looking for feedback
https://redd.it/1kalhrh
@r_php
https://redd.it/1kalhrh
@r_php
Create AI Agents In PHP Powered By Google Gemini LLMs
https://inspector.dev/create-ai-agents-in-php-powered-by-google-gemini-llms/
https://redd.it/1kaosu4
@r_php
https://inspector.dev/create-ai-agents-in-php-powered-by-google-gemini-llms/
https://redd.it/1kaosu4
@r_php
Inspector
Create AI Agents In PHP Powered By Google Gemini LLMs
Create powerful AI agents in PHP with Neuron's new Google Gemini integration—join the PHP framework that's changing AI Agents development.
SymfonyOnline June 2025: Automate Everything with Your Personal Army of Robots
https://symfony.com/blog/symfonyonline-june-2025-automate-everything-with-your-personal-army-of-robots?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kaon7h
@r_php
https://symfony.com/blog/symfonyonline-june-2025-automate-everything-with-your-personal-army-of-robots?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kaon7h
@r_php
Symfony
SymfonyOnline June 2025: Automate Everything with Your Personal Army of Robots (Symfony Blog)
Robots never sleep... and they’re here to help!🤖 Join Alexander M. Turek at #SymfonyOnline June 2025 for 🎤 CI in PHP Projects: Automate Everything with Your Personal Army of Robots
Why there is programmers hate PHP
Hello developers , I have a question , why there is programmers hate PHP and web development .
https://redd.it/1kasvfn
@r_php
Hello developers , I have a question , why there is programmers hate PHP and web development .
https://redd.it/1kasvfn
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
What headaches/limitations have you found with Filament?
I just started learning Filament via Laracasts and wonder how I've lived without it. It's one of the biggest game changers I've found in a long time, if not ever. I'm still working through the video series, and am seeing how I can re-write an existing project using it, and see how powerful it is.
What kinds of limitations and issues have you personally come across?
https://redd.it/1kato5i
@r_php
I just started learning Filament via Laracasts and wonder how I've lived without it. It's one of the biggest game changers I've found in a long time, if not ever. I'm still working through the video series, and am seeing how I can re-write an existing project using it, and see how powerful it is.
What kinds of limitations and issues have you personally come across?
https://redd.it/1kato5i
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
UX-Autocomplete querybuilder using documentation example not working.
I could use some help checking my understanding of the ux-autocomplete query\builder documentation, because I don't see how their example of passing extra_options to a query builder will work. I'm using Symfony 7.2 , php 8.4.6, Fedora 42
Following the example here: https://symfony.com/bundles/ux-autocomplete/current/index.html#passing-extra-options-to-the-ajax-powered-autocomplete
I turned my working function:
'querybuilder' => function (EntityRepository $er): QueryBuilder {
return $er->queryActivePeople(null);
},
Into this:
'querybuilder' => function (Options $options) {
return function (EntityRepository $er) use ($options) : QueryBuilder {
return $er->queryActivePeople($options'extra_options''extra_people');
};
},
Which results in this error:
Uncaught PHP Exception TypeError: "App\\Form\\PersonAutocompleteField::{closure:App\\Form\\PersonAutocompleteField::configureOptions():28}(): Argument #1 ($options) must be of type App\\Form\\Options, App\\Repository\\PeopleRepository given,
Which is pretty much what I expected from changing the type of the first closure parameter. Can someone point me to what I am missing, or are the docs just wrong ?
https://redd.it/1kawvoi
@r_php
I could use some help checking my understanding of the ux-autocomplete query\builder documentation, because I don't see how their example of passing extra_options to a query builder will work. I'm using Symfony 7.2 , php 8.4.6, Fedora 42
Following the example here: https://symfony.com/bundles/ux-autocomplete/current/index.html#passing-extra-options-to-the-ajax-powered-autocomplete
I turned my working function:
'querybuilder' => function (EntityRepository $er): QueryBuilder {
return $er->queryActivePeople(null);
},
Into this:
'querybuilder' => function (Options $options) {
return function (EntityRepository $er) use ($options) : QueryBuilder {
return $er->queryActivePeople($options'extra_options''extra_people');
};
},
Which results in this error:
Uncaught PHP Exception TypeError: "App\\Form\\PersonAutocompleteField::{closure:App\\Form\\PersonAutocompleteField::configureOptions():28}(): Argument #1 ($options) must be of type App\\Form\\Options, App\\Repository\\PeopleRepository given,
Which is pretty much what I expected from changing the type of the first closure parameter. Can someone point me to what I am missing, or are the docs just wrong ?
https://redd.it/1kawvoi
@r_php
Symfony
Symfony UX Autocomplete Documentation
Official documentation of Symfony UX Autocomplete, a bundle for Symfony applications
Build Laravel Login & Registration from Scratch
https://youtu.be/QtKZxNNPT_U
https://redd.it/1kawhg4
@r_php
https://youtu.be/QtKZxNNPT_U
https://redd.it/1kawhg4
@r_php
YouTube
Build Laravel Login & Registration from Scratch
Learn how to implement a complete login and registration system in Laravel using only Blade templates - no starter kits required! Perfect for developers who want full control over their authentication implementation.
We'll cover setting up a fresh Laravel…
We'll cover setting up a fresh Laravel…
Looking for a Laravel-Based Shopify Alternative with Multi-Tenancy
Hey folks,
I’m currently exploring self-hosted, Laravel-based e-commerce platforms that are close in functionality to Shopify — especially with support for multi-tenancy (i.e., letting users create their own store under subdomains or custom domains).
I’ve already looked into a few:
• Bagisto – Nice UI, built on Laravel + Vue, seems solid but not sure about multi-tenancy support out of the box.
• Aimeos – Very powerful, but feels a bit enterprise-heavy.
• Lunar – Looks promising and modern, but seems a bit early for production with multi-tenant setups.
• Vanilo – Great Laravel-native option, but still seems single-tenant by default.
Ideally, I’m looking for something that’s:
• Laravel-based
• Multi-tenant (users can manage their own storefronts)
• Has Stripe or similar integration
• Actively maintained
• Open-source (or at least self-hostable)
Has anyone built or seen something like this? Would love recommendations or even success/failure stories if you’ve attempted something similar.
Thanks in advance!
https://redd.it/1kazvjy
@r_php
Hey folks,
I’m currently exploring self-hosted, Laravel-based e-commerce platforms that are close in functionality to Shopify — especially with support for multi-tenancy (i.e., letting users create their own store under subdomains or custom domains).
I’ve already looked into a few:
• Bagisto – Nice UI, built on Laravel + Vue, seems solid but not sure about multi-tenancy support out of the box.
• Aimeos – Very powerful, but feels a bit enterprise-heavy.
• Lunar – Looks promising and modern, but seems a bit early for production with multi-tenant setups.
• Vanilo – Great Laravel-native option, but still seems single-tenant by default.
Ideally, I’m looking for something that’s:
• Laravel-based
• Multi-tenant (users can manage their own storefronts)
• Has Stripe or similar integration
• Actively maintained
• Open-source (or at least self-hostable)
Has anyone built or seen something like this? Would love recommendations or even success/failure stories if you’ve attempted something similar.
Thanks in advance!
https://redd.it/1kazvjy
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Serversideup container won't start—need help!
I'm trying to run the serversideup/php stack for 8.4.6-fpm-nginx, but when the stack starts up on 'Localhost', I get a 'File not found' error
docker-compose.yml
services:
php:
image: serversideup/php:8.4.6-fpm-nginx
ports:
- "80:8080"
environment:
- SSL_MODE=off
volumes:
- ./app:/var/www/html
nginx/default.conf
server {
listen 80;
index index.php index.html;
server_name localhost;
root /var/www/html;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
# client_max_body_size 100M; # Se quiser enviar arquivos grandes (upload no Laravel)
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_noscript_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
Container log
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0" "-"
[172.18.0.1](http://172.18.0.1) \- - \[29/Apr/2025:21:41:13 +0000\] "GET / HTTP/1.1" 404 47 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0" "-"
https://redd.it/1kazzna
@r_php
I'm trying to run the serversideup/php stack for 8.4.6-fpm-nginx, but when the stack starts up on 'Localhost', I get a 'File not found' error
docker-compose.yml
services:
php:
image: serversideup/php:8.4.6-fpm-nginx
ports:
- "80:8080"
environment:
- SSL_MODE=off
volumes:
- ./app:/var/www/html
nginx/default.conf
server {
listen 80;
index index.php index.html;
server_name localhost;
root /var/www/html;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
# client_max_body_size 100M; # Se quiser enviar arquivos grandes (upload no Laravel)
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_noscript_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
Container log
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0" "-"
[172.18.0.1](http://172.18.0.1) \- - \[29/Apr/2025:21:41:13 +0000\] "GET / HTTP/1.1" 404 47 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0" "-"
https://redd.it/1kazzna
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Well now what... PHP expert seeing jobs close within 3 hours
Hopefully posting this screenshot of the issue in question is allowed: PHP jobs stop taking applications after a few hours.
https://imgur.com/a/wsmW20j
Anyway, PHP and its surrounding tech has been my expertise for a decade, and my career seems to have gone dead overnight.
I'm trying to figure out how to make money but it all feels like starting over because I don't have an established online presence. I didn't think I'd need one with how many calls and emails I got and how quickly I got jobs over the years, and now I'm getting mostly a trickle of rejections. I guess I got too comfortable, but I have several months to try to figure something out.
I'm seeing all kinds of things about making money with AI or Shopify or YouTube etc, but it's basically all new to me. I'm currently trying to ramp up a website helping small businesses and entrepreneurs with my expertise (also includes project management and work with surrounding business things like SEO and marketing), but the people I'm talking to (including my business partner) are often making effectively random/brash decisions and statements where I'm having to battle through contradictions and miscommunications and hurt feelings blah blah blah where the slightest misstep is a landmine when I didn't even know there was a minefield.
Anyway, any advice would be helpful, probably, I'm sure.
https://redd.it/1kb4v79
@r_php
Hopefully posting this screenshot of the issue in question is allowed: PHP jobs stop taking applications after a few hours.
https://imgur.com/a/wsmW20j
Anyway, PHP and its surrounding tech has been my expertise for a decade, and my career seems to have gone dead overnight.
I'm trying to figure out how to make money but it all feels like starting over because I don't have an established online presence. I didn't think I'd need one with how many calls and emails I got and how quickly I got jobs over the years, and now I'm getting mostly a trickle of rejections. I guess I got too comfortable, but I have several months to try to figure something out.
I'm seeing all kinds of things about making money with AI or Shopify or YouTube etc, but it's basically all new to me. I'm currently trying to ramp up a website helping small businesses and entrepreneurs with my expertise (also includes project management and work with surrounding business things like SEO and marketing), but the people I'm talking to (including my business partner) are often making effectively random/brash decisions and statements where I'm having to battle through contradictions and miscommunications and hurt feelings blah blah blah where the slightest misstep is a landmine when I didn't even know there was a minefield.
Anyway, any advice would be helpful, probably, I'm sure.
https://redd.it/1kb4v79
@r_php
Imgur
Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.
Sufficiently Advanced Technology - Laravel Worldwide Meetup, April 2025
https://www.youtube.com/live/j9dqD9SSiZw
https://redd.it/1kbaf6e
@r_php
https://www.youtube.com/live/j9dqD9SSiZw
https://redd.it/1kbaf6e
@r_php
YouTube
Laravel Worldwide Meetup - April 2025
This month we are joined by Sam Levy, who will take us on a journey through Laravel's source and a closer look at some of the "magic" it contains - to get a better understanding of how it all works!
Launched and built something with Laravel (what a great ecosystem)
So a little self promotion but equally I want to say thanks to some of the community!!
So I am a long time PHP / Laravel developer and have always enjoyed learning new stuff.
At first I wanted to see how Laravel would/could work with an LLM and after doing some reading I ended up learning about OpenAPI 3.0 Schema and Multi-Modal RAG. I hit a few obstacles with the amount of data being sent to the LLMs.
In the last few months I have built on top of Gemini, Claude and OpenAI. All have their perks and quirks.
The Prism team were and still are amazing, the Filament, Laravel12 and LiveWire are just fantastic to build on!
Finally, Laravel cloud is still lacking some features but I think it is on the right tracks.
So what did I build... Mind Jam helps brands, studios and creators understand their YouTube communities.
MindJam analyses millions of YouTube comments to instantly reveal the unfiltered voice of your audience – their true sentiment, emerging themes, and the topics they really care about.
Here is a sample analysis - https://mind-jam.co.uk/analysis/HPMh3AO4Gm0
If you want a demo, there is a link on the website.
Or just where possible be nice in the comments.
https://redd.it/1kbbphb
@r_php
So a little self promotion but equally I want to say thanks to some of the community!!
So I am a long time PHP / Laravel developer and have always enjoyed learning new stuff.
At first I wanted to see how Laravel would/could work with an LLM and after doing some reading I ended up learning about OpenAPI 3.0 Schema and Multi-Modal RAG. I hit a few obstacles with the amount of data being sent to the LLMs.
In the last few months I have built on top of Gemini, Claude and OpenAI. All have their perks and quirks.
The Prism team were and still are amazing, the Filament, Laravel12 and LiveWire are just fantastic to build on!
Finally, Laravel cloud is still lacking some features but I think it is on the right tracks.
So what did I build... Mind Jam helps brands, studios and creators understand their YouTube communities.
MindJam analyses millions of YouTube comments to instantly reveal the unfiltered voice of your audience – their true sentiment, emerging themes, and the topics they really care about.
Here is a sample analysis - https://mind-jam.co.uk/analysis/HPMh3AO4Gm0
If you want a demo, there is a link on the website.
Or just where possible be nice in the comments.
https://redd.it/1kbbphb
@r_php
MindJam
The Accountant 2 | Official Trailer 2 | MindJam
The Real Conversation is in the Comments. | MindJam
New in Symfony 7.3: Arbitrary User Permission Checks
https://symfony.com/blog/new-in-symfony-7-3-arbitrary-user-permission-checks?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kbbvyj
@r_php
https://symfony.com/blog/new-in-symfony-7-3-arbitrary-user-permission-checks?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kbbvyj
@r_php
Symfony
New in Symfony 7.3: Arbitrary User Permission Checks (Symfony Blog)
In Symfony 7.3, you can now check permissions for any user with the new isGrantedForUser() method.
Migrating a 75GB MySQL database to RDS with just 3 minutes of downtime (step-by-step guide)
https://youtu.be/UkbTRy6voO8
https://redd.it/1kbe9u8
@r_php
https://youtu.be/UkbTRy6voO8
https://redd.it/1kbe9u8
@r_php
YouTube
Migrating a 75GB MySQL database to RDS with just 3 minutes of downtime (step-by-step guide)
#laravel #mysql #webdev #aws
We migrated our 75GB MySQL database from a self-hosted VPS to Amazon RDS with just 3 minutes of downtime. In this video, I walk you through the entire process, from setup to production switch.
Article:
https://www.sabatino.dev/migrating…
We migrated our 75GB MySQL database from a self-hosted VPS to Amazon RDS with just 3 minutes of downtime. In this video, I walk you through the entire process, from setup to production switch.
Article:
https://www.sabatino.dev/migrating…
SymfonyOnline June 2025: Where Have the Women of Tech History Gone?
https://symfony.com/blog/symfonyonline-june-2025-where-have-the-women-of-tech-history-gone?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kbfvdn
@r_php
https://symfony.com/blog/symfonyonline-june-2025-where-have-the-women-of-tech-history-gone?utm_source=Symfony%20Blog%20Feed&utm_medium=feed
https://redd.it/1kbfvdn
@r_php
Symfony
SymfonyOnline June 2025: Where Have the Women of Tech History Gone? (Symfony Blog)
Join Laura Durieux at SymfonyOnline June 2025 to rediscover the women who helped shape the history of tech in: 🎤 Where Have the Women of Tech History Gone?
Visibility blocks?
Does anyone know if there's a way to do or if there's any intention on adding visibility blocks, ala Pascal? I'm thinking something along the lines of:
public function construct(
public {
string $id = '',
DateTime $dateCreated = new DateTime(),
Cluster $suggestions = new Cluster(Suggested::class),
?string $firstName = NULL,
?string $lastName = NULL,
}
) {
if (empty($id)) {
$this->id = Uuid::uuid7();
}
}
If not, is this something other people would find nice? Obviously you'd want to make it work in other contexts, not just constructor promotion.
https://redd.it/1kbhte5
@r_php
Does anyone know if there's a way to do or if there's any intention on adding visibility blocks, ala Pascal? I'm thinking something along the lines of:
public function construct(
public {
string $id = '',
DateTime $dateCreated = new DateTime(),
Cluster $suggestions = new Cluster(Suggested::class),
?string $firstName = NULL,
?string $lastName = NULL,
}
) {
if (empty($id)) {
$this->id = Uuid::uuid7();
}
}
If not, is this something other people would find nice? Obviously you'd want to make it work in other contexts, not just constructor promotion.
https://redd.it/1kbhte5
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Is the Internation PHP Conference still a thing ? Is it worth it for a WP dev ?
I work for a company that owns a big Wordpress website, my new manager is very excited with the idea of sending me around to in-site conferences, thing is I'm not used to this, so I'm just looking for worthwhile conferences to increase my knowledge and grow as a dev and at the same time enjoy this opportunity of my manager thinking that he needs to send me around that most likely won't last a long time...
I saw that before the IPC International PHP Conference was a thing, but while trying to look for references to see how worthwhile it was I could not find almost anything, so I come to you PHP folks to see if it is.
https://redd.it/1kbiw3w
@r_php
I work for a company that owns a big Wordpress website, my new manager is very excited with the idea of sending me around to in-site conferences, thing is I'm not used to this, so I'm just looking for worthwhile conferences to increase my knowledge and grow as a dev and at the same time enjoy this opportunity of my manager thinking that he needs to send me around that most likely won't last a long time...
I saw that before the IPC International PHP Conference was a thing, but while trying to look for references to see how worthwhile it was I could not find almost anything, so I come to you PHP folks to see if it is.
https://redd.it/1kbiw3w
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
How I can initialize the db from a Dump before db migration during local db setup for development?
In my work the migrations are generated like this:
```
php bin/console doctrine:migrations:diff
```
And then any generated SQL is run manually upon db instead of `doctrine:migrations:execute` or `doctrine:migrations:migrate`. That results each developer having its own db.
Also same thing happend upon deployment as well therefore I am practically I am without any relable way of setting up db or in case ot a db reset I may lose any changes upon db.
Therefore I want to introduce a db migration procedure upon development use a schema-onlt db dump from a staging/production release and start migrating onwards. Development db would be initialized first from the db dump and then we would generate manually each change as db migration noscript.
How I can use a Db dump as an initial migration in symfony?
https://redd.it/1kbih13
@r_php
In my work the migrations are generated like this:
```
php bin/console doctrine:migrations:diff
```
And then any generated SQL is run manually upon db instead of `doctrine:migrations:execute` or `doctrine:migrations:migrate`. That results each developer having its own db.
Also same thing happend upon deployment as well therefore I am practically I am without any relable way of setting up db or in case ot a db reset I may lose any changes upon db.
Therefore I want to introduce a db migration procedure upon development use a schema-onlt db dump from a staging/production release and start migrating onwards. Development db would be initialized first from the db dump and then we would generate manually each change as db migration noscript.
How I can use a Db dump as an initial migration in symfony?
https://redd.it/1kbih13
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Your favorite Laravel API tools for quick setup + docs?
Hey r/laravel!
I’m playing around with APIs in Laravel and testing out [API Platform](https://api-platform.com/). It feels powerful, but I’m curious—what have you used in real projects to get an API up and running fast and generate docs automatically?
I’m especially interested in:
* Packages that handle routes, controllers, and docs with minimal setup
* Tools that keep OpenAPI/Swagger or Postman exports in sync as your code evolves
* Any gotchas, tips, or simple noscripts that save you headaches
For a bit of background, I’m building [Relaticle](https://relaticle.com/) (an open-source CRM on Laravel 12 + Filament 3), so good API docs are crucial for us.
**Share your go-to tools or workflows below—I’d love to hear what’s working for you!**
*Looking forward to learning from your experiences!*
https://redd.it/1kbtiu2
@r_php
Hey r/laravel!
I’m playing around with APIs in Laravel and testing out [API Platform](https://api-platform.com/). It feels powerful, but I’m curious—what have you used in real projects to get an API up and running fast and generate docs automatically?
I’m especially interested in:
* Packages that handle routes, controllers, and docs with minimal setup
* Tools that keep OpenAPI/Swagger or Postman exports in sync as your code evolves
* Any gotchas, tips, or simple noscripts that save you headaches
For a bit of background, I’m building [Relaticle](https://relaticle.com/) (an open-source CRM on Laravel 12 + Filament 3), so good API docs are crucial for us.
**Share your go-to tools or workflows below—I’d love to hear what’s working for you!**
*Looking forward to learning from your experiences!*
https://redd.it/1kbtiu2
@r_php
API Platform
Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.