So long as you distribute source code, you can't stop someone from editing it.
It is possible, however, to distribute encoded PHP applications, and these allow you to put in date limitiations, numeric restrictions, or whatever you like. I haven't done this myself, but you might want to take a look at:
Ion Cube
microCODE
Source Guardian
Also, see this PHP Builder article on the subject.