PHPackages                             viewmend/laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. viewmend/laravel

ActiveLibrary

viewmend/laravel
================

Official Laravel SDK for ViewMend APIs, with framework integration and Site Tracker Events as the first module.

v1.0.0(yesterday)01↑2900%MITPHPPHP &gt;=8.3CI passing

Since Aug 16Pushed yesterdayCompare

[ Source](https://github.com/phpner/viewmend-laravel)[ Packagist](https://packagist.org/packages/viewmend/laravel)[ Docs](https://viewmend.com/)[ RSS](/packages/viewmend-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

ViewMend Laravel SDK
====================

[](#viewmend-laravel-sdk)

The official Laravel SDK for the [ViewMend website monitoring platform](https://viewmend.com/). This package adapts the framework-agnostic [`viewmend/sdk`](https://packagist.org/packages/viewmend/sdk) to Laravel with container bindings, named connections, a facade, an Artisan command, and a network-free testing fake.

Available modules
-----------------

[](#available-modules)

### Site Tracker Events

[](#site-tracker-events)

Site Tracker Events is the first available module. Laravel applications can report deployments, content updates, cache clears, and maintenance activity so ViewMend can connect those changes with subsequent website checks. Learn more about [ViewMend Site Tracker for website change monitoring](https://viewmend.com/site-tracker).

Requirements
------------

[](#requirements)

- PHP 8.3, 8.4, or 8.5
- Laravel 12 or 13

Installation
------------

[](#installation)

```
composer require viewmend/laravel
```

Laravel discovers the service provider automatically. Every connection needs an API token:

```
VIEWMEND_API_TOKEN=your-api-token
```

Site Tracker calls, including the deployment command, additionally need a Site Tracker integration ID:

```
VIEWMEND_SITE_TRACKER_INTEGRATION_ID=your-integration-id
```

The integration ID is not required for general access through `$viewMend->client()` or `$viewMend->connection('name')->client()`. The optional `VIEWMEND_CONNECTION` selects a different configured default connection.

Quick start
-----------

[](#quick-start)

Inject the package contract and use the public SDK builders directly:

```
