{"id":20032616,"url":"https://github.com/vagnercardosoweb/onesignal-notification","last_synced_at":"2026-05-15T05:33:42.284Z","repository":{"id":119658505,"uuid":"114783725","full_name":"vagnercardosoweb/onesignal-notification","owner":"vagnercardosoweb","description":"Classe básica para enviar, listar e visualizar notificações no onesignal.","archived":false,"fork":false,"pushed_at":"2018-01-16T16:50:11.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T18:13:34.195Z","etag":null,"topics":["notification","onesignal","onesignal-notifications","onesignal-php"],"latest_commit_sha":null,"homepage":"https://www.vagnercardosoweb.com.br/","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/vagnercardosoweb.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-12-19T15:51:06.000Z","updated_at":"2018-01-16T16:59:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"27430585-c9c4-4fa3-b909-dadd60d083be","html_url":"https://github.com/vagnercardosoweb/onesignal-notification","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/vagnercardosoweb%2Fonesignal-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vagnercardosoweb%2Fonesignal-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vagnercardosoweb%2Fonesignal-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vagnercardosoweb%2Fonesignal-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vagnercardosoweb","download_url":"https://codeload.github.com/vagnercardosoweb/onesignal-notification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241465057,"owners_count":19967243,"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":["notification","onesignal","onesignal-notifications","onesignal-php"],"created_at":"2024-11-13T09:38:31.083Z","updated_at":"2026-05-15T05:33:37.229Z","avatar_url":"https://github.com/vagnercardosoweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PushNotification [ONESIGNAL](https://onesignal.com/)\n\nPara utilização da classe é só seguir os passos abaixo.\n\n- **appId:** Chave do aplicativo criado.\n- **appKey:** Chave para a autenticação.\n\n````php\n\u003c?php\n  // Instancia a classe\n  $push = new PushNotification('appId', 'appKey');\n\n  // Envia notificação\n  $params = array(\n      'included_segments' =\u003e array('All'),\n      'url' =\u003e 'https://navegarte.com/',\n      'ios_attachments' =\u003e array(\"id\" =\u003e 'https://cdn.pixabay.com/photo/2016/04/15/04/02/water-1330252_960_720.jpg'),\n      'headings' =\u003e array(\"en\" =\u003e 'Testando pela class'),\n      'contents' =\u003e array(\"en\" =\u003e 'Resposta pela class'),\n      'ios_badgeType' =\u003e 'Increase',\n      'ios_badgeCount' =\u003e 1,\n      'big_picture' =\u003e 'https://cdn.pixabay.com/photo/2016/04/15/04/02/water-1330252_960_720.jpg',\n      'isIos' =\u003e true,\n      'isAndroid' =\u003e true,\n      'android_sound' =\u003e 'default',\n      'ios_sound' =\u003e 'default'\n  );\n\n  var_dump($push-\u003esendNotification($params));\n\n  // Lista todas notificação\n  //var_dump($push-\u003eallNotifications(200, 0));\n\n  // Vizualiza determinada notificação\n  //var_dump($push-\u003eviewNotification('notificationId'));\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvagnercardosoweb%2Fonesignal-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvagnercardosoweb%2Fonesignal-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvagnercardosoweb%2Fonesignal-notification/lists"}