Symfony Dom-crawler not found in laravel 9
So i have this url $url = "localhost:8000/vehicles" that i want ot fetch through a cron job but the page returns html so i wanna use symfony dom crawler to get all the vehicles instead of regex At the top…
So i have this url $url = "localhost:8000/vehicles" that i want ot fetch through a cron job but the page returns html so i wanna use symfony dom crawler to get all the vehicles instead of regex At the top…
Did the following to create a new Symfony 6 project: cd /var/www/html composer create-project symfony/website-skeleton <project> cd <project> composer req --dev symfony/profiler-pack composer req symfony/apache-pack composer req maker doctrine twig so far nothing special. Then php bin/console make:controller to create…
I installed PostHog in my PHP codebase, and trying to use it by following the tutorial in this link (https://posthog.com/docs/integrate/server/php). I am attempting to call PostHog::init function as a following: PostHog::init($apikey, array('host' => $baseUrl, "debug" => true) ); But I…
Symfony is throwing error when I try to send email. Apparently there is ssl certificate verification failure. The project is running on linux nginx server. The .env file has following configuration. MAILER_URL=smtp://user:[email protected]??encryption=ssl&auth_mode=login Error log app.ERROR: Could not send mail: Failed…
when I wanted to upgrade symfony from 6.1 to 6.2, I saw this message: Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead. I want to know how to do it because I deleted the package and…
We're looking for a new way to create multi language email templates. We got the idea to use inky in twig to create clean email HTML and render translations. The problem is that we have Sendgrid (handlebars) that renders variables…
My supplier entity has enum property notifyType. Any idea how translate the enum this way? {{ supplier.notifyType|trans }} Unfortunately, use __toString method in Enum is not possible. // error - Enum may not include __toString public function __toString(): string {…
Good mornings all, I make a POST request with the Type field (tinyint) in my unit tests. I give it the value FALSE. When I check in the database, the Type field is 1 so TRUE. I don't know how…
I'm not familiar with PHPUnit and just want to execute a simple method that return a DateTimeImmutable and compare it with another DateTimeImmutable. public function testGetLunchTimesBeginHour() { $minLunchTime = DateTimeImmutable::createFromFormat('H:i', self::MIN_BEGIN_LUNCH); $maxLunchTime = DateTimeImmutable::createFromFormat('H:i', self::MAX_END_LUNCH); foreach($this->daysOfAppointments as $dayOfAppointments){ $appointments =…
I'm here because I can't find a solution to my problem. I have a form in Symfony 6 and one of the value is id_client and reffer to another entity, Client (relation ManyToOne). I tested few methods to make the…