{"id":19852592,"url":"https://github.com/onramplab/php-twilio-enhancement","last_synced_at":"2026-04-11T16:33:37.050Z","repository":{"id":73308183,"uuid":"604534227","full_name":"OnrampLab/php-twilio-enhancement","owner":"OnrampLab","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-22T03:43:23.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T13:28:01.834Z","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/OnrampLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-21T09:06:16.000Z","updated_at":"2023-02-21T09:06:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"6459a5fb-5add-47c7-8128-bfd487641b4e","html_url":"https://github.com/OnrampLab/php-twilio-enhancement","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"a0dfda969edf5d443e997c209af60ab6c97fd01a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":"OnrampLab/composer-package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnrampLab%2Fphp-twilio-enhancement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnrampLab%2Fphp-twilio-enhancement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnrampLab%2Fphp-twilio-enhancement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnrampLab%2Fphp-twilio-enhancement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OnrampLab","download_url":"https://codeload.github.com/OnrampLab/php-twilio-enhancement/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241241473,"owners_count":19932756,"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":[],"created_at":"2024-11-12T14:03:37.486Z","updated_at":"2025-11-24T17:11:45.769Z","avatar_url":"https://github.com/OnrampLab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-twilio-enhancement\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![CircleCI](https://circleci.com/gh/OnrampLab/php-twilio-enhancement.svg?style=shield)](https://circleci.com/gh/OnrampLab/php-twilio-enhancement)\n[![Total Downloads](https://img.shields.io/packagist/dt/onramplab/php-twilio-enhancement.svg?style=flat-square)](https://packagist.org/packages/onramplab/php-twilio-enhancement)\n\nIf you want to test your twilio/sdk by using Twilio API fake response, you can use this package to make it.\n\n## Requirements\n\n- PHP \u003e= 7.4;\n- composer.\n\n## Installation\n\n```bash\ncomposer require onramplab/php-twilio-enhancement\n```\n\n## Features\n\n- Able to log Twilio API response\n- Able to mock  API response for testing\n\n## Tricks\n\n### How to add custom HTTP Client to Twilio Rest Client\n\nYou can check out this document: [Call the Twilio REST API with a custom TwilioRestClient in PHP](https://www.twilio.com/docs/libraries/php/custom-http-clients-php).\n\nExample code for Laravel:\n\n```php\nuse Onramplab\\TwilioEnhancement\\CurlClient;\nuse Psr\\Log\\LoggerInterface;\nuse Twilio\\Rest\\Client;\n\n$logger = app()-\u003emake(LoggerInterface::class);\n$httpClient = new CurlClient([], $logger);\n$twilio = new Client($sid, $token, null, null, $httpClient);\n```\n\n## Tech Features\n\n- PSR-4 autoloading compliant structure;\n- PSR-2 compliant code style;\n- Unit-Testing with PHPUnit 6;\n- Comprehensive guide and tutorial;\n- Easy to use with any framework or even a plain php file;\n- Useful tools for better code included.\n\n## Useful Tools\n\n## Running Tests:\n\n    php vendor/bin/phpunit\n\n or\n\n    composer test\n\n## Code Sniffer Tool:\n\n    php vendor/bin/phpcs --standard=PSR2 src/\n\n or\n\n    composer psr2check\n\n## Code Auto-fixer:\n\n    composer psr2autofix\n    composer insights:fix\n    rector:fix\n\n## Building Docs:\n\n    php vendor/bin/phpdoc -d \"src\" -t \"docs\"\n\n or\n\n    composer docs\n\n## Changelog\n\nTo keep track, please refer to [CHANGELOG.md](https://github.com/Onramplab/php-twilio-enhancement/blob/master/CHANGELOG.md).\n\n## Contributing\n\n1. Fork it.\n2. Create your feature branch (git checkout -b my-new-feature).\n3. Make your changes.\n4. Run the tests, adding new ones for your own code if necessary (phpunit).\n5. Commit your changes (git commit -am 'Added some feature').\n6. Push to the branch (git push origin my-new-feature).\n7. Create new pull request.\n\nAlso please refer to [CONTRIBUTION.md](https://github.com/Onramplab/php-twilio-enhancement/blob/master/CONTRIBUTION.md).\n\n## License\n\nPlease refer to [LICENSE](https://github.com/Onramplab/php-twilio-enhancement/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonramplab%2Fphp-twilio-enhancement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonramplab%2Fphp-twilio-enhancement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonramplab%2Fphp-twilio-enhancement/lists"}