{"id":14965455,"url":"https://github.com/bulkgate/php-sdk","last_synced_at":"2025-10-25T11:31:49.331Z","repository":{"id":52995914,"uuid":"438759915","full_name":"BulkGate/php-sdk","owner":"BulkGate","description":"💌 Simple PHP SDK for sending SMS/Viber via BulkGate portal.","archived":false,"fork":false,"pushed_at":"2024-06-27T10:39:08.000Z","size":225,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T07:05:03.602Z","etag":null,"topics":["bulkgate","nette","nette-extension","nette-framework","php","sdk","sdk-php","sms","sms-api","viber","viber-api"],"latest_commit_sha":null,"homepage":"https://help.bulkgate.com/docs/en/php-sdk-installation-v2.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BulkGate.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":"2021-12-15T20:12:32.000Z","updated_at":"2023-11-14T14:46:39.000Z","dependencies_parsed_at":"2024-06-27T15:22:53.350Z","dependency_job_id":null,"html_url":"https://github.com/BulkGate/php-sdk","commit_stats":{"total_commits":61,"total_committers":2,"mean_commits":30.5,"dds":"0.47540983606557374","last_synced_commit":"7314255bbf276c64cd8998b769bc7ab33fa9b170"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BulkGate%2Fphp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BulkGate%2Fphp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BulkGate%2Fphp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BulkGate%2Fphp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BulkGate","download_url":"https://codeload.github.com/BulkGate/php-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238128587,"owners_count":19421059,"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":["bulkgate","nette","nette-extension","nette-framework","php","sdk","sdk-php","sms","sms-api","viber","viber-api"],"created_at":"2024-09-24T13:34:46.796Z","updated_at":"2025-10-25T11:31:48.960Z","avatar_url":"https://github.com/BulkGate.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"BulkGate SMS/Viber - PHP SDK\n=============\n\n[![PHP](https://img.shields.io/packagist/php-v/bulkgate/php-sdk?logo=php\u0026color=8892BF)](https://www.php.net/supported-versions.php)\n[![Downloads](https://img.shields.io/packagist/dt/bulkgate/php-sdk.svg)](https://packagist.org/packages/bulkgate/php-sdk)\n[![Latest Stable Version](https://img.shields.io/github/release/bulkgate/php-sdk.svg)](https://github.com/bulkgate/php-sdk/releases)\n[![License](https://img.shields.io/github/license/bulkgate/php-sdk.svg)](https://github.com/BulkGate/php-sdk/blob/master/LICENSE)\n[![Tests](https://github.com/BulkGate/php-sdk/workflows/Run%20tests/badge.svg)](https://github.com/BulkGate/php-sdk/actions/workflows/php.yml)\n\n\n\n- [BulkGate](https://www.bulkgate.com/)\n- [Helpdesk](https://help.bulkgate.com/)\n- [Portal](https://portal.bulkgate.com/) \n\n## Installation\n\nThe easiest way to install [bulkgate/php-sdk](https://packagist.org/packages/bulkgate/php-sdk) into a project is by using [Composer](https://getcomposer.org/) via the command line.\n\n```\ncomposer require bulkgate/php-sdk\n```\n\n## Quick start\n\n### Nette DI Extension\n\n```neon\nextensions:\n\tsdk: BulkGate\\Sdk\\DI\\Extension\n\nsdk:\n\tapplication_id: 0000\n\tapplication_token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n\tsender:\n\t\ttag: 'sdk' # Optional\n\t\tdefault_country: cz # Optional\n\tconfigurator:\n\t\tsms: # Optional\n\t\t\tsender_id: gText\n\t\t\tsender_id_value: 'Example'\n\t\t\tunicode: true\n\t\tviber: # Optional\n\t\t\tsender: Sender\n\t\t\tbutton:\n\t\t\t\tcaption: 'Button Caption'\n\t\t\t\turl: 'https://www.bulkgate.com/'\n\t\t\timage: \n\t\t\t\turl: 'https://www.example.com/example.png'\n\t\t\t\tzoom: true\n\t\t\texpiration: 3600 # seconds\n```\n\n```php \n\nuse BulkGate\\Sdk\\Sender;\nuse BulkGate\\Sdk\\Message\\Sms;\n\nclass Sdk\n{\n    private Sender $sender;\n\n    public funnction __construct(Sender $sender)\n    {\n        $this-\u003esender = $sender;\n    }\n    \n\n    public function sendMessage(string $phone_number, string $text): void\n    {    \n        $this-\u003esender-\u003esend(new Sms($phone_number, $text));\n    }\n}\n\n```\n\n### Manual creation\n\n```php \nuse BulkGate\\Sdk\\Connection\\ConnectionStream;\nuse BulkGate\\Sdk\\MessageSender;\nuse BulkGate\\Sdk\\Message\\Sms;\n\n$connection = new ConnectionStream(\n    /*application_id: */ 0000, \n    /*application_token:*/ 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'\n);\n\n$sender = new MessageSender($connection);\n\n$sender-\u003esend(new Sms($phone_number, $text));\n\n/* Optional */\n\n$sender-\u003esetTag('sdk');\n\n$sender-\u003esetDefaultCountry('cz');\n\n$viber_configurator = new ViberConfigurator('Sender');\n$viber_configurator-\u003ebutton('Button Caption', 'https://www.bulkgate.com/');\n$viber_configurator-\u003eimage('https://www.example.com/example.png', true);\n$viber_configurator-\u003eexpiration(3_600);\n\n$sender-\u003eaddSenderConfigurator($viber_configurator);\n\n$sms_configurator = new SmsConfigurator('gText', 'Example', true);\n\n$sender-\u003eaddSenderConfigurator($sms_configurator);\n\n$sender-\u003esend(new Sms($phone_number, $text));\n```\n\n## Simple Manual\n\n- [Message sender](docs/sender.md)\n- [SMS](docs/sms_message.md)\n- [Viber](docs/viber_message.md)\n- [Multi channel message](docs/multichannel_message.md)\n- [Bulk message/Campaign](docs/bulk.md)\n- [Schedulers](docs/schedulers.md)\n- [Configurators](docs/configurators.md)\n- [Number checker](docs/number_checker.md)\n\n\n## API administration \u0026 tokens\n\n[API administration](https://help.bulkgate.com/docs/en/api-administration.html)\n\n[API token](https://help.bulkgate.com/docs/en/api-tokens.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbulkgate%2Fphp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbulkgate%2Fphp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbulkgate%2Fphp-sdk/lists"}