Skip to content

Commit 9df0be8

Browse files
authored
tweak stubs
1 parent 90d660c commit 9df0be8

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

docs/1.x/api.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ title: API
44

55
# API
66

7-
Relay's API is available in a searchable format at [docs.relay.so/api](https://docs.relay.so/api/develop/).
8-
Additionally, all [builds](/docs/1.x/builds) include a `relay.stub.php` file, which outlines that build’s classes and their APIs.
7+
Relay's API is available in a searchable format at [docs.relay.so/api](https://docs.relay.so/api/develop/) and bundled with the extension [stubs of PhpStorm](https://github.com/JetBrains/phpstorm-stubs).
98

109
## Stubs
1110

12-
Fetching a specific stub without downloading a build can be done as well:
11+
All [builds](/docs/1.x/builds) include a `relay.stub.php` file, which outlines that build’s classes and their APIs. Fetching a specific stub without downloading a build can be done as well:
1312

1413
```bash
1514
wget "https://builds.r2.relay.so/dev/relay.stub.php"
16-
curl -O "https://builds.r2.relay.so/v0.9.1/relay.stub.php"
15+
curl -O "https://builds.r2.relay.so/v0.12.0/relay.stub.php"
1716
```
1817

1918
## Attributes

docs/1.x/builds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ curl "https://builds.r2.relay.so/meta/builds"
3333
Each release has a `artifacts.json` that contains the various build artifacts.
3434

3535
```bash
36-
curl "https://builds.r2.relay.so/v0.9.1/artifacts.json"
36+
curl "https://builds.r2.relay.so/v0.12.0/artifacts.json"
3737
```

docs/1.x/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
uses: shivammathur/setup-php@v2
201201
with:
202202
php-version: 8.4
203-
extensions: relay # or `relay-v0.9.1`
203+
extensions: relay # or `relay-v0.12.0`
204204

205205
- name: Dump Relay configuration
206206
run: |
@@ -252,7 +252,7 @@ Next, [grab the URL](/builds) for the build matching the system. We'll use Ubunt
252252

253253
```bash
254254
mkdir /tmp/relay
255-
curl -sSL "https://builds.r2.relay.so/v0.9.1/relay-v0.9.1-php8.1-debian-x86-64.tar.gz" | tar -xz --strip-components=1 -C /tmp/relay
255+
curl -sSL "https://builds.r2.relay.so/v0.12.0/relay-v0.12.0-php8.1-debian-x86-64.tar.gz" | tar -xz --strip-components=1 -C /tmp/relay
256256
```
257257

258258
If we're missing a build for your particular system or architecture, please [open an issue](https://github.com/cachewerk/relay/issues).
@@ -382,7 +382,7 @@ First, ensure that the `json`, `igbinary` and `msgpack` PHP extensions are insta
382382
Then make sure `zstd` and `lz4` are installed, as well as other required system libraries.
383383

384384
```bash
385-
RELAY_VERSION="v0.9.1" # https://builds.r2.relay.so/meta/latest
385+
RELAY_VERSION="v0.12.0" # https://builds.r2.relay.so/meta/latest
386386
RELAY_PHP=$(php-config --version | cut -c -3) # 8.1
387387
RELAY_INI_DIR=$(php-config --ini-dir) # /etc/php/8.1/cli/conf.d/
388388
RELAY_EXT_DIR=$(php-config --extension-dir) # /usr/lib/php/20210902

0 commit comments

Comments
 (0)