Adding token storage to PHP sample