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

β€’
β€’

Rust + PHP-FFI

β€’ β€’

46

β€’
β€’

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

β€’
β€’