r_php | Unsorted

Telegram-канал r_php - PHP Reddit

33

Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram

Subscribe to a channel

PHP Reddit

Searching multiple columns with one URL parameter in laravel-query-builder
https://freek.dev/3118-filter-groups-in-laravel-query-builder

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

Читать полностью…

PHP Reddit

Weekly Ask Anything Thread

Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.

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

Читать полностью…

PHP Reddit

Tutorials or Open Source Code for Matrimony Website in Laravel

Hi everyone,

I’m planning to build a **matrimony website using Laravel** for a community trust that helps connect brides and grooms as a social service (non-profit initiative).

I’m looking for:

* Good **tutorials (YouTube/blogs/courses)** for building a matrimony or similar matchmaking platform in Laravel
* Any **open-source projects or GitHub repos** that I can study or use as a base
* Suggestions on **key features** I should include (like profile verification, search filters, privacy controls, etc.)

The goal is to keep it simple, secure, and useful for the community rather than overly commercial.

If anyone has worked on something similar or can point me to useful resources, I’d really appreciate your help!

Thanks in advance 🙏

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

Читать полностью…

PHP Reddit

Alternatives To MySQL WorkBench

Hey everyone,



I've been using MySQL Workbench but it keeps crashing on me whenever I'm working with large databases, especially when I try to directly edit records in a table. Super frustrating.



For context, I'm building a web/mobile app backend with Laravel, so I need something that can handle a decent-sized database without falling over.



What GUI tools are you guys using for MySQL/PostgreSQL database management? Looking for something stable and reliable for large databases. Free or paid, doesn't matter, just want something that actually works. Of course, best is low cost as possible



Thanks in advance!

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

Читать полностью…

PHP Reddit

Quo is now live. A new free open source variable debugging tool
https://github.com/Protoqol/Quo

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

Читать полностью…

PHP Reddit

complete Website Management System (WMS) built with Laravel + ReactJS

If you’re tired of rebuilding the same website system again and again… this might help 👇

I’m offering a complete Website Management System (WMS) built with Laravel + ReactJS — stable, tested, and ready to use.

What makes it different:
• Superadmin + Admin architecture
• Manage multiple websites from one system
• Each client gets their own admin panel
• No need to build static sites repeatedly
• Just design the theme + connect the domain → done 🚀
• Already tested & stable for real-world use

Best suited for:
• Schools / Colleges
• Consultancies
• Corporate or company websites
• Service-based businesses
• Any content-focused platform (except full e-commerce)

⚠️ Note:
→ This is not built for full e-commerce (product selling/buying platforms).
→ However, it works perfectly for websites around those domains and can be extended if needed.

Themes:
• Currently includes 2 ready themes
• Easily extendable — you can add new themes based on client needs

Important:
→ This is NOT a mass-sold product.
→ The full source code will be sold exclusively — under your name or your company. Once sold, it won’t be resold to others.

You’re not just buying a system… you’re owning a product.

If you’re interested or want a demo / details, feel free to DM me 🙂

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

Читать полностью…

PHP Reddit

Olá e projeto
https://map.solaresdev.com

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

Читать полностью…

PHP Reddit

wrote a php script that indexes youtube video transcripts into a mysql database and it's become the most used internal tool at my agency

i work at a small digital agency and we produce a lot of video content for clients. tutorials, product walkthroughs, webinar recordings. the problem was finding anything after the fact. a client would ask "which video did we explain the checkout flow redesign in" and someone would have to scrub through a dozen youtube videos to find it.

i wrote a php script to fix this. it pulls the full transcript from a youtube video and stores it in a mysql table alongside the video title, client name, publish date, and tags. nothing fancy. the table has a FULLTEXT index on the transcript column.

for pulling transcripts i use transcript api:

npx skills add ZeroPointRepo/youtube-skills --skill youtube-full

the php side is just a cURL call to the api, json_decode the response, and an INSERT into the database. maybe 40 lines of actual code. i wrapped it in a simple form where you paste a youtube url, pick the client from a dropdown, add a couple tags, and hit save.

the search page is even simpler. a text input that runs a MATCH AGAINST query on the transcript column. results come back with the video title, client, date, and a snippet of the transcript around the matching text. click through to the youtube video.

we have about 180 videos indexed now across 12 clients. the account managers use it more than i expected. instead of pinging the video team on slack asking "which video covers X" they just search it themselves. that alone probably saved 3-4 slack threads a day.

the whole thing is one controller, two views, and a model. running on the same LAMP stack we use for everything else. took me a saturday afternoon to build and i've barely touched it since. the only thing i added later was a bulk import page so we could paste a list of youtube urls and process them all at once.

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

Читать полностью…

PHP Reddit

Symfony 7.4.9 released
https://symfony.com/blog/symfony-7-4-9-released?utm_medium=feed&utm_source=Symfony%20Blog%20Feed

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

Читать полностью…

PHP Reddit

I benchmarked Laravel's two main module systems. The result contradicts the assumption that the Composer-native one is automatically faster.

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

Читать полностью…

PHP Reddit

Symfony 8.0.9 released
https://symfony.com/blog/symfony-8-0-9-released?utm_medium=feed&utm_source=Symfony%20Blog%20Feed

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

Читать полностью…

PHP Reddit

Reli 0.12.0 is released with major expansions in tracing, memory analysis, monitoring, and runtime inspection
https://github.com/reliforp/reli-prof/releases/tag/0.12.0

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

Читать полностью…

PHP Reddit

Google Gen AI SDK has no official PHP SDK — Google asked for stars and use cases

Google Gen AI SDK currently supports Python, Node.js, Go, Java, and .NET/C#, but there is no official PHP SDK.



I opened a public Google Issue Tracker request for official PHP support:



https://issuetracker.google.com/issues/507647520



Google Cloud replied that, according to their Public Issue Tracker process, feature requests usually need a handful of stars and comments from several users before the engineering team works on them.



So if official PHP support for Gemini / Vertex AI GenAI SDK matters to you, please consider starring the issue or commenting there with your real use case.



Existing PHP options such as `google/apiclient`, `google-cloud-php`, and GAPIC-generated clients do not provide the same unified GenAI SDK developer experience as the official SDKs for other languages.



Useful comments would probably include things like:



\- whether you need Gemini Developer API,

\- whether you need Gemini API on Vertex AI,

\- whether you need both through one unified SDK,

\- whether you use Symfony, Laravel, or another PHP stack,

\- whether streaming, tool calling, multimodal input, structured output, or file upload support matters to you.



This is not about asking for a framework wrapper. The missing piece is an official PHP SDK equivalent to `python-genai`, `js-genai`, `go-genai`, `java-genai`, and `dotnet-genai`.

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

Читать полностью…

PHP Reddit

Microsoft Drivers 5.13.1 for PHP for SQL Server released - security fix for connection pooling

5.13.1 is out with several fixes for the sqlsrv and pdo\_sqlsrv extensions:

* **Access token leak in pooled connections** \- Connections with different access tokens could share the same pool entry, causing identity cross-contamination and use-after-free. Fixed by incorporating the token into the pool key.
* **Silent INSERT failure** \- Prepared INSERTs could silently fail when triggers or `SET NOCOUNT OFF` produce extra result sets, causing implicit rollback with MARS enabled.
* **Fatal error re-executing prepared statements** \- Re-executing a prepared statement returning multiple result sets with different column layouts could crash. Metadata is now properly freed between executions.
* **sqlsrv\_errors() returning null** \- After a failed connection with no ODBC diagnostic records, `sqlsrv_errors()` returned null instead of the actual error.
* **Stream invalidation** \- Binary streams became invalid when the originating statement went out of scope.

Drop-in upgrade from 5.13.0, no API changes. Supports PHP 8.3/8.4/8.5.

Install: `pecl install sqlsrv` / `pecl install pdo_sqlsrv`

Full blog post: [https://techcommunity.microsoft.com/blog/sqlserver/announcing-microsoft-drivers-5-13-1-for-php-for-sql-server/4516258](https://techcommunity.microsoft.com/blog/sqlserver/announcing-microsoft-drivers-5-13-1-for-php-for-sql-server/4516258)

GitHub: [https://github.com/microsoft/msphpsql](https://github.com/microsoft/msphpsql)

Docs: [https://learn.microsoft.com/sql/connect/php/microsoft-php-driver-for-sql-server](https://learn.microsoft.com/sql/connect/php/microsoft-php-driver-for-sql-server)

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

Читать полностью…

PHP Reddit

What's New in Laravel 13.7: JSON Assertions, @fonts & Worker Signals
https://youtu.be/EC3UYLyggBQ

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

Читать полностью…

PHP Reddit

Weekly help thread

Hey there!

This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!

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

Читать полностью…

PHP Reddit

Is there any pure PHP solution for face recognition?

Has anyone here implemented face recognition using PHP only? I’m exploring "mailmug/php-dlib", but not sure how practical it is. Any suggestions or experiences?

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

Читать полностью…

PHP Reddit

MyCMS

I’ve been working on my own lightweight PHP CMS/framework project: mycms.ivarovsky.com



The main goal is simplicity and a very low entry threshold for beginners. I want it to be something that new PHP developers can actually open, read, modify, and understand without spending weeks learning a huge ecosystem first.



I’m also trying to encourage more people in my country to learn PHP and backend development in general. Hopefully this project can become a small starting point for someone who wants to get into web development.



Feedback, ideas, and questions are welcome.



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

Читать полностью…

PHP Reddit

A Week of Symfony #1009 (April 27 – May 3, 2026)
https://symfony.com/blog/a-week-of-symfony-1009-april-27-may-3-2026?utm_medium=feed&utm_source=Symfony%20Blog%20Feed

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

Читать полностью…

PHP Reddit

Laravel "Target class does not exist" — fixed in seconds

Laravel "Target class does not exist" — fixed in seconds

I kept getting this error in Laravel:

"Target class does not exist"

The confusing part:

\- Controller exists

\- File name is correct

\- Everything looks fine

But Laravel still behaves like the class doesn't exist.

After debugging, I found it's usually one of these:

\- Missing namespace in controller

\- Wrong import in routes

\- Composer autoload not updated

\- Cache not cleared

👉 Quick fix:

composer dump-autoload

php artisan cache:clear

php artisan config:clear

I wrote a simple guide explaining the causes and fixes step by step:

https://growthawakening.com/single-post/laravel-target-class-does-not-exist-why-the-controller-exists-but-laravel-cannot-see-it

Hope this saves someone time 🙌

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

Читать полностью…

PHP Reddit

CVE-2026-31431 (Copy Fail) PHP PoC
https://github.com/MartinPham/copy-fail-CVE-2026-31431-php

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

Читать полностью…

PHP Reddit

PHPRunner - cPanel - phpMyAdmin

I'm using Xlinesoft-PHPRunner to develop a website locally. It's not online at the yet. I have been using the Create SQL Script button in PHPRunner to download a Word document of all the code and copy this code to the SQL box in phpMyAdmin. I can view all my tables, fields, and data in phpMyAdmin after this. In my Vendor Ratings table I'm trying to prevent users from rating any vendor more than one time. If I use the `Prevent Duplicate Entry' option in PHPRunner for this table it prevents users from rating any vendor that has been rated by another user. I contacted Xlinesoft Support my email and I was sent a zipped file and an SQL file. I was told to unzip the zipped file and to the project folder overwriting everything and to execute the SQL script. I deleted all by tables from phpMyAdmin, used the SQL Script button in PHPRunner again, copied the project code to the SQL box in phpMyAdmin again, and I could see all of my tables, fields, and data in phpMyAdmin again. I then downloaded the SQL Script and opened it as a Word document. I also copied all of this code to the SQL box of phpMyAdmin and a vendor_check table appeared in phpMyAdmin along with all of my other tables. When opening PHPRunner and building my project everything works as it did before but when I open try to open the Vendor Ratings table locally I get an error message that says Table `rolodex_022721.vendor_check' doesn't exist. rolodex_022721 is the name of the project. In PHPRunner the vendor_check is showing up in the Deleted tables. I did not delete this table. This is where it went by default. I stated this to support and it was of no concern to them. My domain, cPanel, and phpMyAdmin are from GoDaddy. They seem to think that this is the reason it is not working. The GoDaddy agent told me that they can't troubleshoot a problem with a 3rd party app or a project because used locally. Xlinesoft did not instruct me to use the Export tab in phpMyAdmin but my question is if this could be why the vendor_check table is showing in phpMyAdmin but I still get the error message when trying to open the Vendor Ratings table. My Vendor Ratings table worked correctly before trying to make this change. My only issue was that I could login with a user and continue to rate the same vendor. My Vendor list has a list of all vendors with each vendor's average rating next to the vendor's name. Allowing a user to vote multiple times for the same vendor would allow users to manipulate the average rating for any vendor by giving that vendor several bad ratings or several good ratings. I'm trying to prevent this but the code I was given to insert in phpMyAdmin is creating this vendor_check table in phpMyAdmin but has no effect on my project locally. I just need help figuring out if I need to use the Export tab in phpMyAdmin or if it could possibly be the GoDaddy servers blocking code from being transferred from phpMyAdmin to my local project. In phpMyAdmin Server: localhost:3306 Database: rolodex_022721 appears above my list of tables.

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

Читать полностью…

PHP Reddit

Symfony 6.4.37 released
https://symfony.com/blog/symfony-6-4-37-released?utm_medium=feed&utm_source=Symfony%20Blog%20Feed

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

Читать полностью…

PHP Reddit

phpclickhouse 0.8.1: native ClickHouse extension for PHP, picking up where SeasClick left off

Six days ago I tagged 0.6.0 of php
clickhouse, a soft fork of the SeasClick extension (which stopped accepting PRs in 2020). Three releases later (0.7.0, 0.8.0, 0.8.1) I'm calling the extension stable.

The PHP ClickHouse ecosystem has been split between SeasClick (native binary protocol but stalled, no modern types, no ZTS, no TLS in the maintained fork) and HTTP clients like smi2/phpClickHouse (active but ~30-40% slower at high throughput). This fork picks up the native-protocol path with the official clickhouse-cpp v2.6.1 client and brings the modern type surface back.

What landed in the quality cycle:

0.7.0 closed the API gap with smi2/phpClickHouse. Per-call settings, server-side typed parameters via {name:Type} placeholders, progress callback, getStatistics() (rows/bytes/elapsedms), structured `ClickHouseException` with `servercode / queryid`, `insertAssoc()`, SQL helpers (`databaseSize`, `showTables`, `tableSize`, etc.), sub-second timeouts. Adopting the native client no longer costs ergonomics.

**0.8.0** moved per-Client state from seven file-scope `std::map` banks onto the `zend
object itself. Unblocks ZTS (RoadRunner / FrankenPHP / Swoole / php-pm now work), plugs leaks on script bailout, fixes a refcount bug on the progress callback. Adds streaming reads (selectStream() returns an Iterator + Countable, selectStreamCallback() for unbounded streams), Geo types (Point / Ring / Polygon / MultiPolygon), LowCardinality(Nullable(T)), and Map(K, V) over the full scalar matrix. Pre-built binaries for Linux glibc (x86_64 + arm64) and macOS (x86_64 + arm64) via PIE.

**0.8.1** hardened the insert path. The connection now resets on every server-side rejection point (
BeginInsert, SendInsertBlock, EndInsert) so a thrown insert no longer wedges the handle with "cannot execute query while inserting". Insert builds native columns one at a time directly from row-major input: peak intermediate PHP memory drops from Nrows × Ncols zvals to one column. Strict full-consumption parsers across Map, narrow-int, Int128 / UInt128, geo, DateTime64 reject coercion-to-zero on bad input. 23 new PHPTs covering all of the above.

One side effect of the new ASan job: it caught a latent UB in clickhouse-cpp's empty-string-view memcpy path. Submitted upstream and merged as ClickHouse/clickhouse-cpp#489 on April 27.

Install on supported platforms (Linux glibc + macOS, NTS, PHP 8.4 / 8.5):

pie install iliaal/php_clickhouse

TLS variant builds from source:
pie install iliaal/phpclickhouse --enable-clickhouse-openssl`.

Blog post with the full breakdown:
https://ilia.ws/blog/php-clickhouse-0-8-1-three-releases-later-stable
Repo:
https://github.com/iliaal/phpclickhouse

Happy to take questions, especially from anyone running ClickHouse-from-PHP at production volume.

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

Читать полностью…

PHP Reddit

Problems with escapeshellarg
https://deployer.org/blog/quote-vs-escapeshellarg

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

Читать полностью…

PHP Reddit

Handling Excel Files

Does anyone have any package recommendations for processing Excel files that isn't maatwebsite/excel? It's dependencies are stuck on a PHP version < 8.5, which blocks the current 8.5.5.

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

Читать полностью…

PHP Reddit

Join Us for PHPverse 2026 on June 9
https://blog.jetbrains.com/phpstorm/2026/04/join-us-for-phpverse-2026-on-june-9/

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

Читать полностью…

PHP Reddit

Terminal is Super Slow

For some reason my terminal is super slow. e.g. something as simple as composer require laravel/reverb in a new Laravel project can take up to 10 minutes to complete. It seems like it hangs/freezes midway, and sometimes it finishes the job and other times it crashes.

I tried disabling all extensions, clearing cache, and setting "disable-hardware-acceleration": true, but nothing helps.

I'm on a Dell Precision 7670, 64gb ram, i9, Win 11.

Any ideas?

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

Читать полностью…

PHP Reddit

Aimeos: Laravel e-commerce 2026.04 released – now on Laravel 13 with PHP 9 readiness, security hardening and more
https://redd.it/1szxtvp
@r_php

Читать полностью…

PHP Reddit

Aimeos e-commerce framework 2026.04 – PHP 9 ready, Laravel 13, Symfony 8, security hardening and more

We just released Aimeos 2026.04, the PHP e-commerce framework for custom online shops, market places, complex B2B apps and #gigacommerce:

Ready for PHP 9: Minimum raised to PHP 8.1, all deprecations removed across core and 30+ extensions, fully tested on PHP 8.5. PHPStan static analysis added at level 4 with zero errors.
Laravel 13 & Symfony 8: Day-one support for the latest framework versions. The stand-alone shop and headless distributions ship on Laravel 13 out of the box.
Customer CSV import: Full import pipeline with address/property support, regex validation, group filtering and admin UI upload — rounding out CSV import for products, catalogs, suppliers and now customers.
- Product feed extension: New extension for generating Google Merchant and Idealo product feeds. Includes several configuration options to customize the exported products and details.
Security hardening: XSS prevention via HTML sanitization in the CMS, GraphQL query depth/complexity limits, and tighter permission checks in the admin API.
PHPUnit 12: Stricter test isolation and deprecation handling across the entire test suite.

For those who haven't come across Aimeos before — it's an open-source e-commerce framework (LGPLv3) built for PHP developers who want full control over their shop without being locked into a monolithic platform. A few things that set it apart:

Framework-native: Integrates directly into Laravel, Symfony or TYPO3 as a composer package. You use your framework's routing, auth, middleware and tooling — Aimeos plugs into it rather than replacing it.
Headless-first: Full JSON:API and GraphQL APIs out of the box. Use any frontend you want — Vue, React, mobile apps, or the included server-side rendered HTML client.
Multi-tenant / multi-site: Built-in support for running multiple shops from a single installation with separate catalogs, pricing, languages and currencies per site.
Scales from small to large: The same architecture powers single-product shops and marketplaces with millions of products. ElasticSearch and Solr integrations are available for high-volume search.
Extensible, w/o forking: 30+ extensions for payments, shipping, CMS, feeds, caching (Redis), search engines and more. Custom extensions follow the same pattern without touching core code.
No SaaS lock-in: You host it yourself, own your data, and can switch or extend anything.

GitHub: https://github.com/aimeos/aimeos
Docs: [https://aimeos.org/docs](https://aimeos.org/docs)
Demo: https://demo.aimeos.org

If you like Aimeos, give it a star :-)

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

Читать полностью…
Subscribe to a channel