This question already has an answer here:
Creating a geometry in Postgis is fairly simple:
These lat/lon should be in decimal degrees format like
Is there a way/function to enter them in the degrees and decimal minutes format provided by NMEA $GPRMC sentences like
Of course you can convert them in php or nodejs; but it would be easier (faster) to have it natively in Postgis.