This version is a major rewrite of the library and adds support for the full REST API, including Notifications, Subscriptions, Projects and Senders.
This version has some breaking changes:
- Use camelCase for configurations and methods, in particular you should rename
Pushpad\Pushpad::$auth_tokentoPushpad\Pushpad::$authToken,Pushpad\Pushpad::$project_idtoPushpad\Pushpad::$projectId,Pushpad\Pushpad::signature_fortoPushpad\Pushpad::signatureFor. $notification->deliver_toand$notification->broadcastwere removed. Instead you should usePushpad\Notification::create()(or thesend()alias).- When you call
Pushpad\Notification::create()with thesend_atoption, you should pass a ISO 8601 string. For example, you can use(new DateTimeImmutable('+1 hour'))->format(DATE_ATOM).