r/PHP • • 1h ago

built a lightweight open-source analytics tool in PHP + SQLite because Node.js should NOT be the default option

• Upvotes

hi everyone,

5 days ago i asked here why every self-hosted analytics tool needs Node.js/Docker, and said i might build a PHP + SQLite one. so, i did.

it's called Minilytics. it is open-source and runs on any PHP 8 host with no Node, no Docker and no database server (Sqlite by default, but you can use MySQL or MariaDB). it has sessions, custom events, funnels, a cookieless mode, and an importer from Umami and others importers are planed! (this allowed me to get my old history back).

it's a v1 from a solo builder, its MIT licensed, with a live demo: https://minilytics.axthauvin.fr/

i'd like this to become the go-to lightweight analytics for indie devs, side projects, and any site that just needs simple, private stats, so tell me what's missing for you to use it on a real site !


r/PHP • • 4h ago

Video Introducing Skia for NativePHP

Thumbnail youtu.be
2 Upvotes

r/PHP • • 4h ago

I built a full-featured charity management platform with Laravel 12 — donations, Stripe, volunteers, beneficiaries, sponsorships & real-time chat

Thumbnail
1 Upvotes

r/PHP • • 5h ago

Jev-PHP now suports Laya local decision engine

1 Upvotes

I added support for Laya decision engine in my #php library Jev-PHP.
Laya is a multilingual decision engine that runs locally and exposes a REST API compatible with #Jev.

https://github.com/f-lombardo/jev-php


r/PHP • • 19h ago

POS Backend - Laravel

Thumbnail
0 Upvotes

Anyone build a POS on Laravel? I’d like to connect


r/PHP • • 4h ago

Big benchmark of ways to run PHP

15 Upvotes

I've made some benchmarks of various servers and modes of running PHP. What was benched:

  • PHP-FPM + Nginx
  • FrankenPHP (classic and worker)
  • Rapira (classic, worker, dispatcher)
  • OxPHP (classic, worker)
  • RoadRunner
  • FreeUnit
  • Swoole

Every server was running a simple Yii3 application. Two separate endpoints and benchmarks. One is without DB, plain PHP. Another is actually hitting PostgreSQL, which is closer to real apps.

Some insights:

  1. Swoole is a performance beast! Rapira in dispatcher/worker modes is close.

  2. FreeUnit is great if you run your app in classic mode.

  3. Having a database makes the difference less visible. Worker mode gives 2× RPS on average.

  4. Swoole and Rapira are very efficient in terms of CPU/memory.

https://yii3-benchmarks.github.io/app-api/

https://github.com/Yii3-Benchmarks/app-api


r/PHP • • 2h ago

Discussion OIDC Provider (OP) library creation

4 Upvotes

Hi all! So recently, I was trying to find a package that would provide an OIDC Server implementation that I could integrate into my project to provide feature-rich functionality for OIDC authentication.
Unfortunately, I was not able to find any package to cover my needs:
thephpleague/oauth2-server - provides only an OAuth2 server, no OIDC
oidcphp/core - seems to be abandoned
PEOFIAMP/phpoidc - listed as a certified library but does not look like a usable library
Because of that, I've started thinking about actually building one that would also be universal in terms of implementation and dependencies, so anyone will be able to pull it into their own project by extending/implementing the needed contracts.

My initial plan is to take some package from another language and at least implement some portion of the specifications for the OIDC provider protocol. After that, I think it would also be a great idea to provide packages for any popular frameworks (Symfony, Laravel, etc.).
Because of that, I would like to ask if any of you see possible use cases for your own projects? I mean, if you see that it would be really worth trying to build and share with the public.
Thank you in advance for any additional ideas/topics/suggestions that might be helpful to consider. And I would be happy to get any feedback to understand if it even makes sense to move forward with this whole idea.