These things are not unique and certainly you are not the only one who has faces them. I can recall three to five times when I had completely lost the vibe about programming, it become just an obligation for my job. I found it hard to even look at code in my free time.
Fast forward few weeks, I started reading specs of MP3 format and created a reader of ID3 tag in PHP[1] and I am back to normal, the obsession about coding is back as it.
As @serji tells, find something new, try to create something about it and its just matter of some time when your passion will be back as usual. Good luck.