The requirements are rather simple but rigid.
To be eligible for a PFD, you must have been an Alaska resident for the entire calendar year preceding the date you apply for a dividend.
https://pfd.alaska.gov/FAQ