Skip to content

Commit 7ce1ae8

Browse files
committed
fix(release): gitignore composer.lock, bump phpstan to 2.1, drop duplicate Accept header
1 parent 193c5e6 commit 7ce1ae8

11 files changed

Lines changed: 49 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Static analysis
4343
if: matrix.php == '8.2'
44-
run: vendor/bin/phpstan analyse --no-progress --memory-limit=1G
44+
run: vendor/bin/phpstan analyse --no-progress --memory-limit=512M
4545

4646
- name: Test
4747
run: vendor/bin/pest --no-coverage

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
- uses: shivammathur/setup-php@v2
2727
with:
2828
php-version: '8.2'
29-
tools: composer
3029
coverage: none
3130

3231
- uses: actions/setup-node@v6
@@ -58,7 +57,7 @@ jobs:
5857

5958
- name: Static analysis
6059
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
61-
run: vendor/bin/phpstan analyse --no-progress --memory-limit=1G
60+
run: vendor/bin/phpstan analyse --no-progress --memory-limit=512M
6261

6362
- name: Test
6463
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ MAINTAINER-*.md
2222
AUDIT.md
2323
AUDIT-*.md
2424
todo.md
25-
docs
25+
docs/composer.lock

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"require-dev": {
3434
"pestphp/pest": "^3.0",
35-
"phpstan/phpstan": "^1.12",
35+
"phpstan/phpstan": "^2.1",
3636
"laravel/pint": "^1.18"
3737
},
3838
"autoload": {
@@ -52,10 +52,10 @@
5252
"test": "pest",
5353
"lint": [
5454
"pint --test",
55-
"phpstan analyse --no-progress --memory-limit=1G"
55+
"phpstan analyse --no-progress --memory-limit=512M"
5656
],
5757
"format": "pint",
58-
"stan": "phpstan analyse --no-progress --memory-limit=1G"
58+
"stan": "phpstan analyse --no-progress --memory-limit=512M"
5959
},
6060
"config": {
6161
"allow-plugins": {

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ui-gaps.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# UI component gaps (May 2026)
2+
3+
Snapshot of RoxyAPI endpoints that have **no dedicated `@roxyapi/ui` component** as of the package's May 2026 component table. Consumers of `roxyapi/sdk` get raw JSON for these and must render manually (or fall back to `<roxy-data>`, the generic JSON renderer).
4+
5+
This file is informational - it lives in the PHP SDK repo so the maintainer of [@roxyapi/ui](https://github.com/roxyapi/ui) has a running list without us polluting that repo's commits.
6+
7+
## Current gaps
8+
9+
| Domain | Endpoints | Status |
10+
|---|---|---|
11+
| Crystals (`/crystals/*`) | 12 endpoints (search, by zodiac, by chakra, by element, birthstone, daily, random, pairings, lookup, all, hardness, vibration) | No card / grid component |
12+
| Angel Numbers (`/angel-numbers/*`) | 4 endpoints (lookup, sequence analysis, daily, by type) | No card component |
13+
| Dreams (`/dreams/*`) | 5 endpoints (symbol, search, A-Z, random, popular) | No symbol-card / dictionary component |
14+
| Languages (`/languages`) | 1 endpoint (list supported response languages) | No selector helper component |
15+
| Usage (`/usage/*`) | 1 endpoint (current usage stats) | No usage-meter component |
16+
| Advanced KP | `/vedic-astrology/kp/{ruling-planets,ruling-planets-interval,sublord-changes,rasi-changes,planets-interval,ayanamsa,cusps,chart}` | Only `<roxy-kp-planets-table>` exists; ruling-planets / interval / sublord-changes have no dedicated view |
17+
| Vedic divisional listings | 15 divisional charts (D2 Hora through D60 Shashtiamsa) covered by one generic `<roxy-divisional-chart>`; per-varga deep-dive views (e.g. D9 Navamsa specific) do not exist | One-size-fits-all today |
18+
| Numerology helper views | `/numerology/{lucky-numbers,bridge-numbers,karmic-debt,karmic-lessons,subconscious-self,maturity-number,personality-number,birth-day,balance-number,challenges,pinnacles}` are folded under `<roxy-numerology-card>`; per-aspect breakdowns do not exist | Single-card aggregate today |
19+
20+
## Decision tree for SDK consumers
21+
22+
If your endpoint has a dedicated component:
23+
1. Fetch with the SDK server-side.
24+
2. Pass the JSON to the matching `<roxy-*>` element in the browser.
25+
26+
If it does not (this list):
27+
1. Fetch with the SDK server-side.
28+
2. Either render manually (PHP -> HTML), or assign the JSON to `<roxy-data>` for a generic structured display.
29+
30+
## How this list is maintained
31+
32+
Manual diff of `specs/openapi.json` x the `BEGIN:COMPONENTS` table in the [@roxyapi/ui AGENTS.md](https://github.com/roxyapi/ui/blob/main/AGENTS.md). When `@roxyapi/ui` ships a new component for one of the gaps above, drop the row.

lefthook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pre-commit:
66
run: vendor/bin/pint {staged_files}
77
stage_fixed: true
88
phpstan:
9-
run: vendor/bin/phpstan analyse --no-progress --memory-limit=1G
9+
run: vendor/bin/phpstan analyse --no-progress --memory-limit=512M
1010
docs-sync:
1111
glob: "{specs/openapi.json,scripts/tag-descriptions.mjs,scripts/sync-docs.mjs}"
1212
run: node scripts/sync-docs.mjs && git add README.md AGENTS.md
@@ -19,7 +19,7 @@ pre-push:
1919
run: vendor/bin/pint --test
2020
priority: 1
2121
phpstan:
22-
run: vendor/bin/phpstan analyse --no-progress --memory-limit=1G
22+
run: vendor/bin/phpstan analyse --no-progress --memory-limit=512M
2323
priority: 2
2424
codegen-drift:
2525
run: node scripts/generate.mjs && git diff --exit-code -- specs/openapi.json src/Generated src/Roxy.php src/Version.php tests/Generated || { echo 'codegen drift: commit the regenerated files'; exit 1; }

phpstan.neon

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ parameters:
44
- src
55
- tests
66
excludePaths:
7-
analyse:
8-
- src/Generated
9-
- tests/Generated
7+
- src/Generated
8+
- tests/Generated
109
tmpDir: .phpstan-cache
1110
treatPhpDocTypesAsCertain: false

pint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"concat_space": {
1111
"spacing": "one"
1212
},
13+
"declare_strict_types": true,
1314
"phpdoc_align": {
1415
"align": "left"
1516
},

scripts/generate.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,6 @@ ${resourceMapLines}
786786
{
787787
return [
788788
'X-SDK-Client' => 'roxy-sdk-php/' . Version::VERSION,
789-
'Accept' => 'application/json',
790789
];
791790
}
792791

0 commit comments

Comments
 (0)