Learning PHP reduces to one loop: build a page that accepts input, stores it somewhere, and shows it back changed. Every early confusion is a piece of that loop, and the questions below are the ones that stall it most often. Short answers first, then the reasoning you can use on the next problem.
Do I need a framework before I understand plain PHP?
No, and starting with one usually slows you down. A framework hides the request cycle behind routing and configuration, which is exactly the part worth seeing once by hand. Write a page that reads $_GET, includes a header and footer, and queries a table directly. After that, a framework looks like a sensible arrangement of ideas you already recognize.
The exception is a job that requires a specific framework now. In that case learn the minimum to ship, and spend your evenings filling in the plain-PHP gaps, because the framework will not explain them.
How much HTML, SQL, and terminal work comes first?
Less than you fear. HTML enough to write a form, a table, and a list, with proper labels and escaping. SQL enough to select, insert, update, delete, and join two tables on a key. Terminal enough to run a script, start a local server, and install a dependency. Each of those is an afternoon, not a course.
What matters more is the boundary between them: PHP prepares the data, HTML shows it, SQL fetches it. When something looks wrong, knowing which of the three is lying saves hours.
When should object-oriented PHP enter the picture?
As soon as you notice the same set of functions traveling together with the same array of settings. That is the moment a class earns its keep, because the data and the behavior belong in one place. Start with properties, a constructor, and two methods, then add autoloading so file names and class names agree.
Do not begin with inheritance diagrams. Composition, where one object holds another, solves most beginner problems and is easier to reason about than a hierarchy.
How do I practice without copying tutorials?
Build tools you would actually use: a guestbook, a link shortener, an expense log, a page that tracks books you lent out. Follow a tutorial once, then rebuild the same idea with one changed requirement, such as adding search or a second table. The change is where learning happens, because no tutorial covers it.
Keep every project in its own folder with a short README. By the fourth one you will be reusing your own code instead of searching for someone else’s.
How long until I can build something real?
It depends on how many hours you spend building versus watching. Someone who ships a small form-and-database page in the first week is already building something real; the gap is polish, not permission. Pick a project small enough to finish in two weekends and finish it before starting another.
Deployment pipelines, microservices, advanced caching, and framework internals can all wait. Version control and error reporting cannot, because both make every later mistake cheaper to fix. Learn those two early and the rest arrives when a project demands it.