Skip to content

chore: replace utopia-php/framework with standalone packages#837

Merged
abnegate merged 4 commits intomainfrom
chore/remove-databases
Mar 16, 2026
Merged

chore: replace utopia-php/framework with standalone packages#837
abnegate merged 4 commits intomainfrom
chore/remove-databases

Conversation

@loks0n
Copy link
Contributor

@loks0n loks0n commented Mar 13, 2026

Summary

  • Replace utopia-php/framework dependency with utopia-php/validators (0.2.) and utopia-php/console (0.1.) — the only parts of the framework this library actually uses
  • Update Utopia\CLI\Console imports to Utopia\Console in src and tests

Test plan

  • Verify composer install resolves dependencies correctly
  • Run full test suite to confirm no breakage
  • Confirm bin/ CLI scripts still work (they use utopia-php/cli from dev dependencies)

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated project dependencies to incorporate latest utility libraries
    • Adjusted internal code imports to align with dependency restructuring

…opia-php/console

Remove the heavy framework dependency in favor of the lightweight
standalone packages that this library actually uses.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 13, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a368af97-116c-4e07-a752-8e6672316493

📥 Commits

Reviewing files that changed from the base of the PR and between 2242d29 and 4167bbc.

📒 Files selected for processing (1)
  • src/Database/Database.php
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/Database/Database.php

📝 Walkthrough

Walkthrough

Update project dependencies by removing utopia-php/framework, adding utopia-php/validators and utopia-php/console, and bumping utopia-php/cli to version 0.22.* Update all Console class imports from Utopia\CLI\Console to Utopia\Console across the codebase.

Changes

Cohort / File(s) Summary
Dependency Updates
composer.json
Removed utopia-php/framework 0.33.; added utopia-php/validators 0.2. and utopia-php/console 0.1.; updated utopia-php/cli from 0.14. to 0.22.*
Console Import Updates
src/Database/Database.php, src/Database/PDO.php, tests/e2e/Adapter/Scopes/GeneralTests.php, bin/cli.php, bin/tasks/index.php, bin/tasks/load.php, bin/tasks/operators.php, bin/tasks/query.php, bin/tasks/relationships.php
Updated Console class imports from Utopia\CLI\Console to Utopia\Console namespace across all files

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • chore: remove framework #746: Performs identical composer.json dependency changes (removing utopia-php/framework and adding utopia-php/validators).

Suggested reviewers

  • eldadfux

Poem

🐰 A hop, skip, and versioned leap,
We update our Console so deep,
From CLI paths we gently stray,
To new namespaces bright and gay,
Dependencies refreshed, imports renewed—
Our framework's mood is greatly improved! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately summarizes the main change: replacing the utopia-php/framework dependency with standalone packages (validators and console).
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

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

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/remove-databases
📝 Coding Plan
  • Generate coding plan for human review comments

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.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@loks0n loks0n requested a review from abnegate March 13, 2026 15:42
CLI 0.22 no longer depends on utopia-php/framework, removing it
from the dependency tree entirely. Console moved to the standalone
utopia-php/console package.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@loks0n loks0n force-pushed the chore/remove-databases branch from ac7da4f to a0b48ed Compare March 13, 2026 19:46
Copy link
Contributor

@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: 1

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

Inline comments:
In `@src/Database/Document.php`:
- Around line 175-183: Update the docblock for the getTenant method to match its
native signature: change the `@return` annotation from "int|string|null" to
"string|null" so the PHPDoc aligns with the native return type declared on the
getTenant() method.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 128641c6-7a0d-4997-99bb-47a0e483f2e0

📥 Commits

Reviewing files that changed from the base of the PR and between ac7da4f and a0b48ed.

📒 Files selected for processing (4)
  • src/Database/Adapter.php
  • src/Database/Database.php
  • src/Database/Document.php
  • src/Database/Validator/Structure.php
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/Database/Adapter.php
  • src/Database/Database.php

@loks0n loks0n force-pushed the chore/remove-databases branch from 2242d29 to bab244a Compare March 16, 2026 11:00
@abnegate abnegate merged commit bb89e8c into main Mar 16, 2026
18 checks passed
@abnegate abnegate deleted the chore/remove-databases branch March 16, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants