{"id":19380699,"url":"https://github.com/drex44/notification-bell","last_synced_at":"2025-07-25T05:05:07.360Z","repository":{"id":217465006,"uuid":"145852553","full_name":"drex44/Notification-Bell","owner":"drex44","description":"It rings a bell sound whenever someone makes a payment on your site given you use stripe payment gateway or whenever someone makes a new commit to your project on github.","archived":false,"fork":false,"pushed_at":"2018-08-23T14:08:57.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T16:52:48.663Z","etag":null,"topics":["lamp-stack","php","silex-framework","ultrahook","webhooks"],"latest_commit_sha":null,"homepage":"","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/drex44.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}},"created_at":"2018-08-23T12:47:41.000Z","updated_at":"2018-09-10T11:41:53.000Z","dependencies_parsed_at":"2024-01-16T16:50:10.980Z","dependency_job_id":null,"html_url":"https://github.com/drex44/Notification-Bell","commit_stats":null,"previous_names":["drex44/notification-bell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drex44/Notification-Bell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FNotification-Bell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FNotification-Bell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FNotification-Bell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FNotification-Bell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drex44","download_url":"https://codeload.github.com/drex44/Notification-Bell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FNotification-Bell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266959459,"owners_count":24012501,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lamp-stack","php","silex-framework","ultrahook","webhooks"],"created_at":"2024-11-10T09:14:35.322Z","updated_at":"2025-07-25T05:05:07.260Z","avatar_url":"https://github.com/drex44.png","language":"PHP","readme":"# Notification-Bell\n\nThis project was a quick experiment to show use case of webhooks using a LAMP stack (though we don't need MongoDb).\n\n### Technology used\n\n- Silex (You can use symphony or any other library)\n- Webhook\n- Ultrahook\n\nIt rings a bell sound whenever someone makes a payment on your site given you use stripe payment gateway or whenever someone makes a new commit to your project on github.\n\n    Note: Even if you're not using stripe or github, it should be fairly simple to use the this method to play bell with any platform having support for webhooks.\n    In such case, you have to find an alternative to Ultrahook by creating your own HTTP server that forwards the webhook requests. Beacuse Ultrahook only supports github and stripe domains only.\n\n## Requirements\n\n- Download Bell sound file (I used the following [bell-ding-sound-effect](http://www.orangefreesounds.com/bell-ding-sound-effect)) and change name of the file in play.sh (Currently it is bell.mp3)\n- Ultrahook (To forward the webhook requests to local environment)\n- Stripe or Github account\n\n## Preparation\n\n- Install a package to play sound files from shell (we will use \u003cb\u003eplay\u003c/b\u003e. Alternatives: [how-to-play-a-sound-from-terminal](https://askubuntu.com/questions/920539/how-to-play-a-sound-from-terminal))\n  \u003cbr/\u003e\u003ccode\u003e sudo apt install sox\u003c/code\u003e\n  \u003cbr/\u003eAnd for playing special formats like mp3 you must install its libraries:\n  \u003cbr/\u003e\u003ccode\u003esudo apt install libsox-fmt-mp3\u003c/code\u003e\n  \u003cbr/\u003e\n\n        If you want to use it with full libraries, you must install libsox-fmt-all package:\n        sudo apt install libsox-fmt-all\n\n- Clone the repository in the root of your apache server (or any http server with php)\n\n- Give permission to your apache server user to use Audio\n  \u003cbr/\u003e\u003ccode\u003e sudo usermod -aG audio www-data\u003c/code\u003e\n  \u003cbr/\u003ewww-data is the name of the apache user. To know this name in your case, you can use \"whoami\" in exec in Php.\n\n- Set the webhook URL in stripe or github to the ultrahook url (or other if its your own server)\n\n- Start apache server\n\n- Start Ultrahook (No need to do anything if you're using custom server to forward webhook requests)\n  \u003cbr /\u003e\u003ccode\u003eultrahook stripe http://localhost/Notification-Bell/webhook\u003c/code\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrex44%2Fnotification-bell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrex44%2Fnotification-bell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrex44%2Fnotification-bell/lists"}