r/PHPhelp • u/Aligern • May 22 '25
New php dev
Hello, i’ve got the opportunity to study php with a company internship , now i’m mostly a newbie into development as i only studied it one year ago with a professional web development course. I learnt only the base stuff about HTML, CSS, JS, VUEJs, PhP, MYSQL and Laravel. I have 8 months to learn php and their WFM application. What should i do? They want me to learn PHP without any framework and i have no clue from where to start, any advice or tips would be appreciated!
6
Upvotes
5
u/colshrapnel May 23 '25
I'd suggest PHP&MySQL book by Jon Duckett. You should be able to finish it i 8 months, especially if you already know base stuff, so can skip some first chapters. In the end you will be able to create a quite decent app with plain PHP. You can check the code of the final app (and all other stages as well): https://github.com/astratow/PHP_MySQL-Jon-Duckett/tree/main/section_d/c17
4
u/Open-Carry3751 May 23 '25
I went straight to the comments just to see if it was like Stackoverflow, but no! Nice, friendly comments and not a single rude one. Good job, guys 🥰
3
u/SVP988 May 23 '25
It's better to use XAMPP It has all in one package apache, mysql, php, can run your projects.
Think of a problem and solve it.
Create small projects around the problem the company is working on. Generate lists, sort edit save.
I assume most of your job will be some sort of data handling so objects and arrays has to be your friend :)
Good luck with it!
2
u/ryantxr May 22 '25 edited May 22 '25
Start here: https://www.php.net/downloads.php
Make a goal to produce a webpage that says "Hello".
First, install it on your computer.
Create a file index.php
Put this content into the file:
if you are on linux or mac, you can then type
php -Sto run it and bring it up in the browser.If you are on Windows, I think you can use WSL.
EDIT:
You can bookmark this:
https://www.notion.so/Getting-Started-with-PHP-1fb5af738ec6804b8b99c5e47f569400?pvs=4
2
u/eurosat7 May 23 '25
Get their "wfm" code and analyse it. Start with autoloading, then config, database abstraction, authentication/security, routing, form handling, validation, templating, translation, assets (css, js, img, font)... Also might be interesting to look at their tooling (phpstan, phpunit, ...) and code style (php-cs-fixer, per-cs-2.0) and search for readme files explaining basic concepts of their preferred way of doing software architecture (events, strategy pattern, ioc, kiss, soc, domain, hexagonal,...).
2
u/MateusAzevedo May 23 '25
Besides Jon Duckett's book, also consider Program with Gio and PHP for Beginners from Laracasts (both on YouTube). The key benefit of these courses is that you'll build a working application using object oriented programing that resembles an application written with a framework, giving you a good foundation to understand real applications and frameworks later on.
2
u/denofsteves May 23 '25
Wray has a beginner series that actually covers some advanced topics, might help you. https://laracasts.com/series/php-for-beginners-2023-edition
2
u/[deleted] May 23 '25
[removed] — view removed comment
2
u/[deleted] May 23 '25
[removed] — view removed comment