I am looking for any script example of php user registration and login functionality using class
Any useful link will be appreciate.
It sounds like your question can be answered with a simple search:
Do you have a more specific question or code that you would like feedback on?
You can use a Controller class to handle login actions for users/guests, there are many ways to achieve this.