{"id":36255130,"url":"https://github.com/lordjoo/onesignal-php","last_synced_at":"2026-01-13T22:45:44.057Z","repository":{"id":57088108,"uuid":"180381862","full_name":"lordjoo/onesignal-php","owner":"lordjoo","description":"This is a php laravel  , composer library for implementing OneSignal push notifications","archived":false,"fork":false,"pushed_at":"2019-08-18T23:48:20.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-11T12:44:01.579Z","etag":null,"topics":["composer","laravel","onesignal","php","php-library","pushnotifications"],"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/lordjoo.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":"2019-04-09T14:11:47.000Z","updated_at":"2019-12-31T19:55:00.000Z","dependencies_parsed_at":"2022-08-20T16:00:33.837Z","dependency_job_id":null,"html_url":"https://github.com/lordjoo/onesignal-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lordjoo/onesignal-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordjoo%2Fonesignal-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordjoo%2Fonesignal-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordjoo%2Fonesignal-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordjoo%2Fonesignal-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lordjoo","download_url":"https://codeload.github.com/lordjoo/onesignal-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordjoo%2Fonesignal-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["composer","laravel","onesignal","php","php-library","pushnotifications"],"created_at":"2026-01-11T07:06:56.854Z","updated_at":"2026-01-13T22:45:44.048Z","avatar_url":"https://github.com/lordjoo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneSignal PHP Library\n###### This PHP Library help You Integrate OneSignal Push Notification Easily in your website \n\u003e This Library Supports Laravel Framework\n\n## Features \n##### Two Ways You Can Send The Notification\n* Send Notification To all Subscribed Users\n* Send To Specific User \n* Send To Segment \n  \n    \n------------\n\n#### Notification Features\n* Send With Custom Logo icons (Required)\n* Send With Large Image (Optional)\n* Send With Custom Badge (Optional)\n* Send With Unlimited Customized Buttons (Optional)\n  \n    \n------------\n\n### Installation \n whether you re using laravel or not just install the package wit\n ```\n composer require youssef20000/onesignal-php  \n ```\n \u003e if you are using laravel \u003e= 5.6 The Package will be detected automatically    \n \n#### Laravel Only \nPublish the Config File For The Library \n```\n php artisan vendor:publish --tag=config\n```\n \n ### How To Use It ? \n \n Requiring And Initialize The Library  \n ```php\n\u003c?php \n// Require The Outload File For Composeer \nuse Youssef\\OneSignal\\OneSignal;\n// if not laravel \n$notification = new OneSignal($appID,$apiKEY);\n// if laravel the appid and apikey will be obtained from the config file\n?\u003e\n```\n The Properties to change \n \n | Property Name | Is Required | The Value  |\n | ------------ | ------------ | ------------ |\n | $heading |  :ballot_box_with_check: | The Title Heading With language code in array  ` $notification-\u003eheading = [\"en\"=\u003e\"hello World !\",\"ar\"=\u003e\"مرحبا بالعالم\"] ` |\n | $content |  :ballot_box_with_check: | The Notification Body With language code like the `$heading` |\n | $logo    |  :ballot_box_with_check: | The Logo Url `String` |\n | $image   |  --  | The Big Image Url `String` |\n | $url     |  --  | The Action Url That Will Opened `String` |\n | $appUrl  |  --  | If You Have App Url You Want Notification Redirect user To `String` | \n | $buttons |  --  | The Buttons Array Examples At [The Official Docs](https://documentation.onesignal.com/reference#section-action-buttons \"The Official Docs\") | \n | $badge   |  --  | The Notification Bage Icon Url `string` |\n \n ------\n \n ##### EX1: Send To All Users \n \n ```php\n   $notification-\u003esendToAll(); // This Will Reqturn A JSON With The Response From OneSginal\n ```\n  \n ##### EX2: Send To Specific User \n \n ```php\n   $notification-\u003esendToSpecific($userSuscribtionID); // This Will Reqturn A JSON With The Response From OneSginal\n ```\n \n   \n ##### EX3: Send To Custom Segments  \n \n ```php\n   $notification-\u003esendToSegment($segmentsArray); // This Will Reqturn A JSON With The Response From OneSginal\n ```\n\n ## To Do \n * [ ] Fix Buttons Format Error\n * [ ] Add Send To Multi Users By IDs\n * [*] Add Unit Test\n * [*] Handle Exceptions \n * [ ] Add Send To Custom Devices  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordjoo%2Fonesignal-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flordjoo%2Fonesignal-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordjoo%2Fonesignal-php/lists"}