iPhone Lock/Turn off App?

Does anybody know of an app that will allow you to sleep/wake and reset your iphone using an app?

My sleep/wake button is not long for this world.

I haven’t been able to find anything using the itunes search although I saw something in a google search that seemed to be a jailbroken only app maybe?

The only way I can find requires access outside the program’s sandbox. You’d need a hacked device and that app (it simply tells init to go into reboot runlevel).