My lock button is broken, how can I power my iPhone on AND off?

My lock button is broken, how can I power my iPhone on AND off?

To power on plug it and power off not sure onli way let it die

Have a look over here: http://grownupgeek.com/how-to-turn-off-iphone-without-power-button… This page has working ways to switch OFF or ON your iPhone without a power button. Hope you find this useful.