Who was the Last King of France?

The last King to rule France was King Louis-Philippe the 1st. His rule ended in 1848. However Napoleon the 3rd who was basically a General ruled after that but he was considered a Monarch.