r/PHPhelp • u/levii831 • Jun 05 '26
Learning PHP for my summer internship
hey, i have a question guys. most of thetutorial i found in YT use the XMAPP or something, it bundled a lot of things right? i am coming from python myself, and do you have any tutorial recommendations that teach PHP from it's own standalone interpreter (idk if this is the right term or not. in c++ it is like gcc or sth, and python can be python itself or anaconda)?
5
Upvotes
7
u/roastedcof Jun 05 '26
You don't need XAMPP (or Laragon) to learn PHP, it's just a bundle that includes PHP, Apache, MySQL etc so beginners can get a dev environment running quickly.
Think of PHP itself as the equivalent of the Python interpreter. You can download PHP alone and run scripts from the command line:
For tutorial I'd recommend Laracasts' PHP for beginners series.
3
u/AmiAmigo Jun 05 '26
Download PHPStorm and Download separately PHP
11
u/Only-Discussion9421 Jun 05 '26
Use Docker + DDEV instead of XAMPP
1
u/levii831 Jun 05 '26
thanks for all the great answers! checking through them all!
4
u/ray_zhor Jun 05 '26
Look into laragon instead of xampp
3
u/ultra_blue Jun 05 '26
Docker.
2
u/Cheap-Try-8796 Jun 05 '26
Look up Wampoon. XAMPP is not being updated anymore.
2
u/ggnndd12 Jun 05 '26
Sure, php comes with an interpreter. It’s usually invoked by doing $ php <myscript> on the command line.
Highly recommend doing this on a Linux box/vm.
PhpStorm is a nice ide (although paid). You can use Xdebug with it to get all the usual debugging features.
2
u/HongPong Jun 05 '26
as noted ddev which goes with docker is much more modern than xampp
2
u/independentMartyr Jun 05 '26
Funny, I'm learning python to move away from php 😄
1
u/xreddawgx Jun 05 '26
Its fine to use wamp or xamp. All it does is let you run php code offline in your web browser so you can see what it does. Because php is a web server language, Wamp or xamp simulate a web server. Dm me for help to server it up
1
u/equilni Jun 05 '26
As some noted, you can download PHP and run the development server.
PHP comes with SQLite so you have a database you can use.
SQLite needs the extra step to enable foreign keys, so if using the PDO interface (I recommend over the SQLite3), you could do after the connection:
For tutorials, I recommend Program with Gio's PHP 8 course. I have a proposed structure to learn with this that also includes other links to sources that can help.
1
u/Xia_Nightshade Jun 07 '26
Check out Laravel Herd
I’m not a fan at all, yet I have to admit it’s one of the easiest ways to get PHP setup on a fresh computer
1
u/Mike_L_Taylor Jun 08 '26
if you're on Windows I recommend ForgeKit
It's new, better and more stable than Xampp, no popups like Laragon and no hidden configs like Laravel Herd. It has everything you need.