Selam, bir form hazırlayip post ile kullanıcı adı ve şifre bilgilerini alabilirsin yada php cli modda fgets(STDIN) kullanabilirsin.