Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| <?php | |
| /** | |
| * A simple Facebook PHP example. | |
| * | |
| * - This is not a "Facebook SDK". | |
| * - This example uses Curl, Hash, JSON, Session extensions. | |
| * - This does not use the JavaScript SDK, nor the cookie set by it. | |
| * - This works with Canvas, Page Tabs with IFrames, the Registration Plugin | |
| * and with any other flow which uses the signed_request. |