Push Notifications and
Live Activities with PHP
Works with your PHP stack
Add Push Notifications and Live Activities to your PHP application with a few lines of code.
composer require activitysmith/activitysmith<?phpuse ActivitySmith\ActivitySmith;use ActivitySmith\LiveActivityContentState;$activitysmith = new ActivitySmith($_ENV['ACTIVITYSMITH_API_KEY']);Push Notifications
A new subscription, a finished job, an agent that needs your attention. Send the update straight to your iPhone or iPad.

$activitysmith->notifications->send( title: 'New subscription 💸', message: 'Customer upgraded to Pro plan',);Live Activities
Keep deployments, backups, and long-running jobs visible on your Lock Screen and Dynamic Island. Update the same Live Activity as the work progresses.

$activitysmith->liveActivities->stream( 'nightly-backup', contentState: LiveActivityContentState::make( title: 'Nightly database backup', subtitle: 'upload archive', type: 'segmented_progress', numberOfSteps: 3, currentStep: 2, ),);Lock Screen Widgets
Revenue, signups, uptime. Send a metric value from your backend and see it in a widget on your Lock Screen.

$activitysmith->metrics->update('revenue', 2430);All you need to get started
Resources to help you integrate ActivitySmith into your PHP application.
Send your first push notification.
Pair your device, create an API key, and make your first call.