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 monitoring API. Built on Saloon v4, it provides typed DTOs and convenient methods to manage monitors and more. Supports API token auth, configurable timeouts, and clear exceptions for validation and API errors.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Monitoring Automation: Enables programmatic creation, management, and deletion of uptime monitors (HTTP, ping, TCP) for websites, APIs, and services, reducing manual setup time.
  • Incident Response: Integrates with status pages to automate public incident updates, maintenance windows, and snoozing alerts during outages or planned downtime.
  • Performance Insights: Provides granular uptime metrics (DNS, TCP, SSL, download times) to identify bottlenecks in infrastructure.
  • Security Compliance: Simplifies SSL certificate monitoring (expiry, validation, chain integrity) to ensure compliance with security policies.
  • Cost Optimization: Supports dynamic monitor management (enable/disable checks, snooze alerts) to reduce unnecessary notifications and API calls.
  • Build vs. Buy: Eliminates the need to build custom API wrappers for Oh Dear’s API, accelerating time-to-market for monitoring features.
  • Roadmap Priorities:
    • Phase 1: Integrate monitor creation/deletion into CI/CD pipelines (e.g., deploy new services with auto-monitor setup).
    • Phase 2: Build a dashboard to visualize Oh Dear metrics alongside internal monitoring tools.
    • Phase 3: Automate incident workflows (e.g., trigger Slack alerts + status page updates on monitor failures).

When to Consider This Package

  • Adopt if:

    • Your team uses Oh Dear for monitoring and needs to automate workflows (e.g., dynamic monitor management, status page updates).
    • You’re building a developer portal, DevOps platform, or SRE tooling that requires Oh Dear integration.
    • You need fine-grained control over monitors (e.g., snoozing alerts, scheduling maintenance windows) without manual API calls.
    • Your stack is PHP/Laravel, and you want to avoid reinventing API client logic.
  • Look elsewhere if:

    • You’re not using Oh Dear for monitoring (e.g., you rely on Datadog, Pingdom, or custom solutions).
    • Your team prefers Python/Node.js/Ruby—consider Oh Dear’s native SDKs for those languages.
    • You need real-time streaming of monitor data (this SDK is request-based, not event-driven).
    • Your use case requires custom check types beyond Oh Dear’s supported checks (e.g., synthetic transactions).

How to Pitch It (Stakeholders)

For Executives:

*"This SDK lets us automate Oh Dear monitoring—creating, updating, and managing uptime checks programmatically. For example:

  • Reduce toil: Auto-create monitors when new services deploy (e.g., via CI/CD).
  • Improve incident response: Update status pages and snooze alerts during outages without manual clicks.
  • Gain insights: Pull performance metrics (DNS, SSL, download times) to optimize infrastructure. It’s a low-code way to integrate Oh Dear into our tooling, saving dev time and improving reliability."*

ROI: Faster deployments, fewer alert fatigue incidents, and actionable performance data—all with minimal engineering lift.


For Engineering:

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

  • Type-safe DTOs: Strongly typed responses (e.g., Monitor, CheckSummary) with helper methods (e.g., checkResult()->isDown()).
  • Error handling: Validation errors and API failures are caught as exceptions with structured data.
  • Performance: Under-the-hood optimizations (timeouts, retries) handled by Saloon.
  • Extensible: Easy to add custom logic (e.g., wrap monitor creation in a service class).

Example use case: Automate monitor cleanup in a Laravel job—delete stale monitors older than 90 days.

Trade-offs:

  • Tightly coupled to Oh Dear’s API (no multi-provider support).
  • PHP-only (but Oh Dear’s API is language-agnostic if needed elsewhere).

Next steps:

  1. Add to composer.json and test basic monitor CRUD.
  2. Build a service layer to abstract Oh Dear logic (e.g., MonitorManager::createForService()).
  3. Explore integrating with our incident workflows (e.g., trigger status page updates on failures)."*
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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai