v3.21.1

Debt and Finance Lease Liabilities - Schedule of long-term debt maturities (Detail) - USD ($) $ in Thousands | Jan. 31, 2021 | Jan. 31, 2020
--- | --- | ---
Total |  |
2022 | $ 4,965 |
2023 | 3,629 |
2024 | 2,284 |
2025 | 302 |
2026 | 155 |
Total debt and finance lease liabilities, before original issue discount | 11,335 | $ 24,801
Debt |  |
2022 | 1,145 |
2023 | 439 |
2024 | 49 |
2025 | 0 |
2026 | 0 |
Total long-term debt payments | 1,633 |
Finance Leases |  |
2022 | 3,820 |
2023 | 3,190 |
2024 | 2,235 |
2025 | 302 |
2026 | 155 |
Total finance lease liabilities | $ 9,702 | $ 3,612

X
- Definition Finance Lease, Liability, Payments, Due Year Five, Discounted Obligation + References No definition available. + Details
Name: | phr_FinanceLeaseLiabilityPaymentsDueYearFiveDiscountedObligation
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Finance Lease, Liability, Payments, Due Year Four, Discounted Obligation + References No definition available. + Details
Name: | phr_FinanceLeaseLiabilityPaymentsDueYearFourDiscountedObligation
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Finance Lease, Liability, Payments, Due Year One, Discounted Obligation + References No definition available. + Details
Name: | phr_FinanceLeaseLiabilityPaymentsDueYearOneDiscountedObligation
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Finance Lease, Liability, Payments, Due Year Three, Discounted Obligation + References No definition available. + Details
Name: | phr_FinanceLeaseLiabilityPaymentsDueYearThreeDiscountedObligation
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Finance Lease, Liability, Payments, Due Year Two, Discounted Obligation + References No definition available. + Details
Name: | phr_FinanceLeaseLiabilityPaymentsDueYearTwoDiscountedObligation
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Finance Leses + References No definition available. + Details
Name: | phr_FinanceLesesAbstract
Namespace Prefix: | phr_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Long-term Debt And Finance Lease Obligations, Maturities, Repayments Of Principal In Year Five + References No definition available. + Details
Name: | phr_LongTermDebtAndFinanceLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFive
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Long-term Debt And Finance Lease Obligations, Maturities, Repayments Of Principal In Year Four + References No definition available. + Details
Name: | phr_LongTermDebtAndFinanceLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearFour
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Long-term Debt And Finance Lease Obligations, Maturities, Repayments Of Principal In Year One + References No definition available. + Details
Name: | phr_LongTermDebtAndFinanceLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearOne
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Long-term Debt And Finance Lease Obligations, Maturities, Repayments Of Principal In Year Three + References No definition available. + Details
Name: | phr_LongTermDebtAndFinanceLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearThree
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Long-term Debt And Finance Lease Obligations, Maturities, Repayments Of Principal In Year Two + References No definition available. + Details
Name: | phr_LongTermDebtAndFinanceLeaseObligationsMaturitiesRepaymentsOfPrincipalInYearTwo
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Long-term Debt And Lease Obligations, Gross, Including Original Issue Discount + References No definition available. + Details
Name: | phr_LongTermDebtAndLeaseObligationsGrossIncludingOriginalIssueDiscount
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Total Debt Instruments + References No definition available. + Details
Name: | phr_TotalDebtInstrumentsAbstract
Namespace Prefix: | phr_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_DebtInstrumentsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Present value of lessee's discounted obligation for lease payments from finance lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=121609121&loc=SL77918701-209980 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121603541&loc=SL77918627-209977 + Details
Name: | us-gaap_FinanceLeaseLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-04.(a)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6802200&loc=d3e1835-112601 + Details
Name: | us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-04.(a)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6802200&loc=d3e1835-112601 + Details
Name: | us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-04.(a)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6802200&loc=d3e1835-112601 + Details
Name: | us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-04.(a)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6802200&loc=d3e1835-112601 + Details
Name: | us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-04.(a)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6802200&loc=d3e1835-112601 + Details
Name: | us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant