Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Sdk Laravel Package

prismic/php-sdk

The prismic/php-sdk is a PHP client for Prismic’s content API, enabling developers to query repositories, fetch documents by type or ID, apply predicates, handle pagination, and integrate headless CMS content into PHP or Laravel applications.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. Unchanged in substance: the kit is a thin, synchronous client over Prismic's REST API v2 — query builder, predicate helpers, document hydration, ref/preview handling — and fits a Laravel app using Prismic as a headless CMS for server-rendered pages, scheduled content, or aggregation endpoints. It still does not cover caching, webhook orchestration, image transformation, or content modeling. The important shift in 5.4.0 is provenance: the release ships from the prismicio-community org, not an abandoned personal repo, which means the "vendored dead code" mental model is now too pessimistic. The correct model is "community-maintained client with no commercial SLA" — better than archived, weaker than a first-party SDK.

Integration feasibility. Unchanged: Composer-installable, PSR-4, drops into a service provider with a config file. First query is a few hours. The real effort remains isolation behind a repository/gateway interface. 5.4.0 reinforces this — it is a removal release, not just additive, so the adapter boundary is what absorbs the next one.

Technical risk. Materially improved but not resolved.

  • Maintenance risk: down. Adding GitHub Actions CI and a contribution guide is the strongest available signal short of an official SDK — it means PRs are reviewed, tests run, and there is an expectation of contribution. It does not guarantee security response, PHP 8.x/9 readiness, or reaction to API deprecations.
  • API-drift risk: now demonstrated, not hypothetical. Removing Bookmark support because Prismic removed it from the API in February 2025 proves two things at once: the maintainers track Prismic's changelog, and the client's surface area is coupled to vendor decisions outside their control. Any fork we maintain must inherit that tracking duty.
  • Breaking-change risk: newly concrete. 5.4.0 deletes bookmark functionality. If any of our queries use bookmark predicates, this is a compile/runtime break at upgrade — and, separately, those queries are already broken against the live API regardless of package version.
  • Licensing risk: unchanged and still a hard gate. NOASSERTION blocks production use until legal clears it, and a community org does not change that. Forking/redistribution rights remain unverified.
  • Validation risk: partially improved. CI plus an active contribution path is better evidence than 107 stars and zero dependents, but we should still assume no meaningful production validation of our query shapes.

Key questions.

  • Who operates prismicio-community, is it formally sanctioned by Prismic, and what is the release cadence and deprecation policy? Is there a maintainer succession plan?
  • Is the original repo genuinely archived, or was this a transfer? This determines whether the earlier "archived" finding is stale.
  • What is the actual license, and can we fork and redistribute internally?
  • Do any of our queries use bookmarks? If so, what replaces them (document IDs, tags, or explicit predicates)?
  • Does the kit cover what we need — REST v2 vs GraphQL, slices, locales, refs, preview mode, pagination?
  • Does CI include a supported-PHP matrix (8.1–8.4) and static analysis, or only a smoke test?
  • What is our exit path if Prismic changes its API or auth model, and who owns the fork?

Integration Approach

Stack fit. Unchanged and clean: Laravel + Composer + Guzzle/PSR-18, client registered as a singleton, a ContentGateway/PrismicRepository interface bound in the container, one adapter delegating to the kit. Domain code depends only on the interface. This remains the single highest-leverage decision.

Migration path. Same shape, with one added step: audit for bookmark usage before adopting, since 5.4.0 removes it and Prismic's API no longer honors it. Rewrite any bookmark-based lookups as ID/predicate queries as part of the spike, not as a later cleanup. Otherwise the paths are unchanged: (a) vendor-fork into an internal repo with a light maintenance contract, or (b) replace the adapter with ~150–250 lines on Laravel's HTTP client. If an official Prismic PHP SDK exists, target it in the adapter — still preferred.

Compatibility. Pin to 5.4.0 exactly and commit composer.lock. Verify the CI matrix against PHP 8.1/8.2/8.3/8.4 and the Guzzle major version we run, and check for conflicts with Laravel's HTTP client. Treat 5.4.0 as a breaking release for anything bookmark-adjacent; read the 5.3.0→5.4.0 diff rather than the summary before upgrading. If the CI added in 5.4.0 does not cover the PHP version we deploy on, budget a fork patch now rather than at the next framework upgrade.

Sequencing.

  1. Legal/license review — hard gate, unchanged.
  2. Confirm maintenance reality: org ownership, cadence, CI scope, whether the original repo is archived or transferred.
  3. Bookmark audit against our content model; rewrite affected queries.
  4. Spike: one content type, one query, behind the adapter, on 5.4.0.
  5. Contract tests against the live Prismic API.
  6. Caching layer keyed by repository/ref/locale/query hash.
  7. Decide fork vs. replace vs. official SDK; document the named owner.
  8. Only then expand to the full content model.

Operational Impact

Maintenance. Still inherited, but no longer orphaned. Named internal owner, fork in our org, quarterly review of Prismic API changes — and now also a subscription to upstream releases, because 5.4.0 proves upstream will ship removals that land in our dependency tree. Track the prismicio-community org, the changelog, and Prismic's own deprecation notices.

Support. Still no SLA, no vendor escalation. Prismic support may decline to assist with a community SDK. The contribution guide added in 5.4.0 raises the odds of an upstream fix for a clear bug report — build that into the runbook as a first step rather than assuming "no upstream." Keep the "Prismic API changed" and "auth token rotated" incident paths.

Scaling. Unchanged: a thin HTTP wrapper, so scale is governed by Prismic's API/CDN and our caching. Cache keyed by (repository, ref, locale, query hash); watch rate limits, ref/preview handling, and payload size; reuse HTTP connections in long-running workers and never construct a client per request.

Failure modes.

  • Vendor-driven feature removal propagating into the client (bookmarks, Feb 2025) breaking queries at upgrade time or, worse, silently at the API level before we upgrade.
  • API schema or endpoint deprecation outpacing upstream response.
  • Auth/preview token leakage or rotation breaking content fetches.
  • Stale pagination/cursor logic in an unmaintained path.
  • PHP/Guzzle version drift causing hard failures on framework upgrades — partially mitigated by 5.4.0 CI, unverified for our versions.
  • Silent content-shape changes if hydration into arrays isn't validated.
  • License ambiguity — a legal failure mode, not a technical one.
  • Governance single point of failure: a community org with a small maintainer set can go quiet without an archive notice.

Ramp-up. Low for developers familiar with Prismic and Laravel HTTP patterns: about a day to a first query, about a week to a production-grade adapter with tests and caching. 5.4.0 adds a short but non-trivial pre-work item — the bookmark audit and query rewrite — and slightly reduces ongoing ramp-up by making contribution and CI expectations legible. Procurement/legal and on-call ownership remain the real cost; the burden is governance, not code.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle