{"id":50299309,"url":"https://github.com/splashifypro/sdk-php","last_synced_at":"2026-05-28T11:04:19.531Z","repository":{"id":355366266,"uuid":"1227813101","full_name":"splashifypro/sdk-php","owner":"splashifypro","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-25T13:39:19.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T15:28:52.372Z","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/splashifypro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-03T07:40:27.000Z","updated_at":"2026-05-25T13:39:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/splashifypro/sdk-php","commit_stats":null,"previous_names":["splashifypro/sdk-php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/splashifypro/sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splashifypro%2Fsdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splashifypro%2Fsdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splashifypro%2Fsdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splashifypro%2Fsdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splashifypro","download_url":"https://codeload.github.com/splashifypro/sdk-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splashifypro%2Fsdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33605450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":"2026-05-28T11:04:18.638Z","updated_at":"2026-05-28T11:04:19.524Z","avatar_url":"https://github.com/splashifypro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Splashify Pro — PHP SDK\n\n[![Packagist](https://img.shields.io/badge/packagist-splashifypro%2Fsdk-f28d1a?logo=packagist\u0026logoColor=white)](https://packagist.org/packages/splashifypro/sdk)\n[![PHP](https://img.shields.io/badge/php-8.1%2B-777bb4?logo=php\u0026logoColor=white)](https://packagist.org/packages/splashifypro/sdk)\n[![docs](https://img.shields.io/badge/docs-splashifypro.com-1B70FF)](https://docs.splashifypro.com/public-api)\n[![license](https://img.shields.io/badge/license-MIT-22c55e)](./LICENSE)\n\nOfficial PHP SDK for the [Splashify Pro](https://splashifypro.com) API —\nsend WhatsApp messages, transactional emails, manage contacts and\nconversations, and fire Meta Conversions events from your PHP application\n(Laravel, Symfony, WordPress, plain PHP — all supported).\n\n## Install\n\n```bash\ncomposer require splashifypro/sdk\n```\n\nRequires PHP 8.1+.\n\n## Get your API key\n\n1. **Sign in** to your Splashify Pro account at\n   [app.splashifypro.com](https://app.splashifypro.com).\n   No account yet? [Sign up free](https://app.splashifypro.com/auth/signup).\n\n2. Open the **Settings** dialog (gear icon, top right) → click the\n   **Developer** tile.\n   *Direct link:* [app.splashifypro.com/settings/developer](https://app.splashifypro.com/settings/developer)\n\n3. Under **API Keys**, click **Generate Secret Key**.\n\n4. Copy the key shown (starts with `sk_live_…`) and store it somewhere\n   secure — it's shown **only once**. If you lose it, generate a new one\n   and the old one stops working.\n\n5. Use it as the `SPLASHIFY_API_KEY` environment variable in your app.\n   **Never commit it to git or paste it into client-side code** — the\n   key carries full account access.\n\n\u003e **Tip:** Set up a [webhook URL](https://app.splashifypro.com/settings/developer)\n\u003e on the same page to receive delivery / read receipts and inbound message\n\u003e events.\n\n## Authentication\n\nThe SDK uses HTTP Basic with the API key as the username:\n\n```php\n\u003c?php\nrequire 'vendor/autoload.php';\n\nuse Splashifypro\\Configuration;\nuse Splashifypro\\Api\\MessagesApi;\nuse GuzzleHttp\\Client;\n\n$config = Configuration::getDefaultConfiguration()\n    -\u003esetUsername(getenv('SPLASHIFY_API_KEY'));\n\n$messages = new MessagesApi(new Client(), $config);\n```\n\n## Quickstart — send a WhatsApp text\n\n```php\n$result = $messages-\u003epublicMessagePost([\n    'type' =\u003e 'Text',\n    'countryCode' =\u003e '+91',\n    'phoneNumber' =\u003e '9999999999',\n    'data' =\u003e ['message' =\u003e 'Hi! Thanks for reaching out 👋'],\n]);\n\necho $result['id']; // message_id — use to poll status / correlate webhooks\n```\n\n## Send a WhatsApp template\n\n```php\n$messages-\u003epublicMessagePost([\n    'type' =\u003e 'Template',\n    'countryCode' =\u003e '+91',\n    'phoneNumber' =\u003e '9999999999',\n    'template' =\u003e [\n        'name' =\u003e 'order_confirmation',\n        'languageCode' =\u003e 'en',\n        'bodyValues' =\u003e ['Sayan', 'ORD-1042', '₹1,499'],\n        'buttonValues' =\u003e ['0' =\u003e ['https://shop.example.com/orders/1042']],\n    ],\n]);\n```\n\n## Send a transactional email\n\n\u003e Requires a verified sender domain. Set up at\n\u003e **https://app.splashifypro.com/settings/email-domain**.\n\n```php\nuse Splashifypro\\Api\\EmailApi;\n\n$email = new EmailApi(new Client(), $config);\n\n$email-\u003epublicEmailSendPost([\n    'to' =\u003e 'customer@example.com',\n    'subject' =\u003e 'Your receipt for Order #1042',\n    'html' =\u003e '\u003ch1\u003eThanks!\u003c/h1\u003e\u003cp\u003eOrder #1042 confirmed.\u003c/p\u003e',\n    'text' =\u003e 'Thanks! Order #1042 confirmed.',\n    'from_email' =\u003e 'billing@yourdomain.com',\n    'from_name' =\u003e 'Acme Inc.',\n]);\n```\n\n## Available APIs\n\n| Class                | What it does                                                |\n| -------------------- | ----------------------------------------------------------- |\n| `MessagesApi`        | Send WhatsApp messages (text, template, media, interactive) |\n| `EmailApi`           | Send transactional + templated emails                       |\n| `ContactsApi`        | List + filter contacts                                      |\n| `ConversationsApi`   | Assign chats to team members                                |\n| `MetaConversionsApi` | Fire Meta Pixel / Conversions API events                    |\n\nFull reference, request/response shapes, and per-endpoint examples:\n**https://docs.splashifypro.com/public-api**\n\n## Laravel example\n\n```php\n// In a service or controller\nuse Splashifypro\\Configuration;\nuse Splashifypro\\Api\\MessagesApi;\nuse GuzzleHttp\\Client;\n\nclass WhatsAppService\n{\n    private MessagesApi $messages;\n\n    public function __construct()\n    {\n        $config = Configuration::getDefaultConfiguration()\n            -\u003esetUsername(config('services.splashifypro.key'));\n        $this-\u003emessages = new MessagesApi(new Client(), $config);\n    }\n\n    public function sendOtp(string $phone, string $code): void\n    {\n        $this-\u003emessages-\u003epublicMessagePost([\n            'type' =\u003e 'Template',\n            'phoneNumber' =\u003e $phone,\n            'template' =\u003e [\n                'name' =\u003e 'verification_code',\n                'languageCode' =\u003e 'en',\n                'bodyValues' =\u003e [$code],\n            ],\n        ]);\n    }\n}\n```\n\nAdd to `config/services.php`:\n\n```php\n'splashifypro' =\u003e [\n    'key' =\u003e env('SPLASHIFY_API_KEY'),\n],\n```\n\n## Error handling\n\n```php\nuse Splashifypro\\ApiException;\n\ntry {\n    $result = $messages-\u003epublicMessagePost([...]);\n} catch (ApiException $e) {\n    error_log(\"HTTP \" . $e-\u003egetCode() . \": \" . $e-\u003egetResponseBody());\n}\n```\n\n## Rate limits\n\nPer-key limits depend on your plan tier. Hitting the limit returns HTTP 429 —\nthe response body includes `Retry-After`. Tier and current consumption are\nvisible at https://app.splashifypro.com/settings/developer.\n\n## Support\n\n- **Issues / bug reports:** [github.com/splashifypro/sdk-php/issues](https://github.com/splashifypro/sdk-php/issues)\n- **Documentation:** [docs.splashifypro.com/public-api](https://docs.splashifypro.com/public-api)\n- **Email support:** support@splashifypro.in\n\n## License\n\n[MIT](./LICENSE)\n\n---\n\nThis SDK is auto-generated from the official OpenAPI specification. Pull\nrequests for SDK-side improvements (typing, ergonomic wrappers, framework\nadapters, etc.) are welcome; underlying API changes should be filed against\nthe documentation site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplashifypro%2Fsdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplashifypro%2Fsdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplashifypro%2Fsdk-php/lists"}