{"id":17164271,"url":"https://github.com/norberttech/promosms-api","last_synced_at":"2025-09-05T18:42:48.567Z","repository":{"id":57028510,"uuid":"10630971","full_name":"norberttech/promosms-api","owner":"norberttech","description":"Fully object oriented api for PromoSMS.pl service ","archived":false,"fork":false,"pushed_at":"2022-11-06T09:09:26.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T06:06:38.629Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/norberttech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-11T21:06:25.000Z","updated_at":"2014-01-16T11:46:33.000Z","dependencies_parsed_at":"2023-01-21T02:15:12.956Z","dependency_job_id":null,"html_url":"https://github.com/norberttech/promosms-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/norberttech/promosms-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norberttech%2Fpromosms-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norberttech%2Fpromosms-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norberttech%2Fpromosms-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norberttech%2Fpromosms-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/norberttech","download_url":"https://codeload.github.com/norberttech/promosms-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norberttech%2Fpromosms-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273494697,"owners_count":25115824,"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-09-03T02:00:09.631Z","response_time":76,"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":[],"created_at":"2024-10-14T22:51:26.981Z","updated_at":"2025-09-05T18:42:48.517Z","avatar_url":"https://github.com/norberttech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Fully object oriented api for PromoSMS.pl service\n\nApi is under development but you can install it via composer.\n\n```yml\n\"require\": {\n    \"norzechowicz/promosms-api\": \"1.0.x-dev\"\n}\n```\n\nFollowing code is an example how to send sms and get delivery report.\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse PromoSMS\\Api\\Client;\nuse PromoSMS\\Api\\Sms\\Sms;\n\n$client = new Client('login@email.com', md5('password'));\n\n$sms = new Sms();\n$sms-\u003esetReceiver('123123123');\n$sms-\u003esetMessage('This new message');\n\n$response = $client-\u003esend($sms);\n\nif ($response-\u003eisValid()) {\n    // Get sms delivery report\n    $report = $client-\u003ereport($response-\u003egetId());\n    echo \"SMS id: \" . $response-\u003egetId() . \"\\n\";\n\n    if ($report-\u003eisReceived()) {\n        echo \"SMS was received at: \" . $report-\u003egetTime()-\u003eformat('Y-m-d H:i:s') . \"\\n\";\n    } else {\n        echo \"SMS wasn't received yet. Please check later.\\n\";\n    }\n} else {\n    // If something went wrong check the status\n    // Full status list is available here: http://dev.promosms.pl/sms-api/HTTP_SSL_API#Statusy_zwracane_przez_system\n    echo \"Error status code: \" . $response-\u003egetStatus();\n}\n\n```\n\nFollowing code is an example how to check account ballance. \n\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse PromoSMS\\Api\\Client;\nuse PromoSMS\\Api\\Sms\\Sms;\n\n$client = new Client('login@email.com', md5('password'));\necho \"Current account balance is: \" . $client-\u003ebalance()-\u003egetAmount() / 100 . \"\\n\";\n```\n\n###TODO\n\n* Add MaxSMS support \n* Add FasterSMS support \n* Add feature to check how many sms will be sent for text message content. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorberttech%2Fpromosms-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorberttech%2Fpromosms-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorberttech%2Fpromosms-api/lists"}