PHP Reddit – Telegram
PHP Reddit
34 subscribers
292 photos
37 videos
24.9K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Let’s Talk API Design – Share Your Thoughts

Hey everyone,

I recently wrote an article about API design, and I wanted to hear your thoughts on the topic. While I'm using Symfony as my framework, the discussion is more about API design principles. Whether you use Symfony, Laravel or any other PHP framework, I think we all face similar challenges when building API.

I’d love to hear your experiences and how you approach these challenges in your own projects !

Check out the original thread Let's discuss API Design with Symfony: Share your thoughts :)

https://redd.it/1jp6zrj
@r_php
Rebuilding my 15-year-old PHP project with Symfony — looking for people who might want to help!

Hey everyone 👋

About 15 years ago, I built a complete RPG text-based engine in raw PHP — no framework, just pure old-school code. It took me around 3 years to get it to a stable and feature-rich state, and it was fully customizable so people could host their own games.

I’ve recently decided to bring the project back to life, this time using Symfony to make it clean, modular, and future-proof.

I’ve been coding on it in my free time, but honestly… I’m moving way too slowly. Between work, life, and learning the Symfony way of doing things properly, I feel like at this rate, it’ll take me another 10 years to get anywhere 😅

My plan:

Rewrite the whole engine with a clean MVC architecture

Make it easy to install, host, and extend

Use SQLite first (PostgreSQL later possible)

Turn it into a real open-source project that others can use, fork, or build their own games on

I’m still working actively on the codebase, but I’d love to find others who might be interested in this kind of project and want to contribute — whether with ideas, code, testing, or just hanging around to share feedback.

Here’s the GitHub repo if you're curious:

https://github.com/brindiwanko/Caranille

Thanks for reading! If this sounds like your kind of side project, feel free to drop a comment or join the repo. Let’s make it awesome together 🚀

Cheers,

Jérémy

https://redd.it/1jpjshl
@r_php
Headless CMS vs. Custom-Built CMS with PHP: Which One Enhances Skills and Career Growth?

Should I use a headless CMS or build my own CMS with PHP? Which option helps improve my skills the most and benefits my future career?

https://redd.it/1jpk1jv
@r_php
Laravel Wayfinder Released in Beta

Laravel Wayfinder bridges your Laravel backend and TypeScript frontend with zero friction. It automatically generates fully-typed, importable TypeScript functions for your controllers and routes — so you can call your Laravel endpoints directly in your client code just like any other function. No more hardcoding URLs, guessing route parameters, or syncing backend changes manually.

https://github.com/laravel/wayfinder

https://x.com/taylorotwell/status/1907511484961468698

https://redd.it/1jpyur7
@r_php
Will the 20% tariff be added for EU people on LC?

Will the price rise? Can anybody from the team comment?

https://redd.it/1jpzedu
@r_php
Laravel inside Wordpress?

Has the thought ever occurred to your mind If Laravel can be used as headless framework as a package inside the WordPress? If someone trys to do that, what issues could he come across?

https://redd.it/1jq7en8
@r_php
Will the EUs two-stage reciprocal tariff on US services effect the price of LC?

Sophie Primas told they will target US services in Europe in two stages. How will that effect the price of LC for European customers and world customers? Will the prices rise? Can anybody from the LC team respond, please?

Mainly this is concerning:

"But we are also going to attack services. For example, online services, which are not taxed today but could be," Primas said.

https://redd.it/1jqbv6v
@r_php
SMTP authentication problem with Symfony Mailer and Mailtrap

0

I am working on a Dockerized Symfony 7.2 project based on [this GitHub repository](https://github.com/dunglas/symfony-docker/tree/main) and I would like to install Mailtrap to send and test emails.

# What I did

1. I followed the documentation provided for installing `symfony/mailer`.
2. I created an account on Mailtrap and included the `MAILER_DSN` line provided by the platform in my `.env` and `.env.dev` files:



MAILER_DSN="smtp://19b3103b9f82b0:****4d7f@sandbox.smtp.mailtrap.io:2525"

1. I then added a very basic email sending code to test if it was working:



$email = (new Email())
->from('hello@example.com')
->to('you@example.com')
->subject('Test mailer')
->text('Lorem ipsum dolor sit amet, consectetur adipiscing elit.');

$mailer->send($email);

When I try to send the email, I receive the following error:

Failed to authenticate on SMTP server with username "19b3103b9f82b0" using the following authenticators: "CRAM-MD5", "LOGIN", "PLAIN". Authenticator "CRAM-MD5" returned "Expected response code "235" but got code "535", with message "535 5.7.0 Invalid credentials".". Authenticator "LOGIN" returned "Expected response code "334" but got empty code.". Authenticator "PLAIN" returned "Expected response code "235" but got empty code."

But in the Symfony toolbar, i can see that the email seems to have been send : 


https://preview.redd.it/bv5950m5rmse1.png?width=1228&format=png&auto=webp&s=d85d33c754ac2cda939f4d7fc25373259ca806bb

# What I have tried

1. I verified the Mailtrap credentials.
2. I tried with and without quotes around the `MAILER_DSN` value.
3. I tested with this simple PHP noscript using `symfony/mailer` outside of Symfony, but it gives me the same error.



<?php

use Symfony\Component\Mailer\Transport;
use Symfony\Component\Mailer\Mailer;
use Symfony\Component\Mime\Email;

require 'vendor/autoload.php';

$transport = Transport::fromDsn('smtp://19b3103b9f82b0:****4d7f@sandbox.smtp.mailtrap.io:2525');
$mailer = new Mailer($transport);

$email = (new Email())
->from('hello@example.com')
->to('you@example.com')
->subject('Test mailer')
->text('Lorem ipsum dolor sit amet, consectetur adipiscing elit.');

$mailer->send($email);
echo "Email sent successfully!";

?>

1. I checked my configuration in `config/packages/mailer.yaml`:



framework:
mailer:
dsn: '%env(MAILER_DSN)%'

1. I tried changing the port to 587, but it didn't solve the issue.
2. I tried using STARTTLS, but still got the same error.
3. I tested the SMTP connection with `telnet`:



telnet sandbox.smtp.mailtrap.io 2525

It returns:

Trying 18.215.44.90...
Connected to sandbox.smtp.mailtrap.io.
Escape character is '^]'.
220 smtp.mailtrap.io ESMTP ready
Connection closed by foreign host. (This line appears after about 1 minute)

# Question

How can I resolve this SMTP authentication problem with Mailtrap and Symfony Mailer? Is there something I missed or another configuration I should check?

https://redd.it/1jqjw2s
@r_php
Making my project more recent php conventional

Hey,

Had started this project few years back. It is a Laravel based project trying to make a simple invoicing, finance tracking and other featrures.

Wrote code to make it work at least, and after sharing the code in github and sharing got feedbacks, one of which was to make the php code more recent with type hinting, return types, and more. Still working on updating the code and there is still lots of part to update the code. However the php code I have updated quite a few bits.

Wanted to share it here again, as i said many parts still need updates, and many bugs to fix yet though keeping it a work in progress.

https://github.com/oitcode/samarium

Thanks.

https://redd.it/1jqlw9m
@r_php
Does Laravel Cloud support DEI?

I mean diversity, equity, and inclusion (DEI) program for treatment of people.

Where can I read about that?

https://redd.it/1jr5r1q
@r_php
Josh, some feedback for your videos

No youtube account to comment there, so commenting here. The video about Nightwatch was hard to watch and I was constantly skipping bits. Jess's audio sounds fine on the other hand. I think it was a combination of going overkill with your mic setup, it almost sounds like you are modifying your voice, too loud at times especially with the frequent "ok" style filler. Also the lighting setup is rather distracting. Main complaint: the focus should be on the guests if you are just facilitating.

https://redd.it/1jror4i
@r_php
How Can I Meet These Job Requirements and Advance to a Senior Fullstack Developer?

What should I learn to improve my skills (for example, to reach a senior level)? I'm planning to master PHP and Node.js, diving deep into technology (meaning I want to understand every concept in PHP and Node.js). I'm also learning Vue.js. My goal is to become a fullstack developer. I’ve noticed that the projects I worked on during university were mostly focused on business logic and primarily CRUD operations. I’ve also studied Docker—while I’m not proficient with it yet, I do understand the concepts well enough to work with it. The image below is a job requirement I found online. How can I meet these requirements?

"Required skills: 

 

1+ years of PHP development experience.
Hands-on experience working with PHP frameworks Laravel, Slim.
Familiar with SOLID principles, design patterns, Domain Driven Design.
Experience working with queue system (RabbitMQ, Kafka).
Experience working with cache system (Redis, Memcache).
Experience working with Nginx as proxy.
Experience working with container environment: docker, docker-compose, Kubernetes.
Experience working with Linux environment.
Experience with different databases. Relational (eg. PostgreSQL, MySQL) or NoSQL (eg. MongoDB, …).
Extensive REST API development experience.
Attention to detail and demonstrable design and UX sensibilities.
Excellent verbal and written communication skills, a team player with strong analytical, problem solving, debugging, and troubleshooting skills.

"


https://redd.it/1jrzri2
@r_php
Migrating from Vapor to Laravel Cloud

To what degree is this supported currently?

My team has a production app hosted on Vapor, and we are considering making this move.

Is there anything we should know?

Has anyone tried doing this yet?

Any thoughts would be greatly appreciated

Thank you

https://redd.it/1jsdg7v
@r_php
How would you tackle missing knowledge of Symfony?

Hi. I have some question. I'm developer with 15 years of professional experiences. Not only php, but also C#, unity, js ecosystem including react, some python, lua, etc. In php i worked with custom MVC frameworks, a little bit of cakephp and codeigniter. I even have opensource project (driver library) with almost half million downloads on packagist. But i never worked on project with Symfony. When I'm looking for new job, it feels like everything is about symfony and laravel. I went through manual of both and laravel feels like is relying too much on magic under the hood. So i would go with symfony. But without experiences i feel like i cannot get job in php. I don't have time to create own project and learn it. What would you do?

https://redd.it/1jsm5ud
@r_php