A philosophy of life is any general attitude towards, or philosophical view of, the meaning of life or of the way life should be lived.
“philosophy of life” means a mental framework for understanding how the world works and how you fit into the world.
The philosophy of life would include things like how you decide what is “good” and “bad”, what “success” means, what your “purpose” in life (including if you don’t think there is a purpose), how we should treat each other, etc.