The best way to do this have an interface for adding the users.Every u add an user store it in the database.Then in a s eparate file,retreive the users from the database and use PHP's shell exec function to add the user
system(adduser('username')).
Schedule this file in an automation using cron job.