A summons is an order in writing, issued and signed by a magistrate or a peace officer in the name of the state, stating the offense charged and the name of the alleged offender, and commanding him to appear before the court designated in the summons at the time and place stated in the summons.