Converting rotation code to GLM

I have the following code and need the rotation converted to GLM.

Any ideas?

glm::vec3 v = glm::vec3(0, 1 * diameter, 0);

// code needing conversion
v = mat4::getRotation(180.0f / (theta + 1)*(i + 1), 0, 0, 1) * v;
v = mat4::getRotation(360.0f / phi*j, 0, 1, 0)  * v;


vert.at(vert_idx++) =v;