When does $V/\operatorname{ker}(\phi)\simeq\phi(V)$ imply $V\simeq\operatorname{ker}(\phi)\oplus\phi(V)$?
I wrote it down in an imprecise way on purpose. The notation above is the linear algebra one: we have $V,W$ vector spaces over a field $\mathbb K$ and a $\mathbb K$-linear map $\phi:V\to W$. Then we know that isomorphism theorem says that $$ V/\operatorname{ker}(\phi)\simeq\phi(V) $$ and we also know that $\operatorname{dim_{\mathbb K}}V= \operatorname{dim_{\mathbb K}}(\operatorname{ker}(\phi))+ \operatorname{dim_{\mathbb K}}(\phi(V))$.
But when do we have that from this it follows that $$ V\simeq\operatorname{ker}(\phi)\oplus\phi(V)\;\;? $$
This was to be more precise on the particular case of the vector space, but it would be nice to know how it goes in every situation in which the isomorphism theorem works (rings homomorphism, groups homomorphism and so on).
EDIT: This question came to my mind originally because I was studying the group of units in a number ring $R$ (i.e. $R=\mathbb A\cap K$, where $\mathbb Q\le K\le\mathbb C$, $[K:\mathbb Q]=n$ and $\mathbb A$ is the ring of algebraic integers of $\mathbb C$). There is a theorem which states that in this case the group of units $U$ is a direct product of a finite cyclic group formed by the roots of $1$, call it $V$ and a free abelian group of finite rank $W$ (the rank is $r+s-1$ where $r$ is the number of real embeddings of $K$ and $2s$ is the number of complex embedding of $K$; and clearly $n=r+2s$). In order to show this, we build a moltiplicative-to-additive group homomorphism $U\to\mathbb R^{r+s}$ called $\log$ (it's a special logarithm), whose kernel is exactly $V$ and whose image is $W\simeq\mathbb Z^{r+s-1}$. From this, my book (Daniel Marcus' Number Fields) let follow that $U\simeq V\times W$, and even though it sounds good, I didn't understand exactly why.
SECOND EDIT: if it could help I'll write better the map $\log$. Consider the $r$ real embeddings of $K$: $\sigma_i$, and the $2s$ complex ones $\tau_j, \bar{\tau_j}$. We can define an additive groups monomorphism $$ \varphi:K\to\mathbb R^n $$ defined by $$ \varphi(x)=(\sigma_1(x),\dots,\sigma_r(x),\Re(\tau_1(x)),\Im(\tau_1(x)),\dots,\Re(\tau_s(x)),\Im(\tau_s(x)))\;\;. $$ Then given an integral basis of $R$, say $\{\alpha_i\}_{i=1}^n$ we can consider the $\varphi(\alpha_i)$'s: they form a basis for $\mathbb R^n$, hence we can consider the $n$-dimensional lattice generated by them: $$ \Lambda_{R}:=\operatorname{Span}(\varphi(\alpha_1),\dots,\varphi(\alpha_n{})):=\langle\varphi(\alpha_1),\dots,\varphi(\alpha_n{})\rangle_{\mathbb Z}\;. $$ It's clear that $\varphi$ sends $R$ onto $\Lambda_R$ hence they are isomorphic. Then consider $$ U\subset R\setminus\{0\}\stackrel{\varphi}{\longrightarrow}\Lambda_R\setminus\{0\}\stackrel{\log}{\longrightarrow}\mathbb R^{r+s} $$ where $\log$ is defined as (given $x=(x_1,\dots,x_n)\in\Lambda_R\subset\mathbb R^n$) $$ \log(x):=(\log|x_1|,\dots,\log|x_r|,\log(x_{r+1}^2+x_{r+2}^2),\dots,\log(x_{n-1}^2+x_n^2)). $$