DEV Community

Cover image for My work setup for PHP development

My work setup for PHP development

Ben Sinclair on July 10, 2024

These days the majority of my (programming) work is (in order of SLOC): PHP, Javascript (including Node), CSS, HTML, and shell scripts. I do someti...
Collapse
 
sethsandaru profile image
Seth Phat

That sounds like a lot of stuff to me šŸ„¹

I love the minimal setup, I only need to install these: Herd, MySQL, nvm (yes I don't like Docker on my local machine), and TablePlus.

Dev mode: php artisan serve, npm run dev and that's all

Ah yes, count PHPStorm in, everything I need is already included in that awesome IDE.

I have no problem bringing my MacBook anywhere (travel, coffee, etc), can ensure I have at least 9hrs of battery

Collapse
 
arcahyadi profile image
arcahyadi

Same, sounds too much
Php is pretty straightforward kind of languages šŸ˜…

Collapse
 
millsoft profile image
Michael M

tableplus

not sure how good tableplus is, but phpstorm has a nice db client included.

Collapse
 
moopet profile image
Ben Sinclair

Tableplus is ok, but it's not free software. I guess neither is PHPStorm :) I prefer to stick to the free side of things.

I use DBeaver for cross-platform database shenanigans with multiple configurations, but tbh if I have command-line access I prefer that.

Collapse
 
sethsandaru profile image
Seth Phat

true, however, tablePlus will come in really handy for managing multiple databases and environments (and I have 10+ different projects).

Super lightweight with cool features, worth the investment :D

Collapse
 
ingosteinke profile image
Ingo Steinke, web developer

I use alternative setups, depending on the project, team, and situation. VSCode (or Codium) is lightweight, still quite powerful, but on my default machine, I use PhpStorm with plugins like PHP Annotations, Shopware, Shopware 6 Toolbox, SonarLint, Symfony Support, many other intergrations for static analysis and code completion are already integrated. My hardware is a Linux Laptop with Ubuntu Budgie, but I also used Linux Mint and a MacBook. I have an external monitor that I can connect if I really need more screen space, but despite focusing on frontend web development, I'm mostly content with my laptop screen.

Collapse
 
jlangz profile image
Jakob Langseth

Thanks for the article! Not a ton of love for PHP setups these days.
I donā€™t work much with PHP in my job these days, but still tinker to stay up to date.

Any particular reason you went with DDEV over Lando or Docksal for docker management?

Collapse
 
moopet profile image
Ben Sinclair

Nope. I never really researched them, but ddev was the recommended way of running Craft (I think) at the time and we stuck with it.

Collapse
 
alexk profile image
Alex Kaul • Edited

Thanks for sharing your stack!

Another productivity app you might be interested in (especially if you work on multiple projects): Freeter. It allows to organize web apps, files & folders, urls, etc by projects and workflows and stay focused on what matters at any given moment. Free & open-source.

A quick post on how I boosted my productivity with it: dev.to/alexk/how-i-boosted-my-prod...

Collapse
 
moopet profile image
Ben Sinclair

That looks really cool.

It's not for me since I do 99% of my stuff in the terminal anyway, but it's a smart idea. I do sometimes use Ferdium to group together all my different chat/email web clients into one glorious electron whole, though, which is like part of what Freeter seems to do.

Collapse
 
dzelenika profile image
Damir Zelenika

Too complex and too heavy for me. I work on an web development project and all what I use is LTS Ubuntu powered laptop (16 GB RAM and AMD Ryzen 5) with VSCode and few plugins.

Collapse
 
moopet profile image
Ben Sinclair

A few people have mentioned that it's complex.

I'm perfectly fine just using Vim and a browser, I just like to be able to do it easily from wherever I am and to switch between any of the projects I work on quickly.

Collapse
 
fausto_alberto_c7a2695c82 profile image
Fausto Alberto

Great idea the kitchen table, iĀ“ll move my setup to the kitchen, i use to eat a lot when iĀ“m working.

Collapse
 
martinbaun profile image
Martin Baun • Edited

Hi Ben, thanks for sharing! I got a tip to use .editorconfig file, turned out to be a great idea :)

Collapse
 
samandar_abduraxmonov_0ec profile image
Samandar Abduraxmonov

That's cool I have only one laptop with ubuntu, and additional monitor which I don't use most of the cases, the truth is I can't concentrate on two things at the same time.
I guess Ddev is not for me cause Docker would enough for me. I have used many OS systems and I prefer Linux))

Collapse
 
maxyudin profile image
Max Yudin

I have a robot to clean my parquet. Should I paste here all the information he got by sensors, or let him describe everything by himself?

Collapse
 
moopet profile image
Ben Sinclair

I'd love it if you pasted the sensor information and explained its relevance.

Collapse
 
billydev9821 profile image
Billy

Thanks for your article. It is really help to me.

Collapse
 
tsolan profile image
Eugene

Good, but too much as for me.
Mac, nvim, iterm2 and Iā€™m ready to go.

Collapse
 
arcahyadi profile image
arcahyadi

Sounds too much for me

I just install laragon and neovim, and ready to go šŸ„²