{"id":16609612,"url":"https://github.com/artbit/pubsub","last_synced_at":"2025-06-14T07:36:07.100Z","repository":{"id":147004436,"uuid":"142283083","full_name":"ArtBIT/PubSub","owner":"ArtBIT","description":"PubSub design pattern implemented in PHP","archived":false,"fork":false,"pushed_at":"2018-07-25T11:26:28.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T21:39:09.057Z","etag":null,"topics":["php","pubsub","pubsub-php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArtBIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-25T10:10:54.000Z","updated_at":"2018-07-25T14:33:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"db00bf5e-e5a4-44a6-8b5c-6c29b5541eda","html_url":"https://github.com/ArtBIT/PubSub","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/ArtBIT%2FPubSub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtBIT%2FPubSub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtBIT%2FPubSub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtBIT%2FPubSub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtBIT","download_url":"https://codeload.github.com/ArtBIT/PubSub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242896322,"owners_count":20203352,"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":["php","pubsub","pubsub-php"],"created_at":"2024-10-12T01:29:10.126Z","updated_at":"2025-03-10T17:45:16.202Z","avatar_url":"https://github.com/ArtBIT.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PubSub\n[![Build Status](https://travis-ci.org/ArtBIT/PubSub.svg?branch=master)](https://travis-ci.org/ArtBIT/PubSub) [![GitHub license](https://img.shields.io/github/license/ArtBIT/PubSub.svg)](https://github.com/ArtBIT/PubSub) [![GitHub stars](https://img.shields.io/github/stars/ArtBIT/PubSub.svg)](https://github.com/ArtBIT/PubSub)  [![awesomeness](https://img.shields.io/badge/awesomeness-maximum-red.svg)](https://github.com/ArtBIT/PubSub)\n\nPubSub design pattern implemented in PHP\n\n# Example Usage\n```php\n\u003c?php\n\nrequire_once(__DIR__ . '/src/pubsub.php');\nuse \\artbit\\PubSub;\n\n// Subscribe to an event:\nPubSub::subscribe(\"my.event\", function($eventname, $payload) {\n    print_r(func_get_args());\n});\n\n// Trigger an event:\nPubSub::publish(\"my.event\", [\"type\" =\u003e \"sometype\", \"value\" =\u003e \"somevalue\"]);\n\n// This should result in\n// Array\n// (\n//     [0] =\u003e my.event\n//     [1] =\u003e Array\n//         (\n//             [type] =\u003e sometype\n//             [value] =\u003e somevalue\n//         )\n// \n// )\n// \n```\n\n# License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartbit%2Fpubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartbit%2Fpubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartbit%2Fpubsub/lists"}