PHP Reddit – Telegram
PHP Reddit
34 subscribers
289 photos
37 videos
24.8K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Live Collection Type (Embedded CollectionType Form) & VICH Upload Files? #3126
https://redd.it/1o1b300
@r_php
Is Envoyer superfluous after the new Forge update?

I've been using Forge and Envoyer together for a while now and the setup has been great but just deployed a new site with Forge and notice it's doing the job of Envoyer now…? Am I missing something or can I retire Envoyer now and just deploy through Forge only?

https://redd.it/1o1n9nd
@r_php
Support Policy for First-Party Packages & Products

Laravel has a Support Policy for the framework itself, but what about the First-Party Packages and products produced by the Laravel Team?

For clarity, I'm talking about Forge, Vapor, Laravel UI, Nova, Cashier, Volt, etc.

Given the climate in recent years, it feels like these have the potential of getting dropped at a moment's notice, or packages fall into obscurity of not quite abandoned, but effectively no longer being upgraded.

I'm honestly feeling like anything beyond the framework itself isn't safe to rely on. Is anyone else feeling this way, or am I overreacting?

https://redd.it/1o1sbi1
@r_php
PagibleAI CMS: The AI-Powered CMS for Editors and Developers

We're excited to introduce [PagibleAI CMS](https://pagible.com/) – a new content management system designed to make content creation and development a breeze, blending the best of AI with robust, modern architecture. Think WordPress ease-of-use meets Contentful's structued power, but with built-in AI!

**👨‍💻 For Developers:**

* **Built on PHP & Laravel:** Leverages the power and extensibility of PHP and Laravel for a robust and scalable backend.
* **JSON REST & GraphQL APIs:** Built as API-first for fast content delivery and flexible administration. Use the VueJS SPA or integrate with any frontend.
* **Open Source Freedom:** Available under LGPL and MIT license – customize, extend, and integrate into your projects seamlessly.

**👩‍💻 For Editors:**

* **AI-Powered Content Generation:** Generate drafts, refine text, and optimize for SEO effortlessly.
* **Seamless AI Image Creation:** Get stunning, on-brand visuals created directly in the CMS.
* **Multi-Language Translation:** Translate content into 35+ languages with AI for global reach.
* **Intuitive WYSIWYG & Drag-and-Drop:** See what you get and easily manage all your content.

**☁️ Cloud-Native & Scalable:**
From personal blogs to enterprise solutions, PagibleAI scales infinitely. Expect exceptional performance and reliability, adapting to any project size.

We believe this is the future of content management – where AI enhances creativity and developers have powerful, flexible tools:

[**https://pagible.com/**](https://pagible.com/)

https://redd.it/1o1zjdn
@r_php
Are you using Laravel Nightwatch or other observability tool?

I always felt Laravel deserves a better monitoring platform to cater for its unique needs. So i started building something myself. Later Nightwatch was announced. I was surprised with how similar it felt to mine and yet continued assuming there is enough market for tools tailored for Laravel.

Since the launch of Laritor, I am struggling to get any traction despite being cheaper and offering more features than nightwatch.

I also don’t see nightwatch being discussed much here or on x. So it makes me wonder, are Laravel developers not much interested in observability? or you already using a different product?

What stopping you from using observability tools?

https://redd.it/1o252wl
@r_php
Doctrine Translatable (Gedmo) - Does it not do that?

Hi - I dont know if here is the right place to ask that but I figured a lot of symfony devs will likely use doctrine and some of you have experience with i18n in database.

I found the gedmo doctrine extension translatable and tried to build a minimal working example in my symfony app. Loading an entity via the repository is working fine but loading it via its relationships does not return the translated entity but only the default locale.

This is the example Controller I try to use, any comments appreciated - thanks:

<?php


namespace App\Controller;


use App\Entity\Context;
use App\Entity\UserContext;
use Doctrine\ORM\EntityManagerInterface;
use Gedmo\Translatable\Entity\Translation;
use Gedmo\Translatable\TranslatableListener;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use App\Entity\User;


class TranslatableTestController extends AbstractController
{
#Route('/test/translatable/{lang}', name: 'test_translatable')
public function index(EntityManagerInterface $em, TranslatableListener $translatableListener, String $lang): Response
{
// set the current lang based on the request
$translatableListener->setTranslatableLocale($lang);



// get the current user from security bundle
$user = $this->getUser();
if (!$user instanceof User) {
throw new AccessDeniedException('Access denied: User must be authenticated.');
}


$contexts = $user->getUserContexts()->map(fn($userContext) => $userContext->getContext())->toArray();


// get last context only for debugging purposes
$context = end($contexts);


return new Response(sprintf(
"<h2>Current Translation</h2>
<p> %s</p>
",
$context->getName(), // only gives default locale no matter the locale parameter
));
}
}

https://redd.it/1o2aeyy
@r_php
Profiling Symfony application with Blackfire

Dear folks,

I am looking for sources which provide advice for how to start profiling my Symfony application with Blackfire. I already created some profiles of requests of my application. But I am having a hard time to get insights and understand whats going on.

I appreciate for all kinds of guidance and advice.

https://redd.it/1o2v83p
@r_php
Signed documents PHP

Hello everyone, I hope you're all well.



I currently have a PHP system with MySQL that generates PDFs, which must be signed by the parties to indicate their agreement with the information generated. My question is that currently the document doesn't have a digital signature; it's only printed, signed on the outside, uploaded to the system, and a backup is saved.



What do you recommend for getting a digital signature? Is there a library that can be connected to it so it takes the document and the meeting participants' emails to send the document to the parties. They can generate a simple electronic signature, save the signature information, and once everyone has signed it, save it to the platform as an automatic backup? I hope this helps. Best regards.

https://redd.it/1o319bz
@r_php
Do you use the PHP manual CHM downloads? Why?

Greetings.

TLDR: Do you use (or have you previously used) the CHM manual downloads? If so, why do you prefer them over other downloadable formats (eg. single page or multi-page HTML)?

(I'll note here that currently all downloadable versions are unavailable - this is being looked into by actual PHP core devs who have the required access)

Context:

I've been investigating some issues with the downloadable versions of the PHP manual. In particular the CHM versions are currently manually built.

Additionally the official tools to build CHM files - Microsoft's HTMLHelp Workshop - are no longer available for download from MS and can't be installed on Windows 11 (the installer errors saying a newer version is already installed). These issues make building the CHM files increasingly difficult.

(I also briefly tried freepascal's chmcmd, but this fails to build a working CHM file)

For those who prefer the CHM files, I'd like to understand why so I can work out if there's other alternatives that could be implemented.

https://redd.it/1o3s2wh
@r_php
How can I reskill in laravel

Hello All,
I know this is a php based subreddit. But I would like to reskill in laravel because it has been a year since I properly worked in laravel and I feel disconnected to the laravel framework. So I'm open for some course suggestion that can be helpful for me to be reskilled again in laravel.

About me: I'm a php full stack dev with 4 years of exp.

https://redd.it/1o45wny
@r_php
Convert your Notion pages into Markdown

Hey, guys! Just released a new package called md-notion 🙌

Pretty much feature-complete tool that can read your page, nested pages and databases, even database items and all block types are supported

https://github.com/RedberryProducts/md-notion

My primary goal was to use notion for context for my LLM integrations with LarAgent, but you may find a better use cases too 👍

Please support by starring a repo 🙏

Would love to hear your feedback 💪

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