As @Andreas has pointed out, the function $f(n) = (\varphi^n - (-\varphi)^{-n})/\sqrt 5$ is not real-valued unless $n$ is an integer. So typically one would be interested in replacing $f(n)$ with its real part, which is well-defined and entire:
$$ g(x) = \Re f(x) = \frac{\varphi^x - \cos(\pi x)\varphi^{-x}}{\sqrt 5} $$
See also the discussion at previous Question Non integer Fibonacci numbers and its earlier linked Question Interpolated Fibonacci numbers - real or complex?
In any case $g(x)$ is real-valued for $x$ real and monotone increasing for $x\ge 2$, so solutions to $g(x) = k$ can be uniquely determined for $x\in[2,+\infty)$ for all integers $k\ge 1$. Although $g(x)$ is a transcendental function, it is analytic in the complex plane; Newton iterations will converge rapidly given reasonable initial estimates for root $x$.
In particular since the OP commented on Servaes' Answer, "$f(n)$ is always integer in my problem," the initial estimate given there will be adequate for large $k\gg 1$:
$$ x \approx \log_\varphi (k \sqrt 5) $$
For modest positive integers $k$ it might be worthwhile to identify whether $k$ is Fibonacci, and if not, to bracket $k$ with its nearest lower/upper Fibonacci numbers to interpolate an initial guess.