$\phi''= \phi^2 $ $\phi'\phi''= \phi'\phi^2 $
$\int \phi'\phi'' dx=\int \phi^2 \phi'dx$
$\frac{\phi'^{2}}{2} = \frac{\phi^3}{3} +k $
$ \phi'^{2} = \frac{2 \phi^3}{3} +2k = \frac{2 \phi^3}{3} +c_1 $
$\phi' = \sqrt{\frac{2 \phi^3}{3} +c_1} $
$\frac{\phi'}{\sqrt{\frac{2 \phi^3}{3} +c_1}} =1 $ $\int \frac{\phi'}{\sqrt{\frac{2 \phi^3}{3} +c_1}} dx=\int dx$
$\int \frac{1}{\sqrt{\frac{2 \phi^3}{3} +c_1}} d\phi=x+c_2$
I asked the integral to the wolfram and it includes elliptic integral of the first kind . The solution is here from wolfram integrator. Sorry it seems that there is no easy expression of the solution for that ODE.
You will need to take the solution from wolfram and to put the boundary conditions into that complex equation that wolfram offered and then you need to find $c_1,c_2$. If there is a simplier expression of the solution I would like to learn it.