stick with PHP or move this project to Next.JS
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
I have a quick question, I’m currently prototyping an idea using this php setup - https://github.com/Shirisu/autoPetiteTCGScript. Quick overview is it’s a script that allows custom made trading card collecting, pack opening, trading and games to earn more packs. I don’t want any NfT stuff, I just want to make cards and then people collect them!
Now php isn’t my language of choice, and I would love to redesign this in JS and more than likely Next.js as a personal project. Is this scope achievable? Easier? Or should I spend a few weeks/month or 2 learning php more in depth?
Thanks
Now php isn’t my language of choice, and I would love to redesign this in JS and more than likely Next.js as a personal project. Is this scope achievable? Easier? Or should I spend a few weeks/month or 2 learning php more in depth?
Thanks
21 Replies
@Transvaal lion I have a quick question, I’m currently prototyping an idea using this php setup - https://github.com/Shirisu/autoPetiteTCGScript. Quick overview is it’s a script that allows custom made trading card collecting, pack opening, trading and games to earn more packs. I don’t want any NfT stuff, I just want to make cards and then people collect them!
Now php isn’t my language of choice, and I would love to redesign this in JS and more than likely Next.js as a personal project. Is this scope achievable? Easier? Or should I spend a few weeks/month or 2 learning php more in depth?
Thanks
Kawakawa
If I was you, I would NOT consider learning PHP more/even using it more.
I'd invest some time into learning JS, then TS, then React, then move onto Next.
It will save you so much time (and probably also your sanity) in the future.
You should really only think of PHP as almost like a deprecated language.
Transvaal lionOP
Thanks for the quick reply, everything I have ever done has been css/html/js and react, I want to learn next.js next. I just came across this code that is basically everything I want to do, and my minds getting pulled left and right.
I don’t want to reinvent the wheel, especially if the scope to achieve it will be beyond capability for a year or so
Kawakawa
Yeah, just leave PHP behind - it'd be best for your future and more.
@Transvaal lion I don’t want to reinvent the wheel, especially if the scope to achieve it will be beyond capability for a year or so
Kawakawa
Yeah. I mean the only good thing PHP has going for it is Laravel, but even that's really iffy. And then other than that, everything else (on the whole) is mainly better in JS/TS.
Only other thing I know of which PHP serves a purpose for these days is (iirc) Minecraft Bedrock server plugins.
Only other thing I know of which PHP serves a purpose for these days is (iirc) Minecraft Bedrock server plugins.
That's it 

Transvaal lionOP
Appreciate it, I don’t want to go down thelaravel route. I’ll try and dissect the php script and see how things are being achieved and then keep to my initial thought of js/react
Kawakawa
Good luck! ðŸ™
Transvaal lionOP
Thanks appreciate it
Asian black bear
Do you even need to write code to use the php thing?
It looks like a ready to deploy app
Transvaal lionOP
It’s a ready to deploy app in the state that it is in, however there are things that would need changing to suit my needs, card sizes different/ aesthetics/ the way I want to handle making and delivering the cards. Not big things, but enough stuff for me to know a decent amount about the code base
@Transvaal lion It’s a ready to deploy app in the state that it is in, however there are things that would need changing to suit my needs, card sizes different/ aesthetics/ the way I want to handle making and delivering the cards. Not big things, but enough stuff for me to know a decent amount about the code base
Asian black bear
that sounds like a whole lot less work than re-implementing the entire thing in next.js
and as someone who has hacked on a PHP app like that, don't worry you won't become an expert on it
Transvaal lionOP
I might spend a week or so on the php, see where I can get to. I just think a more modern approach might be better long term
@Transvaal lion I might spend a week or so on the php, see where I can get to. I just think a more modern approach might be better long term
Asian black bear
I feel like i have seen a fairly popular GitHub for a react project like this
Transvaal lionOP
Ahhh if you ever come across it let me know, I’ve been looking but all I can find is like 4 or 5 php versions so far