{"id":15661072,"url":"https://github.com/lakshmaji/plivo","last_synced_at":"2025-05-05T21:17:05.775Z","repository":{"id":57010818,"uuid":"46272997","full_name":"lakshmaji/plivo","owner":"lakshmaji","description":"This package enables to send message or OTP to any mobile.This package uses external plivo api.","archived":false,"fork":false,"pushed_at":"2021-05-08T11:08:42.000Z","size":9146,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T21:17:01.111Z","etag":null,"topics":["laravel","package","php","plivo","plivo-sms","sms","twilio"],"latest_commit_sha":null,"homepage":"http://lakshmaji.github.io/plivo/","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/lakshmaji.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-11-16T12:22:38.000Z","updated_at":"2021-12-15T04:25:22.000Z","dependencies_parsed_at":"2022-08-21T13:40:45.664Z","dependency_job_id":null,"html_url":"https://github.com/lakshmaji/plivo","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshmaji%2Fplivo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshmaji%2Fplivo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshmaji%2Fplivo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lakshmaji%2Fplivo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lakshmaji","download_url":"https://codeload.github.com/lakshmaji/plivo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577027,"owners_count":21770721,"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":["laravel","package","php","plivo","plivo-sms","sms","twilio"],"created_at":"2024-10-03T13:25:41.846Z","updated_at":"2025-05-05T21:17:05.754Z","avatar_url":"https://github.com/lakshmaji.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel - plivo\r\n~~[docs on web](http://lakshmaji.github.io/plivo/)~~\r\n\r\n\u003e## WHAT IT IS?\r\n\r\n- This package is used to send sms to any mobile number.\r\n- This uses [Plivo!](https://www.plivo.com/) API.\r\n- It requires *AuthId* and *AuthToken*, they can be generated by registering @at [Plivo](https://manage.plivo.com/dashboard/)\r\n  - after registrion click on Dashboard ,there you will be able to see authid and authtoken. \r\n  - sample snapshot:\r\n![Image of plivo dashboard](https://raw.githubusercontent.com/lakshmaji/images/master/plivo.png)\r\n\r\n\r\n\u003e### Version\r\n\r\n1.2.4\r\n\r\n\u003e### Compatibility\r\n\r\n**Laravel version**     | **Plivo version**\r\n-------- | ---\r\n5.4    | 1.2.4\r\n5.2    | 1.2.4\r\n5.1    | 1.2.4\r\n5.0    | 1.2.4\r\n4.2    | 1.1.0\r\n\r\n\r\n\u003e## INSTALLATION\r\nTo install this package you will need:\r\n - Laravel 4 or 5 (see compatibility table)\r\n - PHP \r\n\r\nInstall via composer ( you can install this package issuing the following command from the terminal )\r\n\r\n``` composer require lakshmaji/plivo ```\r\n\r\n\u003e## Laravel INTEGRATION\r\n\r\nOnce this has finished, you will need to add the service provider to the **providers** array in your app.php config as follows:\r\n```php\r\n Lakshmaji\\Plivo\\PlivoServiceProvider::class,\r\n```\r\nNext, also in the app.php config file, under the **aliases** array, you are required to add the *Plivo* facade.\r\n```php\r\n'Plivo' =\u003e Lakshmaji\\Plivo\\Facade\\Plivo::class,\r\n```\r\nFinally, you will want to publish the config using the following command:\r\n ```php \r\n \tphp artisan vendor:publish  \r\n ```\r\n\r\n\r\nIn the plivo.php configuration file we need to enter the Plivo API key and ID\r\n\r\n\u003e **Don't forget to set a auth id and auth secret keys in the config file!**, you can get them at Plivo dashboard.\r\n\r\n\r\n\u003e## SENDING SMS\r\n\r\n```php\r\n\u003c?php\r\n\r\nUse Plivo;\r\n\r\n$params = array(\r\n\t'src' =\u003e '1111111111',\r\n\t'dst' =\u003e '91999999999',\r\n\t'text' =\u003e 'Hello world!'\r\n);\r\n\r\nPlivo::sendSMS($params);\r\n```\r\n\u003e## Sent SMS history\r\n\r\n```php\r\n\u003c?php\r\n\r\nUse Plivo;\r\n\r\n// Lists all messages history\r\n$list_all_messages = Plivo::allMessages();\r\n\r\n// Lists the filtered messages (pagination)\r\n$params = array(\r\n\t'limit' =\u003e 2,\r\n\t'offset' =\u003e 2,\r\n\t'message_direction' =\u003e 'inbound',\r\n\t'message_state' =\u003e 'delivered',\r\n);\r\n$list_some_messages = Plivo::allMessages($params);\r\n```\r\n\r\n\u003e## Get Message data\r\n\r\n```php\r\n\u003c?php\r\n\r\nUse Plivo;\r\n\r\n// Lists all messages history\r\n$list_all_messages = Plivo::allMessages();\r\n\r\n// Lists the filtered messages (pagination)\r\n$params = array(\r\n\t'limit' =\u003e 2,\r\n\t'offset' =\u003e 2,\r\n\t'message_direction' =\u003e 'inbound',\r\n\t'message_state' =\u003e 'delivered',\r\n);\r\n$list_some_messages = Plivo::allMessages($params);\r\n```\r\n\r\n\u003e## MISCELLANEOUS\r\n\r\n```php\r\n\u003c?php\r\n\r\n  Use Plivo;\r\n\r\n  $params = array(\r\n\t  'country_iso' =\u003e 'IN'\r\n  );\r\n  \r\n  // List the pricing plans available in a country by using country ISO code\r\n  Plivo::pricing($params);\r\n```\r\n\r\n\r\n\u003e## EXAMPLE CODE FOR Laravel\r\n\r\n```php\r\n\r\n\u003c?php \r\n// Define namespace\r\nnamespace App\\Http\\Controllers;\r\n\r\n// Include required namespaces\r\nuse Illuminate\\Routing\\Controller as BaseController;\r\nuse Plivo;\r\n\r\nclass Controller extends BaseController\r\n{\r\n    public function sendSMS()\r\n    {\r\n\t\t$params = array(\r\n\t\t\t'src' =\u003e '1111111111',\r\n\t\t\t'dst' =\u003e '91999999999',\r\n\t\t\t'text' =\u003e 'Hello world!'\r\n\t\t);\r\n\t\t\r\n\t\t$response = Plivo::sendSMS($params);\r\n\t\t\r\n}\r\n\r\n\r\n```\r\n\r\n\u003e## LICENSE\r\n\r\n[MIT](https://opensource.org/licenses/MIT)\r\n\r\n\u003e## Todo\r\n - Need to add voice support\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flakshmaji%2Fplivo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flakshmaji%2Fplivo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flakshmaji%2Fplivo/lists"}