{"id":15167218,"url":"https://github.com/bulkgate/sms","last_synced_at":"2025-10-01T00:31:14.460Z","repository":{"id":29185344,"uuid":"120463301","full_name":"BulkGate/sms","owner":"BulkGate","description":"✉️ BulkGate SMS PHP SDK - The complete package for fast integration to PHP projects. Built-in support for Nette framework. Simplify your work. Integrate the SMS gateway quickly and easily into your PHP projects.","archived":true,"fork":false,"pushed_at":"2022-07-08T08:50:14.000Z","size":72,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T22:31:43.913Z","etag":null,"topics":["bulkgate","nette-framework","php-sdk","php7","sms","sms-gateway"],"latest_commit_sha":null,"homepage":"https://www.bulkgate.com/en/developers/sms-api/","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}},"created_at":"2018-02-06T13:44:57.000Z","updated_at":"2023-07-28T17:55:12.000Z","dependencies_parsed_at":"2022-09-14T00:00:48.689Z","dependency_job_id":null,"html_url":"https://github.com/BulkGate/sms","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BulkGate%2Fsms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BulkGate%2Fsms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BulkGate%2Fsms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BulkGate%2Fsms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BulkGate","download_url":"https://codeload.github.com/BulkGate/sms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234796859,"owners_count":18888157,"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-framework","php-sdk","php7","sms","sms-gateway"],"created_at":"2024-09-27T05:41:48.342Z","updated_at":"2025-10-01T00:31:09.178Z","avatar_url":"https://github.com/BulkGate.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"The SDK is outdated, please use it https://github.com/BulkGate/php-sdk\n=============\n\nBulkGate SMS - PHP SDK\n=============\n\n[![Downloads](https://img.shields.io/packagist/dt/bulkgate/sms.svg)](https://packagist.org/packages/bulkgate/sms)\n[![Latest Stable Version](https://img.shields.io/github/release/bulkgate/sms.svg)](https://github.com/bulkgate/sms/releases)\n[![License](https://img.shields.io/github/license/bulkgate/sms.svg)](https://github.com/BulkGate/sms/blob/master/LICENSE)\n\n- [Documentation](https://help.bulkgate.com/docs/en/php-sdk-instalation.html)\n- [BulkGate portal](https://portal.bulkgate.com/) \n- [BulkGate](https://www.bulkgate.com)\n\n## Instalation\n\nThe easiest way to install [bulkgate/sms](https://packagist.org/packages/bulkgate/sms) into a project is by using [Composer](https://getcomposer.org/) via the command line.\n\n```\ncomposer require bulkgate/sms\n```\n\n\nIf you have the package installed just plug in the autoloader.\n\n``` php\nrequire_once __DIR__ . '/vendor/autoload.php';\n```\n\nIn order to send messages, you need an instance of the `BulkGate\\Sms\\Sender` class that requires instance dependency on the `BulkGate\\Message\\Connection` class.\n\n``` php\n$connection = new BulkGate\\Message\\Connection('APPLICATION_ID', 'APPLICATION_TOKEN');\n\n$sender = new BulkGate\\Sms\\Sender($connection);\n```\n\nAt this point, you are ready to send a message.\n\n``` php\n$message = new BulkGate\\Sms\\Message('447971700001', 'test message');\n\n$sender-\u003esend($message);\n```\n\nThe `send()` method will send a message `$message`.\n\n## Nette framework\n\nRegister the extension to the DI container via NEON\n\n``` neon\nextensions:\n\tbulkgate: BulkGate\\Message\\Bridges\\MessageDI\\MessageExtension\n\nbulkgate:\n\tapplication_id: \u003cAPPLICATION_ID\u003e\n\tapplication_token: \u003cAPPLICATION_TOKEN\u003e\n```\n\nwhich gives you the class [`BulkGate\\Sms\\Sender`](php-sdk-sender.md) as a service you can request.\n\n``` php\n\u003c?php declare(strict_types=1);\n\nnamespace BulkGate\\Presenters;\n\nuse BulkGate, Nette;\n\nclass SdkPresenter extends Nette\\Application\\UI\\Presenter\n{\n    /** @var BulkGate\\Sms\\ISender @inject */\n    public $sender;\n\n    public function actionDefault()\n    {\n        $this-\u003esender-\u003esend(new BulkGate\\Sms\\Message('447971700001', 'test message'));\n    }\n}\n```\n\n### Tracy\n\nAt the same time, you'll get the extension for [Tracy](https://tracy.nette.org) panel\n\n![bulkgate-sdk-tracy](https://github.com/BulkGate/help/raw/master/website/static/img/sdk-tracy.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbulkgate%2Fsms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbulkgate%2Fsms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbulkgate%2Fsms/lists"}