SelectFeatures Matrix for PHP SDK

These docs are for version 3.8.3 of the PHP SDK. To check out the docs for the latest version Click Here.
 

PubNub 4.0 for PHP is our latest and greatest! Please click here for our PubNub 4.0 for PHP docs and SDK.

PubNub 3.x for PHP will encounter End Of Life (EOL) Aug 1st, 2018. All users currently on 3.x should begin migrating to 4.x. The 3.x SDK will continue to work. We will no longer support it and if you run into an issue, we will request that you upgrade to the latest version before solving the issue.

If you have questions about the PubNub for PHP SDK, please contact us at support@pubnub.com.

NameDescription
GrantThis function establishes access permissions for PubNub Access Manager (PAM) by setting the read or write attributes.
NameDescription
Add ChannelsAdd channel to a channel group.
List Channels In Channel GroupList all channels of a channel group.
Remove ChannelsRemove channel from channel group.
Remove Channels GroupsRemove channel groups.
NameDescription
Add Device To ChannelsEnables push notifications on provided set of channels.
List Channels From DeviceList all channels on which push notification has been enabled.
Remove DeviceDisable push notifications from all channels which is registered.
Remove Device From ChannelsDisable push notifications on provided set of channels.
NameDescription
Get StateGet state is used to get the key/value pairs specific to a subscriber uuid.
HeartbeatTimeout events are triggered when the server does not hear a hearbeat from the client within a default timeout time of 280 seconds.
Here NowObtain information about the current state of a channel including a list of unique user-ids currently subscribed to the channel and the total occupancy count of the channel.
Set StateSet state is used to set key/value pairs specific to a subscriber uuid.
Where NowObtain information about the current list of a channels to which a uuid is subscribed to.
NameDescription
Publish AsynchronouslyPublish the message asynchronously.
Publish RAW JSONPublish JSON as is.
Publish SynchronouslyPublish the message synchronously.
Publish using GETPublish using HTTP GET
Publish using POSTPublish using HTTP POST
Publish with MetadataPublish extra meta with the request used for Message Filtering.
Store FlagAbility to skip message from storage.
NameDescription
CountSpecifies the number of historical messages to return.
Include TimetokenWhether event dates time tokens should be included in response or not.
ReverseTraverse the timeline in reverse starting with the oldest message first.
Start EndTime token delimiting the start/end of time slice (exclusive) to pull messages from.
NameDescription
Subscribe to channel groupsAbility to subscribe to channel groups.
Subscribe to channelsAbility to subscribe to channels.
Subscribe to presence channel groupsAbility to subscribe to presence channel groups.
Subscribe to presence channelsAbility to subscribe to presence channels.
Subscribe with timetokenSubscribe with timetoken.
Wildcard subscribeWildcard subscribes allow the client to subscribe to multiple channels using wildcard. E.g., if you subscribe to a.* you will get all messages for a.b, a.c, a.x. The wildcarded * portion refers to any portion of the channel string name after the dot (.).
NameDescription
TimeThis function will return a 17 digit precision Unix epoch from the server.