frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Whisker – Self hosted e-commerce cart, pure PHP, zero dependencies

2•eLohith•3h ago
Hi everyone,

I built Whisker because setting up a simple online store shouldn't require WordPress, Composer, or $39/month SaaS fees. It's a self hosted e-commerce cart in pure PHP + MySQL with no external dependencies.

Upload to any shared hosting, run the 6-step web installer, start selling. That's it.

What it does: product catalog with variants (Size × Color with individual SKU/price/stock per combo), 4 payment gateways (Razorpay, Stripe, CCAvenue, crypto), multi-currency, admin dashboard, order management, invoices, customer accounts, SEO engine with JSON-LD product schema, CSV bulk import, support tickets, coupon system. Security: PDO prepared statements, bcrypt, CSRF, session fingerprinting, webhook signature verification, login rate limiting, upload MIME+extension validation.

~130 files, 25 tables, runs on PHP 8.0+ and MySQL 5.7+.

Demo: https://whisker.lohit.me

GitHub: https://github.com/WhiskerEnt/Whisker-Cart

I'd appreciate any feedback on the architecture or security. Happy to discuss technical decisions.

Comments

fcarletti•1h ago
That’s seems to have give you a lot of fun and learnings, writing everything by yourself forces you to understand how things work, kudos for that!

The code is very well organized, I’m on my phone and could easily navigate it.

But some stuff twists my nose: 1. No dependencies is cool up to some point, I personally do not try that so I avoid reinventing the wheel. You are prone to have many bugs the community already solved, the trade off end up not being worth the hassle.

2. I see you have many classes but many ones with only static methods. That’s basically global functions that can’t be easily mocked for unit tests and create highly coupled code.

3. Lack tests. Even though you may know the functionality/code from top to bottom, no tests make you prone to break unrelated stuff when writing new code.

Again, nice to see it, awesome you shared! If you want to step up the game https://phptherightway.com/ has a lot of material and references for that.

Tell HN: I'm 60 years old. Claude Code has re-ignited a passion

918•shannoncc•19h ago•794 comments

Ask HN: Can we talk about AI Astroturfing?

8•overgard•1h ago•9 comments

Whisker – Self hosted e-commerce cart, pure PHP, zero dependencies

2•eLohith•3h ago•1 comments

Ask HN: How many of you hold an amateur radio license in your country?

74•ToddWBurgess•4d ago•95 comments

Ask HN: What career will you switch to when AI replaces developers?

12•DGAP•4h ago•10 comments

Ask HN: Anyone else feel this community has changed recently?

32•kypro•20h ago•19 comments

Should AI web agents skip sponsored/ad results by default?

3•ilyasJosef•15h ago•4 comments

Ask HN: Doctor with software development experience – careers combining both?

4•frank-cheynne•10h ago•2 comments

Tell HN: The proposed KIDS Act (HR 7757) effectively mandates biometric browsing

14•fokdelafons•23h ago•0 comments

Ask HN: Best way to implement logging and audit trails for AI apps?

4•devstatic•11h ago•0 comments

Ask HN: How are you using multi-agent AI systems in your daily workflow?

14•paifamily•1d ago•13 comments

$1k and the difficult future that AI has left for many

3•01-_-•8h ago•2 comments

Turns out making games is the easy part

5•clamlotus•20h ago•3 comments

Ask HN: Do You Have a Homelab?

12•ricardbejarano•1d ago•5 comments

Ask HN: Do You Enjoy Your Career in Tech Nowadays?

27•karakoram•1d ago•27 comments

Are there any companies who are anti-AI?

5•anti-ai-dev•22h ago•3 comments

Ask HN: Anyone fought a big corp over IP theft courts?

6•NatalijaAAD•1d ago•0 comments

Self taught gen-xers with senior dev/pm exp. Where's my imposter syndrome team?

3•_hugerobots_•1d ago•3 comments

Ask HN: Why do we still buy things by browsing catalogs?

5•dannythecount•1d ago•7 comments

I started making money online in 10th grade – some lessons about capital

5•udit_50•1d ago•1 comments

Ask HN: Has anyone noticed the fear-driven prompt suggestions that GPT5.3 makes?

14•cedarscarlett•2d ago•8 comments

Ask HN: How are LLMs supposed to be used for warfare?

5•sirnicolaz•1d ago•8 comments

Tell HN: Digital Ocean has run out of GPU droplets

17•nathannaveen•3d ago•4 comments

Ask HN: If your project is free, what are you building and why keep it free?

11•LeanVibe•3d ago•23 comments

Self-Learning Customer Marketing

3•davismartens•1d ago•0 comments

I lost my ability to learn anything new because of AI and I need your opinions

22•dokdev•3d ago•28 comments

Ask HN: What's your experience self-hosting in 2026?

27•rustcore•3d ago•11 comments

How do I get startups to use my open-code project?

5•ErezShahaf•1d ago•13 comments

Amazon degraded shopping- you have to put in cart to see the price

15•talkingtab•2d ago•13 comments

Ask HN: What will OpenAI employees do now who have signed notdividedorg petition

17•Imustaskforhelp•4d ago•16 comments