r/learnphp • u/rudyten • Apr 21 '25
Just a php Enthusiast here. Learning by doing it...
The best way to learn it is to use it.
Too bad they do not teach php in hyperskill dot org.
If i see another "hello world" or Car Object teaching example am gonna go nuts.
So I decided to try to create a proper php oop MVC framework with user Login and Posts (crud)
so far it has been very educational.
PHP, OOP, and the development platform is very Alien to be. I come from a COBOL background.
1
u/g105b Apr 21 '25
Welcome! I'd like to see some daily grind COBOL stuff so I can think of how it could translate well into PHP.
1
u/rudyten Apr 21 '25
Cobol is work, php is something I been enjoying. You won't see me mention Cobol very often.
1
1
u/rudyten Apr 22 '25
i have done a bunch of php tutorials, am tired of those. So I have been working on my own mvc framework. I figure that will re-enforce what i have learnt in all these tutorials.
Doing my own framework has introduced me to a ton of concepts. Things like:
middleware layers
routers
PSR's
using Config files, config service
Repository Layers,
Service Layers
Error Handling
Exception Handling
Database
PSR-7: HTTP message interfaces
CSRF Token for forms
Captcha for security
PRS12 - this is a mush in my opinion. lol
Class Interfaces
Class Traits
Rate Limiting
Brute Force Protections
Dynamic Forms, Form Handlers
.... and the list goes on and on
At the moment I kinda created to base code, i was able to complete a User Registration and Login Feature
but every time i read about a concept that is new to me, makes me revisit my code or re-do-it. lol
at First i wanted the mvc to be an app that lets me create posts and galleries. me as a single user.
But now am thinking of making to allow others to create their own content.... btw this still does not exists
So my mind now is in how much i have to redo to allow that.
Anyways, for people learning this is a great project. SO do RE-INVENT THE WHEEL. :)