payden / pusher Goto Github PK
View Code? Open in Web Editor NEWPHP Extension for Pusher, cutting my teeth with PHP extensions
PHP Extension for Pusher, cutting my teeth with PHP extensions
Pusher API Extension Right now, this extension is only designed for Linux systems. Perhaps in the future, I'll look at building it on a Win box. To install it, you must have the PHP source for your version. Then run the following commands. $ cd /path/to/php-5.4.0/ext $ git clone git://github.com/payden/pusher.git $ cd pusher $ phpize && ./configure && make $ sudo make install Provided there isn't a problem building, this will put pusher.so in your extensions directory. This is usually in /usr/local/lib/php/extensions somewhere. You may or may not need to ensure you're 'extension_dir' directive in php.ini points to the correct path. Then all you have to do is add a 'extension=pusher.so' line to your php.ini and restart php. Now, to use the class the extension implements. $pusher = new Pusher('api_key_from_pusher', 'api_secret_from_pusher', app_id_from_pusher); $pusher->trigger('channel','event','json_encoded_string'); For example: $obj = new StdClass(); $obj->name = "Payden Sutherland"; $obj->email = "[email protected]"; $pusher = new Pusher('59e7d83ee9fb65bfe028', 'mysecretkey', 16648); $pusher->trigger('test_channel','weeeee', json_encode($obj));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.