Skip to content

chore: add php sdk link to docs#2910

Merged
omer-topal merged 2 commits intomasterfrom
omer/add-php-link
Apr 21, 2026
Merged

chore: add php sdk link to docs#2910
omer-topal merged 2 commits intomasterfrom
omer/add-php-link

Conversation

@omer-topal
Copy link
Copy Markdown
Contributor

@omer-topal omer-topal commented Apr 21, 2026

Summary by CodeRabbit

  • Documentation

    • Added PHP SDK to the SDKs list.
    • Introduced a new documentation site configuration: navigation, branding, theme, typography, and extensive redirects to preserve legacy routes.
    • Removed one legacy redirect mapping to avoid duplicate routing.
  • Chores

    • Updated documentation runtime dependencies and removed several unused packages.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ad98bc92-b9e3-4901-a8ad-1c6a7f294a2b

📥 Commits

Reviewing files that changed from the base of the PR and between 91dc23a and de0ceba.

📒 Files selected for processing (3)
  • docs/docs.json
  • docs/mint.json
  • docs/package.json
💤 Files with no reviewable changes (1)
  • docs/mint.json
✅ Files skipped from review due to trivial changes (1)
  • docs/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/docs.json

📝 Walkthrough

Walkthrough

Added a PHP SDK link to the API reference introduction, introduced a new Mintlify docs configuration (docs/docs.json) with site structure and redirects, simplified docs/package.json dependencies, and removed one redirect from docs/mint.json.

Changes

Cohort / File(s) Summary
API Reference
docs/api-reference/introduction.mdx
Inserted a new bullet linking to the PHP SDK (https://github.com/Permify/permify-php/).
Docs Configuration
docs/docs.json
Added a new Mintlify documentation configuration: site schema, theme/branding, navigation tabs/pages, typography, GA4, and an extensive redirects mapping for legacy/versioned routes.
Docs Tooling / Redirects
docs/mint.json
Removed a single redirect mapping from /installation/installation/azure/setting-up/installation/azure.
Dependencies
docs/package.json
Removed several runtime deps (loose-envify, monaco-editor, react, react-dom, scheduler, state-local) and bumped mintlify version.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested reviewers

  • mooreds
  • EgeAytin

Poem

🐰 A tiny link in the grass I hide,
PHP SDK now hops along for the ride.
Mintlify maps the routes anew,
Old redirects trimmed, dependencies few.
I twitch my nose — the docs look spry! 🥕✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'chore: add php sdk link to docs' accurately describes the primary change—adding a PHP SDK documentation link to the SDKs list in the docs. However, the changeset includes several other significant modifications (docs.json configuration, package.json updates, and mint.json redirect removal) that are not reflected in the title.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch omer/add-php-link

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/docs.json`:
- Around line 12-14: The "tabs" array contains a tab object with the label "FGA
Documentation" which is likely a copy-paste error; update the "tab" value in
that object from "FGA Documentation" to the correct project label (e.g.,
"Documentation" or "Permify") and make the same change for the other occurrence
of the same tab label later in the file so both tab entries match the project
naming.
- Line 4: The site metadata key "name" in docs.json is a stale copy-paste value
("FGA Documentation"); update the "name" property to the correct project/site
title (e.g., "Permify") so the browser title/header reflects the repository,
ensuring you edit the "name" field in docs.json rather than other keys.
- Around line 231-238: The navbar entry currently under "navbar" -> "links" with
label "FusionAuth Documentation" and href "/docs/" is incorrect; either replace
that entry's label and href with an intentional Permify target (for example set
label to "Permify Docs" and href to the main site or GitHub URL) or remove the
object entirely; update the JSON object that contains "label": "FusionAuth
Documentation" and "href": "/docs/" accordingly so it points to the correct
destination or is omitted.
- Around line 370-377: Update the redirect entry whose "source" is
"/use-cases/use-cases/simple-rbac" so its "destination" is the final path
"/use-cases/rbac" (remove the duplicated "/use-cases/use-cases/" prefix); leave
the more general rule for "/use-cases/use-cases/:slug*" -> "/use-cases/:slug*"
as-is if you still need it, but ensure this specific mapping points directly to
"/use-cases/rbac".
- Around line 302-305: The redirect entry mapping "source":
"/installation/installation/azure" to "destination":
"/setting-up/installation/azure" points to a non-existent target; either add the
migrated azure page at docs/setting-up/installation/ (create azure.mdx and
include it in the Deployment section) or remove this redirect from docs.json.
Locate the redirect object in docs.json (the mapping with source
"/installation/installation/azure") and either (A) add the new page file under
setting-up/installation/ and add its path to the Deployment pages list in
docs.json, or (B) delete this redirect object so there is no dangling link.

In `@docs/package.json`:
- Around line 9-11: Update the mintlify dependency entry that currently reads
"mintlify": "^4.2.466" to the latest published version "mintlify": "^4.2.521";
after updating the dependency string for mintlify, run your package manager to
refresh the lockfile (npm install or yarn install) so package-lock.json /
yarn.lock reflects the new version and ensure docs build succeeds.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 96a2cf33-c059-4af3-86b2-462ba40fac4b

📥 Commits

Reviewing files that changed from the base of the PR and between ee8f42a and 91dc23a.

⛔ Files ignored due to path filters (1)
  • docs/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • docs/api-reference/introduction.mdx
  • docs/docs.json
  • docs/package.json

Comment thread docs/docs.json
{
"$schema": "https://mintlify.com/docs.json",
"theme": "mint",
"name": "FGA Documentation",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Site name says "FGA Documentation" — looks like a copy-paste leftover.

This is the Permify repository, but the site name is set to "FGA Documentation" (matching the stale docs/mint.json used as a template). This will render in the browser title/header. Should this be "Permify" (or similar)?

Proposed fix
-  "name": "FGA Documentation",
+  "name": "Permify",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"name": "FGA Documentation",
"name": "Permify",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs.json` at line 4, The site metadata key "name" in docs.json is a
stale copy-paste value ("FGA Documentation"); update the "name" property to the
correct project/site title (e.g., "Permify") so the browser title/header
reflects the repository, ensuring you edit the "name" field in docs.json rather
than other keys.

Comment thread docs/docs.json
Comment on lines +12 to +14
"tabs": [
{
"tab": "FGA Documentation",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Tab label "FGA Documentation" likely incorrect.

Same copy-paste concern as the site name: the first tab is labeled "FGA Documentation". Consider renaming it to something like "Documentation" or "Permify" to match this project.

Also applies to: 150-151

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs.json` around lines 12 - 14, The "tabs" array contains a tab object
with the label "FGA Documentation" which is likely a copy-paste error; update
the "tab" value in that object from "FGA Documentation" to the correct project
label (e.g., "Documentation" or "Permify") and make the same change for the
other occurrence of the same tab label later in the file so both tab entries
match the project naming.

Comment thread docs/docs.json
Comment on lines +231 to +238
"navbar": {
"links": [
{
"label": "FusionAuth Documentation",
"href": "/docs/"
}
]
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Navbar link points to "FusionAuth Documentation" — wrong product/URL.

The navbar exposes a link labeled "FusionAuth Documentation" with href: "/docs/". That label is from an unrelated product, and /docs/ is also being redirected away (/docs/:slug*/:slug* at Line 263‑264), so this link will strip itself and resolve to the site root. Please update the label and destination to an intentional Permify target (e.g., the main site or GitHub), or remove the entry.

Example fix
   "navbar": {
     "links": [
       {
-        "label": "FusionAuth Documentation",
-        "href": "/docs/"
+        "label": "Permify",
+        "href": "https://permify.co"
       }
     ]
   },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"navbar": {
"links": [
{
"label": "FusionAuth Documentation",
"href": "/docs/"
}
]
},
"navbar": {
"links": [
{
"label": "Permify",
"href": "https://permify.co"
}
]
},
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs.json` around lines 231 - 238, The navbar entry currently under
"navbar" -> "links" with label "FusionAuth Documentation" and href "/docs/" is
incorrect; either replace that entry's label and href with an intentional
Permify target (for example set label to "Permify Docs" and href to the main
site or GitHub URL) or remove the object entirely; update the JSON object that
contains "label": "FusionAuth Documentation" and "href": "/docs/" accordingly so
it points to the correct destination or is omitted.

Comment thread docs/docs.json Outdated
Comment thread docs/docs.json
Comment on lines +370 to +377
{
"source": "/use-cases/use-cases/simple-rbac",
"destination": "/use-cases/use-cases/rbac"
},
{
"source": "/use-cases/use-cases/:slug*",
"destination": "/use-cases/:slug*"
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Redirect destination still contains the duplicated /use-cases/use-cases/ prefix.

/use-cases/use-cases/simple-rbac/use-cases/use-cases/rbac relies on the following rule (Line 374‑377) to chain-rewrite into /use-cases/rbac. Many redirect engines don't re-evaluate redirects, and even when they do, chained 3xx hops hurt SEO and UX. Point this directly at the final destination.

Proposed fix
     {
       "source": "/use-cases/use-cases/simple-rbac",
-      "destination": "/use-cases/use-cases/rbac"
+      "destination": "/use-cases/rbac"
     },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
{
"source": "/use-cases/use-cases/simple-rbac",
"destination": "/use-cases/use-cases/rbac"
},
{
"source": "/use-cases/use-cases/:slug*",
"destination": "/use-cases/:slug*"
},
{
"source": "/use-cases/use-cases/simple-rbac",
"destination": "/use-cases/rbac"
},
{
"source": "/use-cases/use-cases/:slug*",
"destination": "/use-cases/:slug*"
},
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/docs.json` around lines 370 - 377, Update the redirect entry whose
"source" is "/use-cases/use-cases/simple-rbac" so its "destination" is the final
path "/use-cases/rbac" (remove the duplicated "/use-cases/use-cases/" prefix);
leave the more general rule for "/use-cases/use-cases/:slug*" ->
"/use-cases/:slug*" as-is if you still need it, but ensure this specific mapping
points directly to "/use-cases/rbac".

Comment thread docs/package.json
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.98%. Comparing base (ee8f42a) to head (de0ceba).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2910      +/-   ##
==========================================
- Coverage   82.58%   81.98%   -0.60%     
==========================================
  Files          74       74              
  Lines        8300    11215    +2915     
==========================================
+ Hits         6854     9193    +2339     
- Misses        910     1486     +576     
  Partials      536      536              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@omer-topal omer-topal merged commit 893b23a into master Apr 21, 2026
15 checks passed
@omer-topal omer-topal deleted the omer/add-php-link branch April 21, 2026 21:10
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant