v3.23.1

Leases (Tables) | 12 Months Ended
--- | ---
Jan. 31, 2023
Leases [Abstract] |
Schedule of operating and finance leases | Supplemental balance sheet information related to operating and finance leases as of January 31, 2023 and 2022 was as follows:
| January 31,
| 2023 |  | 2022
Operating leases: |  |  |
Lease right-of-use assets | $ | 569 |  |  | $ | 2,337 |
Lease liabilities, current | 934 |  |  | 1,281 |
Lease liabilities, non-current | 349 |  |  | 1,276 |
Total operating lease liabilities | $ | 1,283 |  |  | $ | 2,557 |
Finance leases: |  |  |
Property and equipment, at cost | $ | 27,813 |  |  | $ | 27,310 |
Accumulated depreciation | (20,657) |  |  | (15,025) |
Property and equipment, net | $ | 7,156 |  |  | $ | 12,285 |
Lease liabilities, current (included in Current portion of finance lease liabilities and other debt) | 4,926 |  |  | 5,600 |
Lease liabilities, non-current (included in Long-term finance lease liabilities and other debt) | 2,725 |  |  | 7,284 |
Total finance lease liabilities | $ | 7,651 |  |  | $ | 12,884 |
Schedule of lease expense and cash flow information | The components of lease expense for the years ended January 31, 2023, 2022 and 2021 were as follows:
| Fiscal years ended January 31,
| 2023 |  | 2022 |  | 2021
Operating leases: |  |  |  |  |
Operating lease cost | $ | 1,835 |  |  | $ | 1,096 |  |  | $ | 1,766 |
Variable lease cost | 62 |  |  | 223 |  |  | 257 |
Total operating lease cost | $ | 1,897 |  |  | $ | 1,319 |  |  | $ | 2,023 |
Finance leases: |  |  |  |  |
Amortization of right-of-use assets | $ | 5,632 |  |  | $ | 4,636 |  |  | $ | 2,876 |
Interest on lease liabilities | 368 |  |  | 378 |  |  | 326 |
Total finance lease cost | $ | 6,000 |  |  | $ | 5,014 |  |  | $ | 3,202 |
Other supplemental cash flow information for the years ended January 31, 2023, 2022 and 2021 was as follows:
| Fiscal years ended January 31,
| 2023 |  | 2022 |  | 2021
Supplemental cash flow information |  |  |  |  |
Cash paid for amounts included in the measurement of lease liabilities: |  |  |  |
Operating cash used for operating leases | $ | 1,347 |  |  | $ | 1,206 |  |  | $ | 1,629 |
Operating cash used for finance leases | 396 |  |  | 377 |  |  | 326 |
Financing cash used for finance leases | 5,731 |  |  | 4,267 |  |  | 2,630 |
Total | $ | 7,474 |  |  | $ | 5,850 |  |  | $ | 4,585 |
Schedule of maturing lease commitments of operating leases | The following represents a schedule of maturing lease commitments for operating and finance leases as of January 31, 2023:
| January 31, 2023
| Operating |  | Finance
Maturity of lease liabilities |  |  |
Fiscal year ending January 31, |  |  |
2024 | $ | 958 |  |  | $ | 5,102 |
2025 | 225 |  |  | 2,566 |
2026 | 86 |  |  | 209 |
2027 | 42 |  |  | — |
Thereafter | 7 |  |  | — |
Total future minimum lease payments | $ | 1,318 |  |  | $ | 7,877 |
Less: interest | (35) |  |  | (226) |
Present value of lease liabilities | $ | 1,283 |  |  | $ | 7,651 |
Schedule of maturing lease commitments of finance leases | The following represents a schedule of maturing lease commitments for operating and finance leases as of January 31, 2023:
| January 31, 2023
| Operating |  | Finance
Maturity of lease liabilities |  |  |
Fiscal year ending January 31, |  |  |
2024 | $ | 958 |  |  | $ | 5,102 |
2025 | 225 |  |  | 2,566 |
2026 | 86 |  |  | 209 |
2027 | 42 |  |  | — |
Thereafter | 7 |  |  | — |
Total future minimum lease payments | $ | 1,318 |  |  | $ | 7,877 |
Less: interest | (35) |  |  | (226) |
Present value of lease liabilities | $ | 1,283 |  |  | $ | 7,651 |

X
- Definition Assets And Liabilities, Lessee + References No definition available. + Details
Name: | phr_AssetsAndLiabilitiesLesseeTableTextBlock
Namespace Prefix: | phr_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of undiscounted cash flows of finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to finance lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980 + Details
Name: | us-gaap_FinanceLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918686-209980 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=128292326&loc=SL77918701-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration