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

Rewrite Command Laravel Package

wp-cli/rewrite-command

WP-CLI package for managing WordPress rewrite rules and permalinks from the command line. Flush rules, inspect the current rewrite list, and update permalink structure without leaving your terminal, making migrations and debugging faster.

Deep Wiki
Context7

Product Decisions This Supports

  • Deployment and environment-parity strategy. Flushing rewrite rules is a deterministic post-deploy step. This package lets you make "permalink/route state is correct in every environment" a scripted pipeline stage rather than a manual runbook item — a decision about how much of your release process you automate versus leave to operators.
  • Content model and URL architecture (roadmap input). Permalink structure is a customer-facing, SEO-relevant, hard-to-reverse decision. Being able to inspect and reset rewrite state deterministically lowers the cost of changing URL schemes, which affects whether a URL restructure belongs on the roadmap at all.
  • Build vs. buy, trivially resolved. You would never build this. The real decision is whether to adopt WP-CLI as your operational surface (and therefore inherit a bundled command) or invest in bespoke internal tooling or a hosted platform.
  • Incident-response posture. The most common trigger is a 404 storm after a permalink change or a plugin activation that registers new rewrite rules. A one-line flush is the difference between a five-minute fix and an hour of SSH archaeology — worth deciding in advance who holds that lever.
  • Fleet operations and multi-site support. If your product surface includes many WordPress instances (agency work, white-label, headless content backends), the ability to loop a flush across sites is a support-cost decision, not an engineering one.
  • Caution on the metadata. This is a read-only split of the WP-CLI bundle, so 21 stars and the low composite score understate it badly — nearly every WP-CLI install runs this code. Do not read the star count as an adoption or health signal; read WP-CLI's.

When to Consider This Package

Adopt (i.e., simply use — it arrives with WP-CLI; there is no real integration work) when:

  • You run WordPress anywhere in the stack — headless WP behind a Laravel/Inertia front end, Bedrock/Sage, a content API, or a marketing site your product team owns.
  • You have CI/CD or an ops runbook where permalink or rewrite state must be reproducible across local, staging, and production.
  • You are migrating content or URLs and need a repeatable "apply and re-flush" step.
  • You operate more than a handful of sites and want one mental model for all of them.

Look elsewhere when:

  • Your product is pure Laravel/PHP with no WordPress dependency. This is a CLI command, not a library — there is no API to call, no service to inject. It offers literally nothing to a non-WordPress codebase, and treating it as a "PHP package" to evaluate for a Laravel app is a category error.
  • You need programmatic rewrite manipulation from application code; that's a WordPress core concern ($wp_rewrite), not this command.
  • You want a hosted control plane with audit logs, RBAC, and rollback. wp-cli gives you primitives; if you need governed multi-tenant operations, that's a platform product decision, not a package decision.
  • You require semantic versioning guarantees — this split tracks WP-CLI core releases. Pin WP-CLI, not this.

How to Pitch It (Stakeholders)

For executives: This is not a new dependency or a purchase — it's a command that ships inside WP-CLI, the standard command-line tool for WordPress, which our stack almost certainly already has. It gives us a safe, one-step way to reset a site's URL routing after a deploy, a content migration, or a permalink change. The business value is reduced recovery time from 404/page-not-found incidents and fewer "it works in staging" surprises. Cost is effectively zero; the risk is that it's WordPress-specific and only relevant if WordPress is genuinely part of our stack.

For engineering: wp rewrite flush / wp rewrite list / wp rewrite structure. Use it as an idempotent post-deploy and post-migration step; it's the correct fix for stale rewrite rules after plugin activation or a permalink change. Treat the repository's low star count as an artifact of it being a read-only split of the WP-CLI monorepo — pin WP-CLI in your image and you inherit this automatically. Do not attempt to use it outside a WordPress runtime, and do not build application logic against it; it is an operational primitive, not an integration point.

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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons