Download the PHP package pubnub/pubnub without Composer
On this page you can find all versions of the php package pubnub/pubnub. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pubnub/pubnub
More information about pubnub/pubnub
Files in pubnub/pubnub
Informations about the package pubnub
PubNub PHP SDK (V4)
This is the official PubNub PHP SDK repository.
PubNub takes care of the infrastructure and APIs needed for the realtime communication layer of your application. Work on your app's logic and let PubNub handle sending and receiving data across the world in less than 100ms.
The SDK supports PHP 7.4 and 8.x.
Get keys
You will need the publish and subscribe keys to authenticate your app. Get your keys from the Admin Portal.
Configure PubNub
-
Integrate the PHP SDK into your project:
-
Without composer
- Clone the following repository:
git clone https://github.com/pubnub/php.git ./pubnub-php
- Copy the
src
folder to your project. -
Include
autoloader.php
file in your project: - Download dependency
monolog
from https://github.com/Seldaek/monolog and copy themonolog
folder from thesrc
folder to thesrc
folder of your project. - Download dependency
psr/Log
from https://github.com/php-fig/log/tree/master and copy thepsr
folder to thesrc
folder of your project. - Download dependency
rmccue
from https://github.com/WordPress/Requests and copy theRequests
folder and the fileRequests.php
from thelibrary
folder to thesrc
folder of your project.
- Clone the following repository:
-
With composer
-
Add the PubNub package to your
composer.json
file: -
Run
composer install --no-dev
from the command line. This installs the PubNub PHP SDK and all its dependencies in thevendor
folder of the project. - Include
autoload.php
file in your project:
-
-
- Configure your keys:
Add event listeners
Publish/subscribe
Documentation
Support
If you need help or have a general question, contact [email protected].
All versions of pubnub with dependencies
rmccue/requests Version ^2.0
psr/log Version ^1.1|^2.0|^3.0
guzzlehttp/guzzle Version ^7.9