v3.23.1

Equity-based compensation - Stock-based compensation (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jan. 31, 2023 | Jan. 31, 2022 | Jan. 31, 2021
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Total stock based compensation | $ 60,147 | $ 36,723 | $ 13,489
RSUs |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Total stock based compensation | 42,214 | 24,222 | 10,693
Liability awards |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Total stock based compensation | 7,641 | 7,055 | 0
PSUs |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Total stock based compensation | 7,282 | 2,389 | 93
Stock options |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Total stock based compensation | 1,489 | 2,294 | 2,703
ESPP |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Total stock based compensation | $ 1,521 | $ 763 | $ 0

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

X
- Definition Amount of cost expensed and capitalized for award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockUnitsRSUMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=phr_LiabilityAwardsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_PerformanceSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_EmployeeStockOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_EmployeeStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |