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
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
php-prisma.org
PHP Prisma - Multi-media PHP LLM API for AI providers
Light-weight PHP package for integrating multi-media related Large Language Models (LLMs) using a unified interface
Experience with Laravel Cloud after the pricing changes?
Just curious how reasonable (or not) the bills have been after they pricing changes a few months ago. Tried it on launch and it was pretty nuts, had to pivot off.
Just looking for practical real-world client usage, not hobby sites.
Thoughts?
https://redd.it/1owwl28
@r_php
Just curious how reasonable (or not) the bills have been after they pricing changes a few months ago. Tried it on launch and it was pretty nuts, had to pivot off.
Just looking for practical real-world client usage, not hobby sites.
Thoughts?
https://redd.it/1owwl28
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Spatie Testing Laravel vs Laracasts Pest courses - which is most comprehensive / better for juniors?
I’ve got a couple junior/mid devs I want to get up to speed with automated testing in Laravel (mainly Pest). I’m deciding between:
Spatie – Testing Laravel ($149 one-time)
Laracasts – Pest From Scratch / Pest Driven Laravel ($25/mo per user)
Has anyone taken either (or both)? Which would you recommend for juniors/mids who are new to testing? Or is there another video course you’d suggest instead?
Thanks!
https://redd.it/1owx6z8
@r_php
I’ve got a couple junior/mid devs I want to get up to speed with automated testing in Laravel (mainly Pest). I’m deciding between:
Spatie – Testing Laravel ($149 one-time)
Laracasts – Pest From Scratch / Pest Driven Laravel ($25/mo per user)
Has anyone taken either (or both)? Which would you recommend for juniors/mids who are new to testing? Or is there another video course you’d suggest instead?
Thanks!
https://redd.it/1owx6z8
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
First time Tried to build a RAG using Laravel, but..
So laravel has so many built-in packages which are I think very profound for a RAG, so i gave it a try, basic structure is done but I'm having some problems.
1- the system is gathering lot of info from the database based on query relevance, but when its presented to LLM(gemini) it's just ignoring most of the data and picking up a very little of that, and the answers are vague.
2- Ridiculous answers- Even for just a 'hey' its giving lengthy and irrelivent answers.
3- Timings- 15-20 seconds for a simple answer
I haven't used any vector database, and is using MySQL as of now, so it might be differential.. but this was just a curiosity thing so i thought maybe ask here first, what should i do to improve it as i wanna make it functional now.
here's what i am using:
"php": "\^8.2",
"google-gemini-php/laravel": "\^2.0",
"google/apiclient": "2.15",
"google/auth": "\^1.47",
"laravel/framework": "\^12.0",
"laravel/sanctum": "\^4.0",
"laravel/tinker": "\^2.10.1",
"maatwebsite/excel": "\^3.1",
"meilisearch/meilisearch-php": "\^1.16",
"phpoffice/phpspreadsheet": "\^1.30",
"smalot/pdfparser": "\^2.12",
"spatie/browsershot": "\^5.0",
"spatie/crawler": "\^8.4",
"symfony/dom-crawler": "\^7.3"
https://redd.it/1ox0gpl
@r_php
So laravel has so many built-in packages which are I think very profound for a RAG, so i gave it a try, basic structure is done but I'm having some problems.
1- the system is gathering lot of info from the database based on query relevance, but when its presented to LLM(gemini) it's just ignoring most of the data and picking up a very little of that, and the answers are vague.
2- Ridiculous answers- Even for just a 'hey' its giving lengthy and irrelivent answers.
3- Timings- 15-20 seconds for a simple answer
I haven't used any vector database, and is using MySQL as of now, so it might be differential.. but this was just a curiosity thing so i thought maybe ask here first, what should i do to improve it as i wanna make it functional now.
here's what i am using:
"php": "\^8.2",
"google-gemini-php/laravel": "\^2.0",
"google/apiclient": "2.15",
"google/auth": "\^1.47",
"laravel/framework": "\^12.0",
"laravel/sanctum": "\^4.0",
"laravel/tinker": "\^2.10.1",
"maatwebsite/excel": "\^3.1",
"meilisearch/meilisearch-php": "\^1.16",
"phpoffice/phpspreadsheet": "\^1.30",
"smalot/pdfparser": "\^2.12",
"spatie/browsershot": "\^5.0",
"spatie/crawler": "\^8.4",
"symfony/dom-crawler": "\^7.3"
https://redd.it/1ox0gpl
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Sentience Database, Querybuilder + database abstraction
Hey everyone,
Sentience is my personal framework project that i've kept evolving over the years, even using it in some startup projects. I decided to separate the database abstraction from the framework.
https://github.com/Sentience-Framework/database
Why did i create this package?
There are things that existing database abstraction packages do that i think can be done better. I've pulled inspiration from Golang's BUN ORM package for this database abstraction, with new or improved features that make my developer experience more pleasant. The ORM part of the abstraction is separated from the database abstraction, to reduce bloat, when it's highly likely you only want a database abstraction to execute some basic queries if you're not already using an ORM integrated in a framework.
The README contains all the documentation for the project. I've kept it short and simple to make it easy to review.
I would love to get your feedback on the project!
https://redd.it/1oww7nm
@r_php
Hey everyone,
Sentience is my personal framework project that i've kept evolving over the years, even using it in some startup projects. I decided to separate the database abstraction from the framework.
https://github.com/Sentience-Framework/database
Why did i create this package?
There are things that existing database abstraction packages do that i think can be done better. I've pulled inspiration from Golang's BUN ORM package for this database abstraction, with new or improved features that make my developer experience more pleasant. The ORM part of the abstraction is separated from the database abstraction, to reduce bloat, when it's highly likely you only want a database abstraction to execute some basic queries if you're not already using an ORM integrated in a framework.
The README contains all the documentation for the project. I've kept it short and simple to make it easy to review.
I would love to get your feedback on the project!
https://redd.it/1oww7nm
@r_php
GitHub
GitHub - Sentience-Framework/database: The database of Sentience
The database of Sentience. Contribute to Sentience-Framework/database development by creating an account on GitHub.
SymfonyCon Amsterdam 2025: The CI/CD Pipeline in 2025, GitOps, AI, and Zero-Trust in Action
https://symfony.com/blog/symfonycon-amsterdam-2025-the-ci-cd-pipeline-in-2025-gitops-ai-and-zero-trust-in-action?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ox3gi9
@r_php
https://symfony.com/blog/symfonycon-amsterdam-2025-the-ci-cd-pipeline-in-2025-gitops-ai-and-zero-trust-in-action?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ox3gi9
@r_php
Symfony
SymfonyCon Amsterdam 2025: The CI/CD Pipeline in 2025, GitOps, AI, and Zero-Trust in Action (Symfony Blog)
Join SymfonyCon Amsterdam 2025 and catch “The CI/CD Pipeline in 2025: GitOps, AI, and Zero-Trust in Action” by Hervé Leclerc, CTO at Smile, to discover the future of CI/CD with GitOps, AI, and …
New and noteworthy: PHPStan and PHPUnit integration
https://staabm.github.io/2025/11/15/phpstan-validates-phpunit-data-provider.html
https://redd.it/1oxnsw2
@r_php
https://staabm.github.io/2025/11/15/phpstan-validates-phpunit-data-provider.html
https://redd.it/1oxnsw2
@r_php
My developer experience
New and noteworthy: PHPStan and PHPUnit integration
In this article we will have a brief look into the latest update to phpstan/phpstan-phpunit 2.0.8.
Why is apache still so popular even as nginx+php-fpm has proven its mettle with performance?
As I understand, the popular consensus today is that nginx+php-fpm performs faster than apache even with the mpm_event process management enabled?
But when it comes to real world usage, many production instances I observe these days still deploy apache a lot. Even cpanel based web hosting (shared or dedicated instances) are more often apache based than nginx.
Is it due to some old habits and dependence on apache specific features like .htaccess support? Or is it the case that apache has actually caught up in the race with ngnix and the performance difference is quite negligible these days?
https://redd.it/1oxqkvq
@r_php
As I understand, the popular consensus today is that nginx+php-fpm performs faster than apache even with the mpm_event process management enabled?
But when it comes to real world usage, many production instances I observe these days still deploy apache a lot. Even cpanel based web hosting (shared or dedicated instances) are more often apache based than nginx.
Is it due to some old habits and dependence on apache specific features like .htaccess support? Or is it the case that apache has actually caught up in the race with ngnix and the performance difference is quite negligible these days?
https://redd.it/1oxqkvq
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Trace routes. No static analysis BS, just captures what actually runs.
What up guys,
Been debugging a slow endpoint and had no clue which files it was actually loading. Built this package to trace the real execution path instead of guessing.
What it does:
- Records every file PHP loads during a request
- Shows memory usage and execution time
- Categorizes files (controllers, models, policies, etc.)
- Works with any Laravel route
Usage in route/***.php
TraceRouteDependencies::enable();
Route::middleware(['trace-route'])->group(function () {
Route::get('/api/users', [UserController::class, 'index']);
});
Hit the route, then check `storage/logs/traces/` for a JSON file with everything that loaded.
Example output:
{
"route": "api.users.index",
"files_loaded": {
"controllers": ["app/Http/Controllers/UserController.php"],
"models": ["app/Models/User.php"],
"policies": ["app/Policies/UserPolicy.php"]
},
"memory_used_mb": 2.5,
"execution_time_ms": 45.2
}
Kinda usefull for understanding wtf a route is doing or finding performance issues. No static analysis BS, just captures what actually runs.
https://github.com/TonyGeez/laravel-route-tracer
🤠
https://redd.it/1oxs75m
@r_php
What up guys,
Been debugging a slow endpoint and had no clue which files it was actually loading. Built this package to trace the real execution path instead of guessing.
What it does:
- Records every file PHP loads during a request
- Shows memory usage and execution time
- Categorizes files (controllers, models, policies, etc.)
- Works with any Laravel route
Usage in route/***.php
TraceRouteDependencies::enable();
Route::middleware(['trace-route'])->group(function () {
Route::get('/api/users', [UserController::class, 'index']);
});
Hit the route, then check `storage/logs/traces/` for a JSON file with everything that loaded.
Example output:
{
"route": "api.users.index",
"files_loaded": {
"controllers": ["app/Http/Controllers/UserController.php"],
"models": ["app/Models/User.php"],
"policies": ["app/Policies/UserPolicy.php"]
},
"memory_used_mb": 2.5,
"execution_time_ms": 45.2
}
Kinda usefull for understanding wtf a route is doing or finding performance issues. No static analysis BS, just captures what actually runs.
https://github.com/TonyGeez/laravel-route-tracer
🤠
https://redd.it/1oxs75m
@r_php
GitHub
GitHub - TonyGeez/laravel-route-tracer
Contribute to TonyGeez/laravel-route-tracer development by creating an account on GitHub.
Refactoring Legacy: Part 1 - DTO's & Value Objects
https://clegginabox.co.uk/refactoring-legacy-part-1-dtos-value-objects/
https://redd.it/1oy0anv
@r_php
https://clegginabox.co.uk/refactoring-legacy-part-1-dtos-value-objects/
https://redd.it/1oy0anv
@r_php
Clegginabox
Refactoring Legacy: Part 1 - DTO's & Value Objects
Ever opened a codebase where a single JSON payload could arrive in 17 different shapes depending on the phase of the moon?
Over the last few years my contracts have involved working with legacy code in one way or another. Outdated software, missing documentation…
Over the last few years my contracts have involved working with legacy code in one way or another. Outdated software, missing documentation…
Run only affected tests?
Hey,
I want to run only affected tests - to cut down a bit on CI wastage and improve pipeline time.
Other tools I've worked with have this (e.g. NX) - I've gone through the docs and can't find anything on this.
Have I missed something and is there a command for it? Or have people brewed their own solutions/packages for this?
Thanks!
https://redd.it/1oybjpo
@r_php
Hey,
I want to run only affected tests - to cut down a bit on CI wastage and improve pipeline time.
Other tools I've worked with have this (e.g. NX) - I've gone through the docs and can't find anything on this.
Have I missed something and is there a command for it? Or have people brewed their own solutions/packages for this?
Thanks!
https://redd.it/1oybjpo
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Static Methods Vs. Lazy Objects | PHP
Why should I use the lazy objects instead of static methods? I don't understand the difference use case of them.
https://redd.it/1oyfzzc
@r_php
Why should I use the lazy objects instead of static methods? I don't understand the difference use case of them.
https://redd.it/1oyfzzc
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
A Week of Symfony #985 (November 10–16, 2025)
https://symfony.com/blog/a-week-of-symfony-985-november-10-16-2025?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1oyhteq
@r_php
https://symfony.com/blog/a-week-of-symfony-985-november-10-16-2025?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1oyhteq
@r_php
Symfony
A Week of Symfony #985 (November 10–16, 2025) (Symfony Blog)
This week, Symfony released maintenance versions 5.4.50, 6.4.29, and 7.3.7 to address a potential security vulnerability. Meanwhile, we continued polishing the upcoming Symfony 7.4 and 8.0 releases an…
Should I opensource my DI container?
I've been using a custom dependency injection container in a couple of my php websites recently it's ~35 lines and still has all the features I need. It's explicit (so no autowiring) and has an emphasis on developer experience despite being so small, it has helper methods for factories, singletons, and lazy singletons. I've found it ideal for no/micro framework projects, cli noscripts, and possibly for use in laravel packages. What do you think? Is this something worth sharing?
https://redd.it/1oyj0u1
@r_php
I've been using a custom dependency injection container in a couple of my php websites recently it's ~35 lines and still has all the features I need. It's explicit (so no autowiring) and has an emphasis on developer experience despite being so small, it has helper methods for factories, singletons, and lazy singletons. I've found it ideal for no/micro framework projects, cli noscripts, and possibly for use in laravel packages. What do you think? Is this something worth sharing?
https://redd.it/1oyj0u1
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Weekly /r/Laravel Help Thread
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1oysfch
@r_php
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1oysfch
@r_php
Laravel
Installation - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
EHTML — Extended HTML for Real Apps. Sharing it in case it helps someone.
Hi everyone! I’ve been working on a project called EHTML, an HTML-first approach to building dynamic pages using mostly HTML. It lets you handle things like templating, loops, conditions, data loading, reusable components, and nested forms — all without a build step or heavy JavaScript setup.
I originally built it to simplify my own workflow for small apps and prototypes, but I figured others who prefer lightweight or no-build approaches might find it useful too. It runs entirely in the browser using native ES modules and custom elements, so there’s no bundler or complex tooling involved.
If you enjoy working close to the browser or like experimenting with minimalistic web development, you might find it interesting. Just sharing in case it helps someone or sparks ideas. Cheers!
Link: https://e-html.org/
https://redd.it/1oyv9xw
@r_php
Hi everyone! I’ve been working on a project called EHTML, an HTML-first approach to building dynamic pages using mostly HTML. It lets you handle things like templating, loops, conditions, data loading, reusable components, and nested forms — all without a build step or heavy JavaScript setup.
I originally built it to simplify my own workflow for small apps and prototypes, but I figured others who prefer lightweight or no-build approaches might find it useful too. It runs entirely in the browser using native ES modules and custom elements, so there’s no bundler or complex tooling involved.
If you enjoy working close to the browser or like experimenting with minimalistic web development, you might find it interesting. Just sharing in case it helps someone or sparks ideas. Cheers!
Link: https://e-html.org/
https://redd.it/1oyv9xw
@r_php
e-html.org
EHTML
EHTML (or Extended HTML) can be described as a set of custom elements that you can place on an HTML page for different purposes and use cases. The goal of this library is to provide a convenient way to eliminate JavaScript code on the client side as much…
Show the progress of your background jobs in your UI and support cancelling running jobs safely
https://redd.it/1oyynco
@r_php
https://redd.it/1oyynco
@r_php