{"id":16455233,"url":"https://github.com/minishlink/web-push-php-example","last_synced_at":"2025-04-13T05:01:46.489Z","repository":{"id":37546747,"uuid":"89021455","full_name":"Minishlink/web-push-php-example","owner":"Minishlink","description":"An example for sending Web Push notifications, using web-push-php","archived":false,"fork":false,"pushed_at":"2023-10-17T12:41:33.000Z","size":61,"stargazers_count":254,"open_issues_count":8,"forks_count":89,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-29T09:18:38.780Z","etag":null,"topics":["notifications","php","push-notifications","pwa","pwa-apps","webpush"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Minishlink.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":"2017-04-21T20:32:58.000Z","updated_at":"2024-10-17T20:29:41.000Z","dependencies_parsed_at":"2022-07-22T05:01:54.749Z","dependency_job_id":"84dfb2a3-a42d-4283-95e9-0b8ea03c19ca","html_url":"https://github.com/Minishlink/web-push-php-example","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":0.05882352941176472,"last_synced_commit":"3815d63a1a1d87adeb2dc5a65a5e495da0958888"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minishlink%2Fweb-push-php-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minishlink%2Fweb-push-php-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minishlink%2Fweb-push-php-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minishlink%2Fweb-push-php-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Minishlink","download_url":"https://codeload.github.com/Minishlink/web-push-php-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665754,"owners_count":21142123,"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":["notifications","php","push-notifications","pwa","pwa-apps","webpush"],"created_at":"2024-10-11T10:21:35.624Z","updated_at":"2025-04-13T05:01:46.466Z","avatar_url":"https://github.com/Minishlink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Push example in PHP\n\nNavigating through the commits and files will help you build:\n- on the client\n    - a user friendly opt-in push notification button\n- on the server\n    - an endpoint for managing your push notification subscriptions\n    - an endpoint that triggers push notification thanks to [web-push-php](https://github.com/web-push-libs/web-push-php)\n\n## Requirements\n- Chrome or Firefox\n- [composer](https://getcomposer.org/)\n- PHP 8.0+\n    - gmp\n    - mbstring\n    - curl\n    - openssl\n\nPHP 7.2 is no longer maintained, but you can checkout the `v3.x` tags.\nPHP 7.1 is no longer maintained, but you can checkout the `v2.x` tags.\nPHP 5.6+ is no longer maintained, but you can checkout the `v1.x` tags.\n\n## Installation\n```bash\n$ composer create-project minishlink/web-push-php-example\n$ cd web-push-php-example\n```\n\nYou can change the VAPID keys in the [keys](./keys) folder with [this guide](https://github.com/web-push-libs/web-push-php#authentication-vapid).\nDon't forget to update the public key in [app.js](./src/app.js) too.\n\n## Usage\n\n```bash\n$ php -S localhost:8000 router.php\n```\n\nAnd open [localhost:8000](http://localhost:8000).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminishlink%2Fweb-push-php-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminishlink%2Fweb-push-php-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminishlink%2Fweb-push-php-example/lists"}