Author: Shivam Mathur (shivammathur)
Date: 2025-09-24T20:37:18+05:30
Commit:
https://github.com/php/web-downloads/commit/31470ac47c2c7a1e4e6e12601ec06da2fcf6c16c
Raw diff:
https://github.com/php/web-downloads/commit/31470ac47c2c7a1e4e6e12601ec06da2fcf6c16c.diff
Remove token input from series init
Changed paths:
M API.md
M src/Http/Controllers/SeriesInitController.php
Diff:
diff --git a/API.md b/API.md
index 9398d81..9d802b4 100644
--- a/API.md
+++ b/API.md
@@ -128,7 +128,6 @@ curl -i -X POST \
- `series` (string, required)
- `series_vs` (string, required): Matches `^v[c|s]\d{2}$`.
- `target_vs` (string, required): Matches `^v[c|s]\d{2}$`.
- - `token` (string, required)
- Success: `200 OK`, empty body.
- Errors: `400` with validation details if input is invalid.
@@ -141,8 +140,7 @@ curl -i -X POST \
-d '{
"series": "8.4",
"series_vs": "vc15",
- "target_vs": "vs16",
- "token": "ghp_..."
+ "target_vs": "vs16"
}' \
https://downloads.php.net/api/series-init
```
diff --git a/src/Http/Controllers/SeriesInitController.php
b/src/Http/Controllers/SeriesInitController.php
index eeab09b..c40d25e 100644
--- a/src/Http/Controllers/SeriesInitController.php
+++ b/src/Http/Controllers/SeriesInitController.php
@@ -13,7 +13,6 @@ protected function validate(array $data): bool
'series' => 'required|string',
'series_vs' => 'required|string|regex:/^v[c|s]\d{2}$/',
'target_vs' => 'required|string|regex:/^v[c|s]\d{2}$/',
- 'token' => 'required|string',
]);
$validator->validate($data);