{"id":20446947,"url":"https://github.com/socialconnect/sms","last_synced_at":"2025-04-13T01:06:28.850Z","repository":{"id":57054596,"uuid":"45276938","full_name":"SocialConnect/sms","owner":"SocialConnect","description":"Send SMS by external services","archived":false,"fork":false,"pushed_at":"2016-04-14T12:58:20.000Z","size":40,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T01:05:51.767Z","etag":null,"topics":["php-sms"],"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/SocialConnect.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":"2015-10-30T21:15:59.000Z","updated_at":"2023-04-13T04:20:16.000Z","dependencies_parsed_at":"2022-08-24T14:00:18.870Z","dependency_job_id":null,"html_url":"https://github.com/SocialConnect/sms","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialConnect%2Fsms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialConnect%2Fsms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialConnect%2Fsms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialConnect%2Fsms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SocialConnect","download_url":"https://codeload.github.com/SocialConnect/sms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650508,"owners_count":21139678,"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":["php-sms"],"created_at":"2024-11-15T10:23:50.747Z","updated_at":"2025-04-13T01:06:28.823Z","avatar_url":"https://github.com/SocialConnect.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"SocialConnect SMS\n=================\n\n## Supported providers\n\n- [x] Nexmo\n- [x] MessageBird\n- [x] SMS.RU\n\n## Installation\n\nAdd a requirement to your `composer.json`:\n\n```json\n{\n    \"require\": {\n        \"socialconnect/sms\": \"*\"\n    }\n}\n```\n\nRun the composer installer:\n\n```bash\nphp composer.phar install\n```\n\n## How to work\n\nFirst, you need to setup `ProviderFactory`:\n\n```php\nuse SocialConnect\\Common\\Http\\Client\\Curl;\nuse SocialConnect\\SMS\\ProviderFactory;\n\ninclude_once __DIR__ . '/vendor/autoload.php';\n\n$service = new ProviderFactory(\n    array(\n        'provider' =\u003e array(\n            'smsru' =\u003e array(\n                'appId' =\u003e 12345\n            )\n        )\n    ),\n    new Curl()\n);\n```\n\nNext, you need to get provider:\n\n```php\n/** @var \\SocialConnect\\SMS\\Provider\\SMSRU $provider */\n$provider = $service-\u003efactory('smsru');\n```\n\nYou can send `sms`:\n\n```php\n$provider-\u003esend('+79999999', 'Hello, World!');\n```\n\nOr get `balance`:\n\n```php\nvar_dump($provider-\u003egetBalance());\n```\n\n# License\n\nThis project is open-sourced software licensed under the MIT License.\n\nSee the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialconnect%2Fsms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocialconnect%2Fsms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialconnect%2Fsms/lists"}