jumphp / notification
Push notifications for JumPHP applications: the people who use your browser game or app get notifications on their phone, through the JumPHP runtime for Android, with their consent; you send them from a script, a server or Claude (MCP)
Package info
git.jumphp.net/jumphp/jumphp-notification.git
Type:jumphp-extension
pkg:composer/jumphp/notification
Requires
- php: >=8.2
Requires (Dev)
None
Suggests
- ext-curl: Sender outside the engine (scripts): curl, else PHP's http stream
- jumphp/engine: Notifications and NotifyToggle run in a JumPHP application; Sender's Tasks are the engine's JumPHP\Async\Task
Provides
None
Conflicts
None
Replaces
None
README
Push notifications for JumPHP applications: the people who use your browser game or app get notifications on their phone through the
JumPHP runtime for Android, with their own consent; you send them from a script, a server, bin/jumphp notify or Claude (MCP).
bin/jumphp extension:add my-game jumphp/notification
# a Gui form: one line
- {class: JumphpExtensions\Notification\NotifyToggle, id: notify, user: player-42}
bin/jumphp notify:login my-game
bin/jumphp notify my-game --user player-42 "Your turn" "Ada played" --url /play/
Notifications(service):supported(),reason(),subscribe($user, $groups),status(),unsubscribe()(Tasks), events.NotifyToggle(Gui widget), texts in 14 languages.Sender(the owner's tokenjnt_…, never in a game):send(),dryRun(),stats(),history(),subscribers(),groups(),setGroups().PhoneSimulatorandFakeTransportfor tests.
Documentation: doc/index.md, tutorial doc/tutorial.md, samples doc/samples/, example application games/notification-demo.
Contract: docs/notifications.md of JumPHP. License MIT.