frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

YD Shomer – Runtime SQL validator for PHP with security suggestions

https://github.com/yd-shomer/php-shomer
2•hm-iti26•2h ago

Comments

hm-iti26•2h ago
# Introducing YD Shomer - The Guardian's Hand for PHP

I just released *YD Shomer*, a runtime SQL validator that catches security issues during development and teaches developers secure coding practices.

## The Name

- *YD (י)* - Yod, the Hebrew letter symbolizing divine protection - *Shomer (שומר)* - Guardian in Hebrew - *The Guardian's Hand* - Protection through vigilance

## Quick Example ```php use Shomer\QueryValidator;

define('SHOMER_ENABLED', true);

// This will trigger a warning $report = QueryValidator::validate([ 'sql' => "DELETE FROM users", // Missing WHERE! 'params' => [] ], $verbose = true);

// Shomer provides: // Error detected // Exact location: file.php line 42 // Suggested fix: "DELETE FROM users WHERE id = ?" // Email alert sent ```

## Key Features

*Security First:* - Detects SQL injection vulnerabilities - Validates prepared statements - Checks parameter counts and types

*Developer Experience:* - Auto-captures execution context (file, line, URL) - Provides secure query suggestions - Educational approach

*Production Ready:* - Zero overhead when disabled - Instant bypass - No performance impact

## Perfect For

- Learning secure SQL practices - Code reviews - Onboarding junior developers - Refactoring legacy code - Development environments

## Installation ```bash composer require yd-shomer/php-shomer

Proton 2025 Lifetime Fundraiser

https://shop.proton.me/products/2025-proton-lifetime-fundraiser-raffle-ticket
1•teekert•2m ago•0 comments

Libxml2 Narrowly Avoids Becoming Unmaintained

https://hackaday.com/2025/12/23/libxml2-narrowly-avoids-becoming-unmaintained/
1•beardyw•4m ago•0 comments

Creatine monohydrate pilot in Alzheimer's: Feasibility and cognition

https://alz-journals.onlinelibrary.wiley.com/doi/10.1002/trc2.70101
1•debo_•5m ago•0 comments

Postponed '60 Minutes' segment on Salvadoran prison is streamed by Canadian news

https://www.nbcnews.com/news/us-news/cbs-news-el-salvador-cecot-prison-sharyn-alfonsi-bari-weiss-...
2•duxup•6m ago•0 comments

I Don't Care for Gnome (2024)

https://woltman.com/gnome-bad/
1•abhinavk•7m ago•0 comments

Algorithms for Decision Making (2022)

https://algorithmsbook.com/decisionmaking/#
1•simonpure•8m ago•0 comments

Show HN: I built an iOS app for writers who still use pen and paper

https://frogteam.ai/VibrantFrog/how-it-works.html
1•am-piazza•12m ago•0 comments

Show HN: Kardy – send a group card this Christmas

https://www.kardy.app
1•postatic•15m ago•0 comments

Guilded is no longer available

https://www.guilded.gg/
1•uyzstvqs•15m ago•0 comments

Microsoft has set a goal to "eliminate every line of C and C++ from MS by 2030."

https://twitter.com/lundukejournal/status/2003293402528428209
3•taubek•17m ago•0 comments

What are the best personal blogs that you're reading?

4•George97•19m ago•1 comments

Show HN: Persistent memory for Claude Code using Mem0

https://github.com/0xtechdean/claude-code-mem0
1•0xtechdean•19m ago•0 comments

Meeting could have been an Email

https://substack.com/inbox/post/182399060
1•todsacerdoti•20m ago•0 comments

Finite Field Arithmetic (2017)

https://www.loper-os.org/?p=1913
1•turtleyacht•25m ago•0 comments

Tabular Thinking and Graph Thinking: Essential Mental Models

https://zaferbalkan.com/tabular-thinking-graph-thinking/
1•feldrim•31m ago•0 comments

Launch a Secure and Scalable P2P Crypto Exchange Platform

https://cryptiecraft.com/p2p-crypto-exchange-development
1•RileyQuinn•31m ago•1 comments

Open Sourcing Pbcc: A Faster, Leaner Protobuf Compiler for Python

https://harmonic.fun/news
1•ushakov•32m ago•0 comments

Show HN: KaggleIngest –Provide Kaggle competition context to AI coding assistant

https://www.kaggleingest.com/
1•anandvashishtha•34m ago•0 comments

Brainrot Link Scanner – Safe Roblox Private Server Links Checker

https://brainrotlinkscanner.org
1•heihieih•36m ago•0 comments

Building a platform for people who want to change the world

2•brianye•37m ago•1 comments

Trump says US will keep or sell oil seized from Venezuela

https://www.bbc.com/news/articles/c87lnn09yj8o
1•vinni2•39m ago•0 comments

Recessions have become ultra-rare. That is storing up trouble

https://www.economist.com/finance-and-economics/2025/11/10/recessions-have-become-ultra-rare-that...
1•julkali•43m ago•2 comments

Junk Theorems in Lean

https://github.com/James-Hanson/junk-theorems-in-lean
2•saithound•43m ago•0 comments

Once Wall Street's High Flyer, Private Equity Loses Its Luster

https://www.nytimes.com/2025/12/23/business/private-equity-stock-market.html
1•chiffre01•43m ago•0 comments

Fictional Brand Archive

https://fictionalbrandsarchive.com/
2•vidyesh•45m ago•0 comments

List of inventors killed by their own invention

https://en.wikipedia.org/wiki/List_of_inventors_killed_by_their_own_invention
3•thunderbong•47m ago•0 comments

Introduction to LoongArch

https://docs.kernel.org/arch/loongarch/introduction.html
1•susam•47m ago•0 comments

Rex: Safe Rust Kernel Extensions for the Linux Kernel, in Place of eBPF

https://www.phoronix.com/news/Linux-Kernel-Rust-Rex
2•signa11•48m ago•0 comments

Show HN: Automated PostgreSQL backups that verify they work

https://healthybase.cloud
1•kira_aziz•50m ago•0 comments

Show HN: Gen AI Writing Showdown

https://writing-showdown.com/
1•amarble•51m ago•0 comments