{"id":15725039,"url":"https://github.com/ecto/bolt-php","last_synced_at":"2025-03-31T01:16:29.747Z","repository":{"id":1947357,"uuid":"2877055","full_name":"ecto/bolt-php","owner":"ecto","description":"PHP bindings for bolt","archived":false,"fork":false,"pushed_at":"2011-11-29T19:14:01.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T06:32:48.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-29T18:21:09.000Z","updated_at":"2014-06-16T01:12:04.000Z","dependencies_parsed_at":"2022-08-29T16:12:01.207Z","dependency_job_id":null,"html_url":"https://github.com/ecto/bolt-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fbolt-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fbolt-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fbolt-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fbolt-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecto","download_url":"https://codeload.github.com/ecto/bolt-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399801,"owners_count":20770909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T22:19:03.301Z","updated_at":"2025-03-31T01:16:29.728Z","avatar_url":"https://github.com/ecto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bolt-php\n\nbolt emissions via PHP\n\n![hugemistake](http://i.imgur.com/89zHS.gif)\n\n# install\n\n    git clone git://github.com/ecto/bolt-php.git\n\n# usage\n\n````php\n\u003c?php\nrequire('bolt.php');\n\n$mesh = new bolt\\Node();\n\n$mesh-\u003eemit('PHP', array(\n  'lol' =\u003e 'wut'\n));\n````\n\n# methods\n\nBecause PHP runtime is syncronous, bolt\\Node deconstructs at the end of the script. Because of this, emission listeners are not implementable - only emissions themselves.\n\n##$mesh = new bolt\\Node($options);\n\n`options` is an array that may contain the following:\n\n````php\n$mesh = new bolt\\Node(array(\n  'host' =\u003e 'localhost',\n  'port' =\u003e '6379',\n  'auth' =\u003e 'redisPassword',\n  'channel' =\u003e 'bolt::main'\n));\n````\n\n##$mesh-\u003eemit($hook, $data);\n\n`$hook` must be a string\n\n````php\n$mesh-\u003eemit('eventName', array(\n  'key' =\u003e 'value',\n  'php' =\u003e array(\n    'arraySyntax' =\u003e 'sucks'\n  )\n));\n````\n\n# tricks\n\nYou can change the emission channel after you construct the Node.\n\n````php\n\u003c?php\nrequire('bolt.php');\n\n$mesh = new bolt\\Node();\n\n$mesh-\u003eemit('PHP', array(\n  'lol' =\u003e 'wut'\n));\n\n$mesh-\u003echannel = 'bolt::alternate';\n\n$mesh-\u003eemit('PHP', array(\n  'alternate' =\u003e 'channel'\n));\n````\n\n#license\n\n(The MIT License)\n\nCopyright (c) 2011 Cam Pedersen \u003ccam@onswipe.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecto%2Fbolt-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecto%2Fbolt-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecto%2Fbolt-php/lists"}