v3.21.1

Revenue and Contract Costs - Schedule of Deferred contract acquisition costs (Detail) - USD ($) $ in Thousands | 12 Months Ended |  |
--- | --- | --- | ---
Jan. 31, 2021 | Jan. 31, 2020 | Jan. 31, 2019 | Jan. 31, 2021 | Jan. 31, 2020
Capitalized Contract Cost [Roll Forward] |  |  |  |  |
Capitalized contract costs at beginning of period | $ 3,314 | $ 3,194 |  |  |
Additions to deferred contract acquisition costs | 1,652 | 2,097 |  |  |
Amortization of deferred contract acquisition costs | (2,025) | (1,977) | $ (1,640) |  |
Capitalized contract costs at end of period | 2,941 | 3,314 | 3,194 |  |
Deferred contract acquisition costs, current (to be amortized in next 12 months) |  |  |  | $ 1,693 | $ 1,720
Deferred contract acquisition costs, non-current |  |  |  | 1,248 | 1,594
Total deferred contract acquisition costs | $ 2,941 | $ 3,314 | $ 3,194 | $ 2,941 | $ 3,314

X
- Definition Capitalized Contract Cost, Increase From Contract Acquisitions + References No definition available. + Details
Name: | phr_CapitalizedContractCostIncreaseFromContractAcquisitions
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Capitalized Contract Cost + References No definition available. + Details
Name: | phr_CapitalizedContractCostRollForward
Namespace Prefix: | phr_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of amortization expense for asset recognized from cost incurred to obtain or fulfill contract with customer. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 40 -Section 50 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=68051541&loc=SL49131252-203054 + Details
Name: | us-gaap_CapitalizedContractCostAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount, after accumulated amortization and accumulated impairment loss, of asset recognized from cost incurred to obtain or fulfill contract with customer. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 40 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=68051541&loc=SL49131252-203054 + Details
Name: | us-gaap_CapitalizedContractCostNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after accumulated amortization and accumulated impairment loss, of asset recognized from cost incurred to obtain or fulfill contract with customer; classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 40 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=68051541&loc=SL49131252-203054 + Details
Name: | us-gaap_CapitalizedContractCostNetCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after accumulated amortization and accumulated impairment loss, of asset recognized from cost incurred to obtain or fulfill contract with customer; classified as noncurrent. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 40 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=68051541&loc=SL49131252-203054 + Details
Name: | us-gaap_CapitalizedContractCostNetNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant