frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: API versioning for Laravel – one codebase, support old versions forever

https://github.com/jay123anta/laravel-api-versionist
1•jay123anta•1d ago
Stripe supports API versions going back to 2014 from a single codebase. Each version is handled by transformation layers, not duplicate controllers.

I built this package to bring that pattern to Laravel.

Each old version gets a transformer class with two methods:

- upgradeRequest() — converts old payload to current format before your controller runs - downgradeResponse() — converts response back to old format before it leaves

The middleware chains them automatically across versions. Your controllers never change.

Supports 4 version detection strategies: URL prefix, header, query param, Accept header. Ships with deprecation headers (Sunset, Deprecation), artisan commands for changelog and audit.

composer require jayanta/laravel-api-versionist

Comments

jay123anta•1d ago
Author here. Stripe's versioning model always impressed me — one codebase, versions going back years. I wanted that pattern in Laravel without the usual copy-paste-controllers approach.

Happy to discuss the design decisions or any edge cases you can think of.

1•vitorlourenco•7s ago

Uber is letting women avoid male drivers and riders in the US

https://www.dexerto.com/entertainment/uber-is-letting-women-avoid-male-drivers-and-riders-in-the-...
2•randycupertino•24s ago•0 comments

Deterministic metrics for requirements quality (IEEE 830, no LLM)

https://github.com/Testimonial/understanding
1•lbihari•1m ago•1 comments

Show HN: MessyData – Synthetic dirty data generator

https://github.com/sodadata/messydata
1•santiviquez•2m ago•0 comments

Tanker War

https://en.wikipedia.org/wiki/Tanker_war
1•softwaredoug•2m ago•0 comments

Helix 02 Living Room Tidy [video]

https://www.youtube.com/watch?v=CAdTjePDBfc
1•sgt•2m ago•1 comments

Un hack me now mate

1•Zelcius•2m ago•0 comments

Show HN: The Mog Programming Language

https://moglang.org
1•belisarius222•2m ago•0 comments

Show HN: OpenClix, Agent friendly, open-source retention tooling

https://github.com/openclix/openclix
2•jace_yoo•2m ago•0 comments

eInk wall remote for HomeAssistant – fed up with tablets and hacked Kindles

https://www.muros.ink/
2•prathammehta•2m ago•1 comments

Show HN: DocTracker – track client documents and send reminders

https://doctracker.app/en
1•bakabegemot•3m ago•0 comments

Models have some pretty funny attractor states

https://www.lesswrong.com/posts/mgjtEHeLgkhZZ3cEx/models-have-some-pretty-funny-attractor-states
1•semiquaver•3m ago•0 comments

Show HN: We built an MCP server so LLMs can self-correct against business rules

https://www.rynko.dev/mcp
1•ksrijith•4m ago•0 comments

Seldom: An Anonymity Network with Selective Deanonymization

https://dl.acm.org/doi/full/10.1145/3794848?af=R
1•maxrmk•5m ago•0 comments

Use /loop to run Claude Code on a Schedule

https://code.claude.com/docs/en/scheduled-tasks
1•thomascountz•5m ago•0 comments

AI agents are coming for government. How one big city is letting them in

https://www.fastcompany.com/91504876/boston-cio-santi-garces-on-ai-agents-mcp-open-data
1•johnshades•5m ago•0 comments

The Government Told Courts It Could Easily Refund Tariffs. Now It Says It Can't

https://www.techdirt.com/2026/03/09/the-government-told-courts-it-could-easily-refund-unlawful-ta...
4•cdrnsf•6m ago•0 comments

How to Track Competitor Pricing Changes Automatically

https://adversa.io/blog/track-competitor-pricing-changes/
1•robinweller•6m ago•0 comments

Canadian employment trends in the era of generative artificial intelligence

https://www150.statcan.gc.ca/n1/pub/36-28-0001/2026001/article/00003-eng.htm
1•jyunwai•6m ago•0 comments

Show HN: A daily arithmetic puzzle with a hidden Hard Mode

https://make24.app
1•kapework•9m ago•0 comments

Breaking macOS Screen Time for fun and profit

https://dunkirk.sh/blog/screentime/
1•clacker-o-matic•9m ago•2 comments

CIA faces furious backlash after hidden document with potential cure for cancer

https://www.dailymail.co.uk/sciencetech/article-15629211/cia-cancer-cure-document-declassified.html
4•Bender•10m ago•1 comments

SSH Config: The File Nobody Reads

https://vivianvoss.net/blog/ssh-config
1•alwillis•10m ago•0 comments

Show HN: Time as the 4th Dimension – What if it emerges from rotational motion?

1•lisajguo•11m ago•0 comments

The internet is being flooded with AI content. How can we tell what is human?

1•01-_-•11m ago•0 comments

Unified Attestation: open-source alternative to Google Play Integrity

https://uattest.net/
1•turrini•11m ago•0 comments

Moltbook: Bot‑Only Network Full of Prompt and Scam Posts Now Monitored

https://youscan.io/blog/moltbook-monitoring/
1•defly•12m ago•0 comments

Ultrasound-Responsive Nanoparticles for Biofilm Treatment

https://pubs.acs.org/doi/10.1021/jacsau.5c01711
1•PaulHoule•13m ago•0 comments

Show HN: Quadratic Intelligence Growth from Logarithmic Routing (QIS Protocol)

https://yonderzenith.github.io/QIS-Protocol-Website/article-architecture-diagram.html
1•chris_trevethan•13m ago•1 comments

OpenAI updates privacy policy as ads expand in ChatGPT

https://searchengineland.com/openai-updates-privacy-policy-as-ads-expand-in-chatgpt-471150
6•speckx•13m ago•0 comments