Skip to content

Commit 541a794

Browse files
committed
Update README
1 parent f774c6c commit 541a794

1 file changed

Lines changed: 18 additions & 30 deletions

File tree

README.md

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div align="center">
22
<a href="https://github.com/playwright-php"><img src="https://github.com/playwright-php/.github/raw/main/profile/playwright-php.png" alt="Playwright PHP" /></a>
33

4-
&nbsp; ![PHP Version](https://img.shields.io/badge/PHP-8.3+-05971B?labelColor=09161E&color=1D8D23&logoColor=FFFFFF)
4+
&nbsp; ![PHP Version](https://img.shields.io/badge/PHP-8.2+-05971B?labelColor=09161E&color=1D8D23&logoColor=FFFFFF)
55
&nbsp; ![CI](https://img.shields.io/github/actions/workflow/status/playwright-php/devices/CI.yaml?branch=main&label=Tests&color=1D8D23&labelColor=09161E&logoColor=FFFFFF)
66
&nbsp; ![Release](https://img.shields.io/github/v/release/playwright-php/devices?label=Stable&labelColor=09161E&color=1D8D23&logoColor=FFFFFF)
77
&nbsp; ![License](https://img.shields.io/github/license/playwright-php/devices?label=License&labelColor=09161E&color=1D8D23&logoColor=FFFFFF)
@@ -10,12 +10,9 @@
1010

1111
# Playwright PHP: Device Descriptors
1212

13-
[Microsoft Playwright](https://github.com/microsoft/playwright) ships an official catalogue
14-
of [device descriptors](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json).
15-
16-
This package mirrors that list for [PlaywrightPHP](https://playwright-php.dev) by exporting the JSON data to
17-
`data/devices.php`, and exposes a `DeviceRegistry`
18-
class to retrieve device descriptors by name.
13+
This package provides the official [device descriptors](https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/deviceDescriptorsSource.json)
14+
from [Microsoft Playwright](https://github.com/microsoft/playwright) for use
15+
with [Playwright PHP](https://playwright-php.dev).
1916

2017
## Installation
2118

@@ -64,29 +61,20 @@ $browser->newContext([
6461
$browser->newContext($iphone->toArray());
6562
```
6663

67-
## Descriptors
68-
69-
### Desktop devices
70-
71-
| Device | Browser | Viewport | Scale | Mobile | Touch |
72-
|-----------------------|----------|------------|-------|--------|-------|
73-
| Desktop Chrome | Chromium | 1280 x 720 | 1 | No | No |
74-
| Desktop Chrome HiDPI | Chromium | 1280 x 720 | 2 | No | No |
75-
| Desktop Edge | Chromium | 1280 x 720 | 1 | No | No |
76-
| Desktop Edge HiDPI | Chromium | 1280 x 720 | 2 | No | No |
77-
| Desktop Firefox | Firefox | 1280 x 720 | 1 | No | No |
78-
| Desktop Firefox HiDPI | Firefox | 1280 x 720 | 2 | No | No |
79-
| Desktop Safari | Webkit | 1280 x 720 | 2 | No | No |
80-
81-
### Mobile devices
82-
83-
| Device | Browser | Viewport | Scale | Screen | Viewport |
84-
|---------------------|----------|------------|-------|------------|----------|
85-
| LG Optimus L70 | Chromium | 640 x 384 | 1.25 | 384 x 640 | Yes |
86-
| iPhone 15 Pro Max | Webkit | 814 x 380 | 3 | 430 x 739 | Yes |
87-
| Kindle Fire HDX | Webkit | 1280 x 800 | 2 | 800 x 1280 | Yes |
88-
| Microsoft Lumia 550 | Chromium | 640 x 360 | 2 | 360 x 640 | Yes |
89-
| Pixel 7 | Chromium | 863 x 360 | 2.63 | 412 x 839 | Yes |
64+
## Catalog
65+
66+
| Device | Browser | Screen | Scale | Viewport | Landscape | Mobile | Touch |
67+
|-----------------------|----------|-------------|-------|------------|------------|--------|-------|
68+
| Desktop Chrome | Chromium | 1920 x 1080 | 1 | 1280 x 720 | | No | No |
69+
| Desktop Chrome HiDPI | Chromium | 1792 x 1120 | 2 | 1280 x 720 | | No | No |
70+
| Desktop Edge | Chromium | 1920 x 1080 | 1 | 1280 x 720 | | No | No |
71+
| Desktop Edge HiDPI | Chromium | 1792 x 1120 | 2 | 1280 x 720 | | No | No |
72+
| Desktop Firefox | Firefox | 1920 x 1080 | 1 | 1280 x 720 | | No | No |
73+
| Desktop Firefox HiDPI | Firefox | 1792 x 1120 | 2 | 1280 x 720 | | No | No |
74+
| Desktop Safari | Webkit | 1792 x 1120 | 2 | 1280 x 720 | | No | No |
75+
| Blackberry PlayBook | Webkit | n/a | 1 | 600 x 1024 | 1024 x 600 | Yes | Yes |
76+
| BlackBerry Z30 | Webkit | n/a | 2 | 360 x 640 | 640 x 360 | Yes | Yes |
77+
| Galaxy A55 | Chromium | n/a | 2.25 | 480 x 1040 | 1040 x 480 | Yes | Yes |
9078

9179
Explore the full list of devices in [`docs/DEVICES.md`](docs/DEVICES.md).
9280

0 commit comments

Comments
 (0)