{"id":15063308,"url":"https://github.com/fridolin-koch/vreshtwiliobundle","last_synced_at":"2025-10-04T22:31:55.971Z","repository":{"id":7854705,"uuid":"9226722","full_name":"fridolin-koch/VreshTwilioBundle","owner":"fridolin-koch","description":"A Symfony2 wrapper for the official SDK provided by Twilio.","archived":true,"fork":false,"pushed_at":"2017-10-19T18:31:33.000Z","size":68,"stargazers_count":44,"open_issues_count":4,"forks_count":45,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-11T18:31:08.498Z","etag":null,"topics":["bundle","php","symfony","symfony-bundle","twilio"],"latest_commit_sha":null,"homepage":"","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/fridolin-koch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2013-04-04T19:58:25.000Z","updated_at":"2024-12-06T16:27:38.000Z","dependencies_parsed_at":"2022-09-13T02:53:20.544Z","dependency_job_id":null,"html_url":"https://github.com/fridolin-koch/VreshTwilioBundle","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fridolin-koch%2FVreshTwilioBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fridolin-koch%2FVreshTwilioBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fridolin-koch%2FVreshTwilioBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fridolin-koch%2FVreshTwilioBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fridolin-koch","download_url":"https://codeload.github.com/fridolin-koch/VreshTwilioBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235321062,"owners_count":18971238,"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":["bundle","php","symfony","symfony-bundle","twilio"],"created_at":"2024-09-24T23:54:49.069Z","updated_at":"2025-10-04T22:31:50.704Z","avatar_url":"https://github.com/fridolin-koch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Symfony2 Twilio Bundle - by [Fridolin Koch](http://fkse.io)\n\n[![Build Status](https://travis-ci.org/fridolin-koch/VreshTwilioBundle.png?branch=master)](https://travis-ci.org/fridolin-koch/VreshTwilioBundle)\n\n[![Coverage Status](https://coveralls.io/repos/github/fridolin-koch/VreshTwilioBundle/badge.svg?branch=master)](https://coveralls.io/github/fridolin-koch/VreshTwilioBundle?branch=master)\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fridolin-koch/VreshTwilioBundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fridolin-koch/VreshTwilioBundle/?branch=master)\n\nAbout\n-----\n\nThis is just a wrapper for the [official SDK](https://github.com/twilio/twilio-php) provided by [Twilio](http://www.twilio.com/).\n\nInstallation\n------------\n\nAdd this to your `composer.json` file:\n\n```json\n\"require\": {\n\t\"vresh/twilio-bundle\": \"dev-master\",\n}\n```\n\n\nAdd the bundle to `app/AppKernel.php`\n\n```php\n$bundles = array(\n\t// ... other bundles\n\tnew Vresh\\TwilioBundle\\VreshTwilioBundle(),\n);\n```\n\nConfiguration\n-------------\n\nAdd this to your `config.yml`:\n\n```yaml\nvresh_twilio:\n    #(Required) Your Account SID from www.twilio.com/user/account\n    sid: 'XXXXXXXX'\n    #(Required) Your Auth Token from www.twilio.com/user/account\n    authToken: 'YYYYYYYY'\n    #(Optional, default: '2010-04-01') Twilio API version\n    version: '2010-04-01'\n    #(Optional, default: 1) Number of times to retry failed requests\n    retryAttempts: 3\n```\n\n\nUsage\n-----\n\nProvided services:\n\n| Service             | Class                         |\n|---------------------|-------------------------------|\n| `twilio.api`        | `\\Services_Twilio`            |\n| `twilio.capability` | `\\Services_Twilio_Capability` |\n| `twilio.lookups`    | `\\Lookups_Services_Twilio`    |\n\n\nInside a controller:\n\n```php\nclass TelephoneController extends Controller\n{\n    public function callAction($me, $maybee)\n    {\n        //returns an instance of Vresh\\TwilioBundle\\Service\\TwilioWrapper\n    \t$twilio = $this-\u003eget('twilio.api');\n\n        $message = $twilio-\u003eaccount-\u003emessages-\u003esendMessage(\n\t  '+14085551234', // From a Twilio number in your account\n\t  '+12125551234', // Text any number\n\t  \"Hello monkey!\"\n\t);\n\n        //get an instance of \\Service_Twilio\n        $otherInstance = $twilio-\u003ecreateInstance('BBBB', 'CCCCC');\n\n        return new Response($message-\u003esid);\n    }\n}\n```\n\nInside a console command:\n\n```php\nclass SomeCommand extends ContainerAwareCommand\n{\n    protected function configure()\n    {\n        $this\n            -\u003esetName('some:comand')\n            -\u003esetDescription('A command')\n        ;\n    }\n\n    protected function execute(InputInterface $input, OutputInterface $output)\n    {\n        //returns an instance of Vresh\\TwilioBundle\\Service\\TwilioWrapper\n        $twilio = $this-\u003egetContainer()-\u003eget('twilio.api');\n\n        $message = $twilio-\u003eaccount-\u003emessages-\u003esendMessage(\n\t  '+14085551234', // From a Twilio number in your account\n\t  '+12125551234', // Text any number\n\t  \"Hello monkey!\"\n\t);\n\n        //get an instance of \\Service_Twilio\n        $otherInstance = $twilio-\u003ecreateInstance('BBBB', 'CCCCC');\n\n        print $message-\u003esid;\n\n    }\n}\n```\n\nCopyright / License\n-------------------\n\nSee [LICENSE](https://github.com/fridolin-koch/VreshTwilioBundle/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffridolin-koch%2Fvreshtwiliobundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffridolin-koch%2Fvreshtwiliobundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffridolin-koch%2Fvreshtwiliobundle/lists"}