v3.21.1

Acquisitions - Schedule of Intangible Asset Acquired Related to QueueDr Acquisition (Detail) - USD ($) $ in Thousands |  | 12 Months Ended
--- | --- | ---
Jan. 08, 2021 | Jan. 31, 2021
Acquired technology |  |
Acquired Finite-Lived Intangible Assets [Line Items] |  |
Useful life (in years) |  | 5 years
Customer relationship |  |
Acquired Finite-Lived Intangible Assets [Line Items] |  |
Useful life (in years) |  | 10 years
QueueDr |  |
Acquired Finite-Lived Intangible Assets [Line Items] |  |
Identifiable intangible assets acquired | $ 1,780 |
QueueDr | Acquired technology |  |
Acquired Finite-Lived Intangible Assets [Line Items] |  |
Identifiable intangible assets acquired | $ 920 |
Useful life (in years) | 5 years |
QueueDr | Customer relationship |  |
Acquired Finite-Lived Intangible Assets [Line Items] |  |
Identifiable intangible assets acquired | $ 860 |
Useful life (in years) | 10 years |

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of identifiable intangible assets recognized as of the acquisition date. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 55 -Paragraph 37 -URI http://asc.fasb.org/extlink&oid=121600890&loc=d3e2207-128464 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121647850&loc=d3e4845-128472 + Details
Name: | us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_FiniteLivedIntangibleAssetUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_TechnologyBasedIntangibleAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_CustomerRelationshipsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=phr_QueueDrMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |