v3.23.1

Acquisitions - Schedule of consideration paid (Details) - USD ($) $ in Thousands |  |  | 12 Months Ended
--- | --- | --- | ---
Dec. 03, 2021 | Jan. 08, 2021 | Jan. 31, 2023 | Jan. 31, 2022 | Jan. 31, 2021
Business Acquisition [Line Items] |  |  |  |  |
Cash paid for acquisition of QueueDr, net of cash acquired per statement of cash flows |  |  | $ 0 | $ 34,423 | $ 6,510
Insignia |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |
Cash consideration paid on acquisition date | $ 37,112 |  |  |  |
Less cash acquired | (2,689) |  |  |  |
Cash paid for acquisition of QueueDr, net of cash acquired per statement of cash flows | $ 34,423 |  |  |  |
QueueDr |  |  |  |  |
Business Acquisition [Line Items] |  |  |  |  |
Cash consideration paid on acquisition date |  | $ 5,773 |  |  |
Payments of acquisition date fair value of contingent consideration |  | 954 |  |  |
Less cash acquired |  | (217) |  |  |
Cash paid for acquisition of QueueDr, net of cash acquired per statement of cash flows |  | $ 6,510 |  |  |

X
- Definition Payments To Acquire Businesses Including Contingent Consideration, Net Of Cash Acquired + References No definition available. + Details
Name: | phr_PaymentsToAcquireBusinessesIncludingContingentConsiderationNetOfCashAcquired
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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_BusinessAcquisitionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash inflow associated with the acquisition of business during the period (for example, cash that was held by the acquired business). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3179-108585 + Details
Name: | us-gaap_CashAcquiredFromAcquisition
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash outflow, made soon after acquisition date of business combination, to settle contingent consideration liability. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (d) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentForContingentConsiderationLiabilityInvestingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(1) -URI https://asc.fasb.org/extlink&oid=126975305&loc=d3e6927-128479 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126954810&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=phr_InsigniaHealthLLCMember
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: |