How to Create a RAG Agent with Neuron ADK for PHP
https://inspector.dev/how-to-create-a-rag-agent-with-neuron-adk-for-php/
https://redd.it/1l7sx46
@r_php
https://inspector.dev/how-to-create-a-rag-agent-with-neuron-adk-for-php/
https://redd.it/1l7sx46
@r_php
How to Create a RAG Agent with Neuron ADK for PHP
https://inspector.dev/how-to-create-a-rag-agent-with-neuron-adk-for-php/
https://redd.it/1l7swsp
@r_php
https://inspector.dev/how-to-create-a-rag-agent-with-neuron-adk-for-php/
https://redd.it/1l7swsp
@r_php
30 years of PHP: FrankenPHP is now part of the PHP organisation
https://thephp.foundation/blog/2025/06/08/php-30/
https://redd.it/1l7v0df
@r_php
https://thephp.foundation/blog/2025/06/08/php-30/
https://redd.it/1l7v0df
@r_php
thephp.foundation
30 years of PHP: FrankenPHP is now part of the PHP organisation
The PHP Foundation — Supporting, Advancing, and Developing the PHP Language
Laravel 12 + Vue JS + Spatie Roles & Permissions
https://youtu.be/mRyHhb6YlkA?si=G8-A3uR382BrQiUe
https://redd.it/1l7wvft
@r_php
https://youtu.be/mRyHhb6YlkA?si=G8-A3uR382BrQiUe
https://redd.it/1l7wvft
@r_php
YouTube
Laravel 12 + Vue JS + Spatie Roles & Permissions
In this video, learn how to integrate Spatie Roles & Permissions in a Laravel 12 + Vue JS app using the Laravel Starter Kit (Breeze or Jetstream).
Perfect for building admin dashboards, multi-role apps, and secure user access systems. 🔒
✅ What You'll Learn:…
Perfect for building admin dashboards, multi-role apps, and secure user access systems. 🔒
✅ What You'll Learn:…
Managing the Memory Usage of the Laravel Eloquent Identity Map | ollieread - PHP and Laravel expert
https://ollieread.com/articles/managing-the-memory-usage-of-the-laravel-eloquent-identity-map
https://redd.it/1l7zbj5
@r_php
https://ollieread.com/articles/managing-the-memory-usage-of-the-laravel-eloquent-identity-map
https://redd.it/1l7zbj5
@r_php
ollieread - PHP and Laravel expert
Managing the Memory Usage of the Laravel Eloquent Identity Map | ollieread - PHP and Laravel expert
In my previous article, I introduced a minimal identity map for Laravel Eloquent. In this follow-up, I'll show you how to better manage the memory usage of the identity map, and prevent memory leaking issues for particularly heavy processes, including Laravel…
How PhpStorm Helps Maintain PHP Open-Source Projects: Interviews and Real-World Examples
https://blog.jetbrains.com/blog/2025/06/10/how-phpstorm-helps-maintain-php-open-source-projects-interviews-and-real-world-examples/
https://redd.it/1l820nk
@r_php
https://blog.jetbrains.com/blog/2025/06/10/how-phpstorm-helps-maintain-php-open-source-projects-interviews-and-real-world-examples/
https://redd.it/1l820nk
@r_php
Reddit
From the PHP community on Reddit: How PhpStorm Helps Maintain PHP Open-Source Projects: Interviews and Real-World Examples
Explore this post and more from the PHP community
I built an open source Fakespot replacement with Laravel
https://shift8web.ca/from-fakespot-to-null-fake-navigating-the-evolving-landscape-of-fake-reviews/
https://redd.it/1l86qzj
@r_php
https://shift8web.ca/from-fakespot-to-null-fake-navigating-the-evolving-landscape-of-fake-reviews/
https://redd.it/1l86qzj
@r_php
Uri-Interop Standard Now Stable
https://pmjones.io/post/2025/06/10/uri-interop-standard-now-stable/
https://redd.it/1l8gh0u
@r_php
https://pmjones.io/post/2025/06/10/uri-interop-standard-now-stable/
https://redd.it/1l8gh0u
@r_php
composer-attribute-collector running as a command
I made some changes to my attribute collector for Composer to avoid issues with incompatibilities between Composer and the application dependencies; for example, the PSR logger with incompatible signatures. I have a branch ready, and I'm looking for brave souls to test the changes. Thanks for your help!
https://github.com/olvlvl/composer-attribute-collector/pull/35
https://redd.it/1l8o7h0
@r_php
I made some changes to my attribute collector for Composer to avoid issues with incompatibilities between Composer and the application dependencies; for example, the PSR logger with incompatible signatures. I have a branch ready, and I'm looking for brave souls to test the changes. Thanks for your help!
https://github.com/olvlvl/composer-attribute-collector/pull/35
https://redd.it/1l8o7h0
@r_php
GitHub
Run the collector as a command by olvlvl · Pull Request #35 · olvlvl/composer-attribute-collector
Running the collector within Composer's realm is causing issues when the interfaces used by Composer are incompatible with those used by the codebase, as reported by #31 and #32. With these...
Anyone using bun in production?
Virtually all my projects are built with inertia and react, just curious if anyone has made the switch to bun and found it to be a smooth switch from node.
https://redd.it/1l8rqn2
@r_php
Virtually all my projects are built with inertia and react, just curious if anyone has made the switch to bun and found it to be a smooth switch from node.
https://redd.it/1l8rqn2
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Anyone can help me with PHP routing, using MVC architecture?
Hello, so im creating a budget travel planner system using PHP PDO, in mvc architecture form. I've almost finished most of the functions and have been testing with dummy views but now I recieved the frontend from my group member and need it to link it.
However, im really struggling with that and the routing part, so can anyone help me with this, please?
for example, this is my user controller :
and this is my index php file for the routing:
However, it doesnt work and I don't understand what's going wrong.
I only have about 4 days left until we need to run it and do the testing 😭😭 thank you!!
https://redd.it/1l8vtek
@r_php
Hello, so im creating a budget travel planner system using PHP PDO, in mvc architecture form. I've almost finished most of the functions and have been testing with dummy views but now I recieved the frontend from my group member and need it to link it.
However, im really struggling with that and the routing part, so can anyone help me with this, please?
for example, this is my user controller :
<?php
session_start();
require __DIR__ . '/../models/User.php';
include_once __DIR__ . '/../helpers/session_helper.php';
class UserController {
private $userModel;
public function __construct(){
$this->userModel = new User;
// $this->userModel = new User($pdo);
}
// register user
public function registerUser(){
// if register button was clicked in the form // LOOK
if (($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['registerUser']))
{
// lets sanitize the data to remove any unneccesary data
$firstName = filter_var(trim($_POST['firstName']), FILTER_SANITIZE_FULL_SPECIAL_CHARS);
$lastName = filter_var(trim($_POST['lastName']), FILTER_SANITIZE_FULL_SPECIAL_CHARS);
$contactNumber = filter_var(trim($_POST['contactNumber']), FILTER_SANITIZE_NUMBER_INT);
$email = filter_var(trim($_POST['email']), FILTER_SANITIZE_EMAIL);
$password = filter_var(trim($_POST['password']));
// $confirmPassword = trim($_POST['confirmPassword']);
// if ($password !== $confirmPassword) {
// flash("register", "Passwords do not match.");
// redirect("../signup.php");
// }
// initalize data
$data = [
'name' => $firstName . ' ' . $lastName,
'contact_number' => $contactNumber,
'email' => $email,
'password' => password_hash($password, PASSWORD_DEFAULT),
'role' => 'user'
];
// validate the inputs before saving
if($this-> userModel-> registerUser($data)){
flash("register", "The account was created sucessfully!");
}else{
die("Something went wrong");
}
}
}
and this is my index php file for the routing:
<?php
require_once __DIR__ . '/Connection.php';
require_once __DIR__ . '/controllers/UserController.php';
$pdo = new Connection;
// $pdo = (new Connection())->pdo;
$controller = new UserController;
// routing for user registration
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['registerUser']))
{
$controller ->registerUser();
}
else {
echo "Error";
}
?>
However, it doesnt work and I don't understand what's going wrong.
I only have about 4 days left until we need to run it and do the testing 😭😭 thank you!!
https://redd.it/1l8vtek
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
My first Laravel package, released during PHP’s 30th anniversary month 🐘🎉
🚀 Proud to introduce laravel‑setanjo — my first Laravel package, released during PHP’s 30th anniversary month 🐘🎉
Laravel Setanjo is a powerful, multi‑tenant settings manager for Laravel apps. Whether you're managing global configurations or tenant-specific preferences, Setanjo makes it simple — and it's perfect for A/B testing and feature flag control too.
✨ Key Features
🏢 Multi‑Tenant Support: strict & polymorphic tenancy modes
🗃️ Global & Tenant Settings: handles both user‑scoped and global configs
⚡ Automatic Type Casting: booleans, integers, floats, arrays, objects
🔒 Optional Caching: pluggable cache store for faster access
🧪 A/B Testing & Feature Flags: toggle features per tenant or globally
✅ Clean API: intuitive facade calls — Settings::set(), Settings::for($tenant)->get()
🔄 Tenant Validation + Queue Support: secure and scalable
🔍 Fully Tested: reliable across use cases
Built for PHP 8.2+ and Laravel 10+
⭐ If you find it useful, please give it a star!
🧡 Feedback, ideas, and contributions welcome → https://github.com/AHS12/laravel-setanjo
Happy 30 years, PHP! 🐘
#Laravel #PHP #PHP30 #OpenSource #WebDevelopment #A/BTesting #FeatureFlags #MultiTenant #SaaS
https://redd.it/1l9kd18
@r_php
🚀 Proud to introduce laravel‑setanjo — my first Laravel package, released during PHP’s 30th anniversary month 🐘🎉
Laravel Setanjo is a powerful, multi‑tenant settings manager for Laravel apps. Whether you're managing global configurations or tenant-specific preferences, Setanjo makes it simple — and it's perfect for A/B testing and feature flag control too.
✨ Key Features
🏢 Multi‑Tenant Support: strict & polymorphic tenancy modes
🗃️ Global & Tenant Settings: handles both user‑scoped and global configs
⚡ Automatic Type Casting: booleans, integers, floats, arrays, objects
🔒 Optional Caching: pluggable cache store for faster access
🧪 A/B Testing & Feature Flags: toggle features per tenant or globally
✅ Clean API: intuitive facade calls — Settings::set(), Settings::for($tenant)->get()
🔄 Tenant Validation + Queue Support: secure and scalable
🔍 Fully Tested: reliable across use cases
Built for PHP 8.2+ and Laravel 10+
⭐ If you find it useful, please give it a star!
🧡 Feedback, ideas, and contributions welcome → https://github.com/AHS12/laravel-setanjo
Happy 30 years, PHP! 🐘
#Laravel #PHP #PHP30 #OpenSource #WebDevelopment #A/BTesting #FeatureFlags #MultiTenant #SaaS
https://redd.it/1l9kd18
@r_php
GitHub
GitHub - AHS12/laravel-setanjo: A powerful Laravel package for managing application settings with multi-tenant support. Store global…
A powerful Laravel package for managing application settings with multi-tenant support. Store global settings or tenant-specific configurations with automatic type casting, caching, and a clean API...
Are there any PHP dependency containers which have support for package/module scoped services?
I know that there have been suggestions and RFCs for namespace scoped classes, package definitions, and other similar things within PHP, but I'm wondering if something like this has been implemented in userland through dependency injection.
The NestJS framework in JS implements module scoped services in a way that makes things fairly simple.
Each NestJS Module defines:
* **Providers**: Classes available for injection within the module's scope. These get registered in the module's service container and are private by default.
* **Exports**: Classes that other modules can access, but only if they explicitly import this module.
* **Imports**: Dependencies on other modules, giving access to their exported classes.
Modules can also be defined as global, which makes it available everywhere once imported by any module.
Here's what a simple app structure might look like:
```
AppModule
├─ OrmModule // Registers orm models
├─ UserModule
│ └─ OrmModule.forModels([User]) // Dynamic module
├─ AuthModule
│ ├─ UserModule
│ └─ JwtModule
└─ OrderModule
├─ OrmModule.forModels([Order, Product])
├─ UserModule
└─ AuthModule
```
This approach does a really good job at visualizing module dependencies while giving you module-scoped services. You can immediately see which modules depend on others, services are encapsulated by default preventing tight coupling, and the exports define exactly what each domain exposes to others.
Does anyone know of a PHP package that offers similar module scoped dependency injection? I've looked at standard PHP DI containers, but they don't provide this module level organization. Any suggestions would be appreciated!
https://redd.it/1l9tvoh
@r_php
I know that there have been suggestions and RFCs for namespace scoped classes, package definitions, and other similar things within PHP, but I'm wondering if something like this has been implemented in userland through dependency injection.
The NestJS framework in JS implements module scoped services in a way that makes things fairly simple.
Each NestJS Module defines:
* **Providers**: Classes available for injection within the module's scope. These get registered in the module's service container and are private by default.
* **Exports**: Classes that other modules can access, but only if they explicitly import this module.
* **Imports**: Dependencies on other modules, giving access to their exported classes.
Modules can also be defined as global, which makes it available everywhere once imported by any module.
Here's what a simple app structure might look like:
```
AppModule
├─ OrmModule // Registers orm models
├─ UserModule
│ └─ OrmModule.forModels([User]) // Dynamic module
├─ AuthModule
│ ├─ UserModule
│ └─ JwtModule
└─ OrderModule
├─ OrmModule.forModels([Order, Product])
├─ UserModule
└─ AuthModule
```
This approach does a really good job at visualizing module dependencies while giving you module-scoped services. You can immediately see which modules depend on others, services are encapsulated by default preventing tight coupling, and the exports define exactly what each domain exposes to others.
Does anyone know of a PHP package that offers similar module scoped dependency injection? I've looked at standard PHP DI containers, but they don't provide this module level organization. Any suggestions would be appreciated!
https://redd.it/1l9tvoh
@r_php
I made a CLI tool in PHP to break down the phases of an HTTP request.
https://github.com/alexmacarthur/breakdown
https://redd.it/1la40k1
@r_php
https://github.com/alexmacarthur/breakdown
https://redd.it/1la40k1
@r_php
GitHub
GitHub - alexmacarthur/breakdown: A command-line tool for breaking down and analyzing HTTP requests.
A command-line tool for breaking down and analyzing HTTP requests. - alexmacarthur/breakdown
Package Release Progressive JSON Streamer for PHP — inspired by Dan Abramov’s Progressive JSON → Laravel ready
Hey everyone,
I just released a small open-source package I built after watching Dan Abramov’s Progressive JSON video.
👉 youtube.com/watch/MaMQLNBZz64
The idea is to send a base JSON skeleton immediately, and stream placeholders progressively as your app resolves slower data (DB/API/etc).
→ Works great with React Suspense / Vue Suspense / dashboards / large APIs.
✅ Laravel ready → works with
✅ Vue / React friendly → tested with simple JS client
✅ Supports nested placeholders →
✅ Breadth-first streaming (vs depth-first)
GitHub repo:
👉 https://github.com/egyjs/progressive-json-php
Would love to get your feedback — and especially curious if anyone sees other cool use cases inside Laravel apps.
Happy to answer any questions — cheers 🚀.
https://redd.it/1la3nmn
@r_php
Hey everyone,
I just released a small open-source package I built after watching Dan Abramov’s Progressive JSON video.
👉 youtube.com/watch/MaMQLNBZz64
The idea is to send a base JSON skeleton immediately, and stream placeholders progressively as your app resolves slower data (DB/API/etc).
→ Works great with React Suspense / Vue Suspense / dashboards / large APIs.
✅ Laravel ready → works with
response()->stream() ✅ Vue / React friendly → tested with simple JS client
✅ Supports nested placeholders →
root.nested style ✅ Breadth-first streaming (vs depth-first)
GitHub repo:
👉 https://github.com/egyjs/progressive-json-php
Would love to get your feedback — and especially curious if anyone sees other cool use cases inside Laravel apps.
Happy to answer any questions — cheers 🚀.
https://redd.it/1la3nmn
@r_php
YouTube
Progressive JSON
Can you stream JSON progressively? What happens if you do?
This video is complementary to my Overreacted post on the same topic.
This video is complementary to my Overreacted post on the same topic.
Easier GraphQL data loaders
https://github.com/rpander93/dataloader-support
https://redd.it/1laaz0o
@r_php
https://github.com/rpander93/dataloader-support
https://redd.it/1laaz0o
@r_php
GitHub
GitHub - rpander93/dataloader-support: Straightforward writing of data loaders with overblog/dataloader-php
Straightforward writing of data loaders with overblog/dataloader-php - rpander93/dataloader-support
Built a tool for Laravel Devs
Created a new open source tool for Laravel developers. Open for suggestions edits and contribution.
https://www.linkedin.com/posts/christopher-peacock-49b85b259\_github-christopherpeacocklaravel-job-watcher-activity-7339229036914651138-kurW?utm\_source=share&utm\_medium=member\_desktop&rcm=ACoAAD-qEfcBZibfgw-x3VIeaeuTv1T6PwNgzFA
https://redd.it/1laccyi
@r_php
Created a new open source tool for Laravel developers. Open for suggestions edits and contribution.
https://www.linkedin.com/posts/christopher-peacock-49b85b259\_github-christopherpeacocklaravel-job-watcher-activity-7339229036914651138-kurW?utm\_source=share&utm\_medium=member\_desktop&rcm=ACoAAD-qEfcBZibfgw-x3VIeaeuTv1T6PwNgzFA
https://redd.it/1laccyi
@r_php
Linkedin
Excited to announce the release of Laravel Job Watcher - a hot reload tool for Laravel queue jobs that eliminates a painful manual…
Excited to announce the release of Laravel Job Watcher - a hot reload tool for Laravel queue jobs that eliminates a painful manual process.
Over the past year, I’ve been focused on streamlining fire risk assessors through Opti Compliance.
The mission: help…
Over the past year, I’ve been focused on streamlining fire risk assessors through Opti Compliance.
The mission: help…
I made a vichan backup noscript
https://github.com/Z4ph0d42/Vichan-Backup-noscript
I couldn't find a good solution to backing up my image board on vichan.
So I made my own.
It's a set it and forget it system and requires a second machine. I used a raspberry pi 4
https://redd.it/1lajily
@r_php
https://github.com/Z4ph0d42/Vichan-Backup-noscript
I couldn't find a good solution to backing up my image board on vichan.
So I made my own.
It's a set it and forget it system and requires a second machine. I used a raspberry pi 4
https://redd.it/1lajily
@r_php
GitHub
GitHub - Z4ph0d42/Vichan-Backup-noscript: A Vichan backup and restore noscript
A Vichan backup and restore noscript. Contribute to Z4ph0d42/Vichan-Backup-noscript development by creating an account on GitHub.
PHP Session Collision
We have some users that can log into the website as different users and if they just open multiple tabs to login in multiple times they get the same session ID for two totally different logins. That causes problems.
What is the method to avoid this?
https://redd.it/1laod4z
@r_php
We have some users that can log into the website as different users and if they just open multiple tabs to login in multiple times they get the same session ID for two totally different logins. That causes problems.
What is the method to avoid this?
https://redd.it/1laod4z
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community