{"id":25909488,"url":"https://github.com/wonderpush/wonderpush-php-lib","last_synced_at":"2025-07-26T04:09:06.300Z","repository":{"id":57081689,"uuid":"95131725","full_name":"wonderpush/wonderpush-php-lib","owner":"wonderpush","description":"PHP library for WonderPush − Advanced push notification service for mobile applications and Websites. High volume, fast delivery and full-featured starting €1/month.","archived":false,"fork":false,"pushed_at":"2025-06-26T06:54:06.000Z","size":651,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-05T07:41:14.085Z","etag":null,"topics":["notifications","push-notifications","web-push","web-push-notification","wonderpush","wonderpush-api"],"latest_commit_sha":null,"homepage":"https://www.wonderpush.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wonderpush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2017-06-22T15:49:23.000Z","updated_at":"2025-06-26T06:54:10.000Z","dependencies_parsed_at":"2025-01-07T09:27:16.002Z","dependency_job_id":"0ae71a4f-05b8-4440-8076-9aebda8c6072","html_url":"https://github.com/wonderpush/wonderpush-php-lib","commit_stats":{"total_commits":134,"total_committers":2,"mean_commits":67.0,"dds":"0.22388059701492535","last_synced_commit":"7475112418feecba3f624142da98e8a009c085a5"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/wonderpush/wonderpush-php-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonderpush%2Fwonderpush-php-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonderpush%2Fwonderpush-php-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonderpush%2Fwonderpush-php-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonderpush%2Fwonderpush-php-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wonderpush","download_url":"https://codeload.github.com/wonderpush/wonderpush-php-lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonderpush%2Fwonderpush-php-lib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267116481,"owners_count":24038624,"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-26T02:00:08.937Z","response_time":62,"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":["notifications","push-notifications","web-push","web-push-notification","wonderpush","wonderpush-api"],"created_at":"2025-03-03T08:17:39.267Z","updated_at":"2025-07-26T04:09:06.272Z","avatar_url":"https://github.com/wonderpush.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"WonderPush PHP library\n======================\n\n[![Build Status](https://travis-ci.org/wonderpush/wonderpush-php-lib.svg?branch=master)](https://travis-ci.org/wonderpush/wonderpush-php-lib)\n[![Latest Stable Version](https://poser.pugx.org/wonderpush/wonderpush-php-lib/version)](https://packagist.org/packages/wonderpush/wonderpush-php-lib)\n[![License](https://poser.pugx.org/wonderpush/wonderpush-php-lib/license.svg)](https://packagist.org/packages/wonderpush/wonderpush-php-lib)\n[![Coverage Status](https://coveralls.io/repos/github/wonderpush/wonderpush-php-lib/badge.svg?branch=master)](https://coveralls.io/github/wonderpush/wonderpush-php-lib?branch=master)\n\nFind the full WonderPush services documentation at:\nhttps://docs.wonderpush.com/docs.\n\n\n\n## Introduction\n\nThis project contain a PHP library for interacting with the WonderPush services.\nIt helps you performing calls to the Management API. This contrasts with the SDKs, which are targeted at being integrated within your apps and handle interactions with the users.\n\n\n### APIs\n\nWonderPush comes as two APIs, one aimed at the user devices, and the other optional one aimed at your servers and tools.\nThe former is simply called the REST API, whereas the latter is called the Management API.\n\nThis tool helps you performing calls to the Management API.\n\n#### Management API Reference\n\nAll references for the WonderPush Management API are available on the WonderPush documentation pages:\nhttps://docs.wonderpush.com/reference.\n\n\n\n## Documentation\n\nPlease see https://wonderpush.github.io/wonderpush-php-lib for up-to-date documentation.\n\n\n\n## Requirements\n\nPHP 5.3.3 and later.\n\n\n\n## Composer\n\nYou can install the bindings via [Composer](http://getcomposer.org/). Run the following command:\n\n```bash\ncomposer require wonderpush/wonderpush-php-lib\n```\n\nTo use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):\n\n```php\nrequire_once('vendor/autoload.php');\n```\n\n\n\n## Manual Installation\n\nIf you do not wish to use Composer, you can download the [latest release](https://github.com/wonderpush/wonderpush-php-lib/releases).\nThen, to use the bindings, include the `init.php` file.\n\n```php\nrequire_once('/path/to/wonderpush-php-lib/init.php');\n```\n\n\n\n## Dependencies\n\nThe bindings require the following extension in order to work properly:\n\n- [`curl`](https://secure.php.net/manual/en/book.curl.php)\n- [`json`](https://secure.php.net/manual/en/book.json.php)\n\nIf you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.\n\n\n\n## Getting Started\n\nSimple usage looks like:\n\n```php\n$wonderpush = new \\WonderPush\\WonderPush(WONDERPUSH_ACCESS_TOKEN, WONDERPUSH_APPLICATION_ID);\n$response = $wonderpush-\u003edeliveries()-\u003ecreate(\n    \\WonderPush\\Params\\DeliveriesCreateParams::_new()\n        -\u003esetTargetSegmentIds('@ALL')\n        -\u003esetNotification(\\WonderPush\\Obj\\Notification::_new()\n            -\u003esetAlert(\\WonderPush\\Obj\\NotificationAlert::_new()\n                -\u003esetTitle('Using the PHP library')\n                -\u003esetText('Hello, WonderPush!')\n            ))\n);\necho $response-\u003egetNotificationId();\n```\n\n\n### Configuring a Logger\n\nThe library does minimal logging, but it can be configured with a [`PSR-3` compatible logger](http://www.php-fig.org/psr/psr-3/) so that messages end up there instead of `error_log`:\n\n```php\n$wonderpush-\u003esetLogger($logger);\n```\n\n\n\n## Development\n\nInstall dependencies:\n\n``` bash\ncomposer install\n```\n\n\n\n## Tests\n\nInstall dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:\n\n```bash\n./test\n```\n\nOr to run an individual test file:\n\n```bash\nvendor/bin/phpunit tests/SomeTest.php\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonderpush%2Fwonderpush-php-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwonderpush%2Fwonderpush-php-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonderpush%2Fwonderpush-php-lib/lists"}