aferrandini/disable-bundle
Symfony bundle that adds annotations to disable controllers/actions immediately or within a time window (after/until/range). When disabled, it can show a custom message or redirect the request to another route.
@Disable(until="2024-12-31")).@Disable(after="2024-06-01")).ExpressionLanguage or Mercure) exist.@Disable(roles="ROLE_ADMIN")).For Executives: "This package lets us toggle entire API endpoints or pages on/off with a single annotation—no code deployments needed. For example, we could disable a beta feature for 10% of users during a test, or automatically redirect customers to a maintenance page during a database migration. It’s a low-risk way to add flexibility to our Symfony 2.x app without heavy engineering lift."
For Engineers:
"If we’re stuck on Symfony 2.x and need a lightweight way to disable controllers/actions by date/time (e.g., for deployments or sunsetting features), this bundle provides annotation-based toggles with optional redirects. Tradeoff: It’s unmaintained (last update 2013), so we’d need to vet it for security/compatibility. For new projects, modern alternatives like Symfony’s ExpressionLanguage or third-party flag services would be better."
How can I help you explore Laravel packages today?