Weave Code
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

Ohdear Php Sdk Laravel Package

ohdearapp/ohdear-php-sdk

Official PHP SDK for the Oh Dear API (built on Saloon v4). Authenticate with an API token, manage monitors, fetch user info, and more with typed DTOs and iterators. Configurable timeouts and clear exceptions for validation and API errors.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Buy – Eliminates the need to build custom API integrations for Oh Dear’s monitoring, status pages, and maintenance features, reducing development time and maintenance overhead.
  • Feature Expansion: Enables programmatic management of monitoring workflows, status page automation, and incident response (e.g., triggering maintenance windows via CI/CD pipelines or auto-updating status pages during deployments).
  • Observability & Reliability: Supports real-time monitoring integration (e.g., fetching uptime metrics, certificate health, or broken links) into internal dashboards or alerting systems.
  • DevOps/Platform Teams: Streamlines automated incident management (e.g., creating status page updates via API when monitors fail) and scheduled maintenance (e.g., disabling alerts during deployments).
  • Customer-Facing Features: Powers public status pages with dynamic updates (e.g., auto-posting maintenance notices or incident reports).
  • Cost Optimization: Reduces manual API calls by batching operations (e.g., bulk monitor creation/deletion) and leveraging SDK abstractions for error handling.

When to Consider This Package

  • Adopt if:

    • Your team uses Oh Dear for monitoring and needs to automate interactions (e.g., CI/CD integrations, dynamic status pages, or custom dashboards).
    • You require programmatic access to Oh Dear’s API for monitor management, maintenance windows, or uptime metrics (e.g., for internal analytics).
    • You want to reduce boilerplate for HTTP requests, error handling, and API rate limiting (built on Saloon).
    • Your stack is PHP/Laravel, and you prefer type-safe DTOs over raw API responses.
  • Look elsewhere if:

    • You’re using a non-PHP backend (e.g., Python, Node.js, Go) – Oh Dear’s official APIs support other SDKs (e.g., JavaScript, Ruby).
    • You only need read-only access (e.g., fetching monitor status) and can use Oh Dear’s webhooks or direct API calls.
    • Your team lacks PHP/Laravel expertise – the SDK assumes familiarity with Laravel’s dependency injection and Saloon’s patterns.
    • You need advanced customization (e.g., modifying raw HTTP requests) – the SDK abstracts away low-level API details.

How to Pitch It (Stakeholders)

For Executives:

*"This SDK lets us automate Oh Dear integrations—saving dev time and improving reliability. For example:

  • Auto-update status pages during deployments (no manual notices).
  • Programmatically manage monitors (e.g., spin up/down checks via CI).
  • Embed uptime metrics into internal dashboards without custom API work. It’s a low-risk, high-reward way to supercharge our observability stack, with minimal upfront effort."*

For Engineering:

*"This is a batteries-included PHP SDK for Oh Dear’s API, built on Saloon. Key benefits:

  • Type-safe DTOs for monitors, checks, and status pages (no manual JSON parsing).
  • Built-in error handling (e.g., ValidationException for API errors).
  • Abstractions for common tasks:
    • Bulk monitor management (createMonitor, deleteMonitor).
    • Maintenance windows (startMaintenancePeriod, stopMaintenancePeriod).
    • Status page automation (createStatusPageUpdate).
  • Performance metrics (e.g., HTTP uptime splits by DNS/TCP/SSL). Drop-in replacement for manual API calls—just install via Composer and start using Oh Dear’s features programmatically."

For DevOps/Platform Teams:

*"This SDK eliminates manual API calls for Oh Dear workflows. Use cases:

  • CI/CD: Disable alerts during deployments via startMaintenancePeriod.
  • Incident Response: Auto-create status page updates when monitors fail.
  • Observability: Fetch uptime metrics or certificate health into Prometheus/Grafana. Example: Add this to your Laravel app in <10 minutes—no need to reinvent API clients."
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4