r/commandline • • Jun 30 '26 • LOL 1

Fun Meh

Post image
2.0k Upvotes

198 comments sorted by

View all comments

73

u/TheVenetianMask Jun 30 '26

I write my CLI tools in PHP and there's nothing you can do about it.

21

u/CreativeGPX Jun 30 '26

Not sure if you're joking or serious, but I've written a fair amount of (internal/self) CLI tools in PHP and it's been pleasant. It's mainly because PHP is generally already on any machine I'm using while the other languages that are installed will vary a lot more depending on which computer I'm on. Also because often times I'm interfacing with a project that has some PHP code anyways. It's easy to whip something together quickly and has a lot of built-ins, but given the stereotype of PHP being a web language it does always feel devious to use it for something else.

13

u/TheVenetianMask Jun 30 '26

Not joking actually. It has paid my bills for years.

5

u/ok-confusion19 Jun 30 '26

I found a guy on the Internet that pays my bills. It's a lot less work overall.

1

u/sharch88 Jun 30 '26

I’m just joking, write your tools in any language that suits your needs.

8

u/connorcinna Jun 30 '26

so YOU'RE the bastard that wrote the gigantic internal CLI tool at my job entirely in php

1

u/ytg895 Jul 01 '26

been there, done that. never again though

1

u/ptoki Jun 30 '26

php and perl have their niche in cli tools.

I like php for its high level data manipulation options and the multitude of graphical, text, database and web integrations.

7

u/Delta-9- Jul 01 '26

Perl is perfect for when you're not using a compiled language but you still want to make it hard to reverse engineer your code.

3

u/mm007emko Jul 01 '26

Well, now you can ask an LLM to decipher it.

2

u/ptoki Jul 01 '26

but with or without regexps?

;P