CodeWithSushil
CodeWithSushil

Sushil Kumar

@CodeWithSushil

A self-taught πŸ•ΈοΈ Web Developer πŸ‘¨πŸ»‍πŸ’» || Linux 🐧 Lover || Open source 🌐 contributor πŸ‘₯ || PHP/Laravel 🐘 and JS fanboyπŸ‘¦πŸ» || Creator of 🌿 Supabase-PHP Client 🀝

196 Posts 2K Views

  • No matching results...
  • Searching...

/ 255

Poll Options

Pinned

A common issue in the PHP ecosystem isn’t the language itself — it’s the hosting environment.

Many hosting providers offer shared hosting powered by Apache, but the server is often poorly configured. Without proper tuning (MPM settings, OPcache, keep-alive, compression, etc.), even well-written PHP applications can feel slow.

Performance problems are frequently blamed on PHP, while the real bottleneck is misconfigured infrastructure.

Good configuration can make a huge difference.

44


PHP Enum and Match expression are readable, reusable, and clean syntax.

<?php

enum Operation
{
case Increment;
case Decrement;
}


$result = match($op) {
Operation::Increment => $value + 1,
Operation::Decrement => $value - 1,
};


#PHP8 #enum #match #phptips

92

I finally solved my Composer hanging/stuck issue πŸš€
Set up a local proxy server and routed downloads using PHP stream functions.

Added real-time debugging with log files to trace where it was freezing.

Result: smooth installs, zero guesswork 😌

#PHP #composer #packagist #proxy

91

DSA vs Web Development vs System design

57

Why I stopped using Node.js for most of my projects πŸ‘‡

I got tired of installing a 3rd-party package for every small feature.

Want sessions? package.
File upload? package.
Validation? package.
Auth? 4–5 packages.
Security? More packages.

I just want to build — not manage dependencies.

PHP gives me sessions, cookies, forms, security, routing basics built-in.
Less boilerplate, fewer risks, faster shipping.

Node.js is powerful for real-time & microservices, but for rapid secure web dev — PHP feels more productive for me.

Not hate. Just choosing the tool that lets me focus on creating, not configuring.

#webdev #NodeJS #PHP #programming #devlife

30