Three files on that laptop hold the same database password, and two of them are out of date. That is what disorganized PHP supplies look like: not a messy desk, but duplicated information with no single owner. Getting organized is mostly deciding where each kind of thing lives, then refusing to let a second copy appear.
Give every project one root and one README
Keep all code under a single directory, one folder per project, named for what it does rather than when you started it. Inside each, a README with four lines: what it does, how to run it, where it is deployed, and what it depends on. That file is the first place you look after a month away.
Put the start command in that same file, written out, so you never have to reconstruct it from terminal history. A README with one wrong line is still better than a correct memory you cannot check.
Archive finished projects into a separate folder rather than deleting them. Old code is a reference library, and the folder boundary keeps it out of your daily search results without losing it.
Keep credentials in one place that never gets shared
Put database passwords and API keys in a single configuration file outside version control, with a committed example file showing the keys but not the values. Load the real file at startup. When a password changes, it changes once, and the example file tells the next person what to fill in.
Write down where that file lives in the README. A secret you cannot find is worse than a secret in the wrong place, because it invites a second copy.
Use the same names everywhere
Predictable names save more time than clever ones. Pick a convention for configuration files, for test files, and for database dumps, and apply it across projects. If every project has a config.php, a tests folder, and a schema.sql, you stop hunting and start working.
Name files with dates as year-month-day so they sort correctly. Name versions with numbers that increase, not words like final and final-new. The goal is that you can guess a filename correctly before opening the folder.
Clear the workspace in five minutes a week
At the end of the week, close every editor tab, delete the scratch files that turned out to be nothing, and commit the work that matters. Empty the downloads folder of library zips and documentation PDFs. A short, regular pass keeps the pile from becoming a project of its own.
Keep one notebook, paper or digital, for commands you had to look up twice. That single list replaces a dozen scattered notes and is the most valuable supply in the whole setup.
Organization is not decoration. It is the reason a six-month-old project still opens in one command, and the reason a lost password costs one lookup instead of an afternoon.