PHP Reddit – Telegram
PHP Reddit
34 subscribers
287 photos
36 videos
24.7K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
What would you like to see in a web framework?

Hi Peeps!

I'm not a PHP specialist myself but rather I build dev tools (open source). I am knee deep in building a next gen web framework (in Rust) with possible PHP bindings among other languages.

So, with this longish exposition out of the way, my question is - what are the requirements from your end, as developers for a framework ? What would you like to see, and what would you defintely not like to see? Any suggestions or recommendations?


https://redd.it/1ovufdu
@r_php
What are you doing to make your project or codebase more AI-friendly for coding agents?

Pretty much what the noscript says. I want to spend some time improving the codebase and processes we have so coding agents like Claude Code or Junie can write higher-quality code that adheres to styling specs and is well-tested.

I've not done much so far outside of using Laravel Boost and customising the template a bit.

I feel like there could be more, though. When using AI it still sometimes uses the wrong code style or writes pretty bad code.


I'm open to tips!

https://redd.it/1ovxvg0
@r_php
e-Invoicing and Peppol in Europe with PHP

PHP is used in a lot of commerce software, so I think this is a suitable topic to discuss in this subreddit.

Soon all companies need to send their invoices into the Peppol network. Who is already doing this? What is your experience?

Easiest way is to make use of a Peppol access point / provider which offers a REST API. What provider would you recommend?

Are there any good libraries to use?

I'm considering using Billit. They offer reasonable pricing for small quantities of invoices. They give a lot of information in a clear way on their website. They offer both a portal and an API.

An SDK exists for Billit, but it hasn't seen a commit since 3 years...

https://redd.it/1ow4f3g
@r_php
Staying relevant today as a PHP Developer

I have always been a big PHP fan and used it now for near 20 years now.

Being a PHP developer has always had a stigma, like somehow you aren’t a real developer and pretty much sneers from other developers like Java or Python.

This was never an issue for me as there was always plenty of good paying jobs so I didn’t let it bother me too much.

But now I am out of a job in the UK and there is a real lack of jobs in PHP, and the majority that are hiring are offering a poor salary compared to other languages. Which makes no sense, especially with the likes of Node.js which is just JavaScript.

Even now I build microservices on AWS using PHP and Bref, it works great and extremely fast and powerful.

Recruiters even hit me with the “oh PHP” and I can’t get a look in. These PHP jobs that are hiring don’t even respond to me or I get an auto rejection. My previous salary was 120k and now I’m getting turned down for jobs at 40-50k.

What are people’s thoughts? Unfortunately I think it is time to reinvent myself, maybe move to Go, Rust or Python?

https://redd.it/1owdz15
@r_php
Alternative book for Jon Duckett php and mysql book, that use postgresql instead.

Does anyone here know any alternative book?
mysql in my country are rarely (not rarely it most used on a older project, but all the job require senior level. )used in company, company mostly use postgresql specially the new company project.

https://redd.it/1ownhtu
@r_php
PHP Prisma: Integrate multi-media related LLMs

Hey r/PHP

Excited to introduce **PHP Prisma** – a new, light-weight PHP package designed to streamline interactions with multi-media related Large Language Models (LLMs) through a unified interface:

[**https://php-prisma.org**](https://php-prisma.org)

Integrating advanced image and multi-media AI capabilities into your PHP applications can be complex, dealing with different APIs and providers. PHP Prisma aims to solve this by offering a consistent way to tap into the power of various AI models.

# What can you do with PHP Prisma right now?

The first version of our image API is packed with features, making it easy to manipulate and generate images programmatically:

* **Background:** Replace image background with a background described by the prompt.
* **Describe:** Get AI-generated denoscriptions for image content.
* **Detext:** Remove text from images.
* **Erase:** Erase objects or parts of an image.
* **Imagine:** Generate entirely new images from prompts (text-to-image).
* **Inpaint:** Edit an image by inpainting an area defined by a mask according to a prompt.
* **Isolate:** Remove the image background
* **Relocate:** Place the foreground object on a new background.
* **Repaint:** Edit an image according to the prompt.
* **Studio:** Create studio photo from the object in the foreground of the image.
* **Uncrop:** Extend/outpaint the image.
* **Upscale:** Scale up the image.

# Current Supported AI Providers:

We're starting with integration for some of the leading AI providers:

* Clipdrop
* Gemini (Google)
* Ideogram (beta)
* Imagen (Google) (beta)
* OpenAI
* RemoveBG
* StabilityAI

This means you can switch between providers or leverage the unique strengths of their models, all through a single, clean PHP interface. The next versions will contain more AI providers as well as audio and video capabilities.

We're really excited about the potential of PHP Prisma to empower PHP developers to build more innovative and AI-powered applications. We welcome all feedback, contributions, and suggestions.

Give it a try and let us know what you think! :-)
[**https://php-prisma.org**](https://php-prisma.org)

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