{"id":41825971,"url":"https://github.com/digitregroup/php-myelefant-client","last_synced_at":"2026-01-25T08:13:24.166Z","repository":{"id":56968987,"uuid":"167383858","full_name":"digitregroup/php-myelefant-client","owner":"digitregroup","description":"myElefant PHP Client - myElefant is able to send SMS, Facebook Messenger, Push, Viber, Wechat, RCS","archived":false,"fork":false,"pushed_at":"2020-07-10T06:23:30.000Z","size":394,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-02T21:43:32.182Z","etag":null,"topics":["facebook-messenger","myelefant","php","push","rcs","sdk","sms","viber","wechat"],"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/digitregroup.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":null,"support":null}},"created_at":"2019-01-24T14:48:30.000Z","updated_at":"2023-03-01T17:56:38.000Z","dependencies_parsed_at":"2022-08-21T10:50:39.626Z","dependency_job_id":null,"html_url":"https://github.com/digitregroup/php-myelefant-client","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/digitregroup/php-myelefant-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitregroup%2Fphp-myelefant-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitregroup%2Fphp-myelefant-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitregroup%2Fphp-myelefant-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitregroup%2Fphp-myelefant-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitregroup","download_url":"https://codeload.github.com/digitregroup/php-myelefant-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitregroup%2Fphp-myelefant-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28748624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T07:58:02.558Z","status":"ssl_error","status_checked_at":"2026-01-25T07:57:57.153Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["facebook-messenger","myelefant","php","push","rcs","sdk","sms","viber","wechat"],"created_at":"2026-01-25T08:13:23.537Z","updated_at":"2026-01-25T08:13:24.136Z","avatar_url":"https://github.com/digitregroup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyElefant\n\n[![CircleCI](https://circleci.com/gh/digitregroup/php-myelefant-client.svg?style=shield)](https://circleci.com/gh/digitregroup/php-myelefant-client)\n[![Latest Stable Version](https://poser.pugx.org/digitregroup/php-myelefant-client/version)](https://packagist.org/packages/digitregroup/php-myelefant-client)\n[![Total Downloads](https://poser.pugx.org/digitregroup/php-myelefant-client/downloads)](https://packagist.org/packages/digitregroup/php-myelefant-client)\n\nMyElefant is a service for sending sms / push notifications etc...\n\nhttps://myelefant.com/\n\nThis plugin is for sending sms campaigns with MyElefant's APIs.\n\nhttps://platform.myelefant.com/api-doc.html\n\n# Configuration\n\nPhp ^5.6\n\n# Before use\n\n**Get your secret key :**\n\nYour MyElefant secret Key [here](https://platform.myelefant.com/user/options/)\n\n**Create Campaign on MyElefant Inteface :**\n\nThe creation of a campaign is done by duplicating an existing one. You can customize your application on the myElefant interface and then automatically schedule similar campaigns to be sent.\n\n**Get campaign UUID :**\n\nWhen the campaign is created, a campaignId is created too.\nThis ID is displayed in the list of your campaigns when you click on \"Show IDs\".\n\n# Installation\n\n    composer require digitregroup/php-myelefant-client\n\n**Usage**\n\nYou can send a campaign with the parameters provided when creating the campaign (message and sender) or by using custom parameters.\n\n**Create and send new campaign :** \n\n- With your custom's parameters:\n\n\n      \u003c?php\n\n      use myelefant\\MyElefant;\n\n      $client = new MyElefant(['secretKey' =\u003e '***SECRET_KEY***'])\n\n      $client-\u003esendSms\n                      (\n                      'campaignId',\n                       'campaignName',\n                       [['33612345678',(optional)'Name',(optional)'Surname']],\n                       '2019-01-01 12:00',\n                       'Your message',\n                       'Your sender'\n                      );\n\n\n- With default template's parameters\n\n        \u003c?php\n\n        $client = new MyElefant(['secretKey' =\u003e '***SECRET_KEY***'])\n\n        $client-\u003esendSms\n            (\n            'campaignId',\n            'campaignName',\n            [['33612345678',(optional)'Name',(optional)'Surname']],\n            '2019-01-01 12:00'\n            )\n\nField's formats :\n\n- Secret Key :\n\n    String\n\n- Campaign Id : \n    \n    String\n\n- Campaign name\n\n    String\n\n- Contact :\n\n    Multidimensional array\n            \n      Example: [['33611223344',(optionnal)'John',(optionnal)'Doe'],[...]]\n\n- Send Date :\n\n    String\n\n      Example : 'Y-m-d H:i' -\u003e '2019-01-25 12:59'\n\n- Message :\n\n    String\n\n- Sender :\n\n   String\n   \n**Send sms with existing campaign**\n\nImportant : To send SMS messages with custom fields, you must use tags when you create the campaign in the MyElefant interface.\n\nExample : \n\n[![Example](https://image.noelshack.com/fichiers/2019/08/4/1550760212-doc.png)](https://image.noelshack.com/fichiers/2019/08/4/1550760212-doc.png)\n\nthen, in the code :  \n\n    \u003c?php\n\n    use myelefant\\MyElefant;\n\n    $client = new MyElefant(['secretKey' =\u003e '***SECRET_KEY***'])\n\n    $client-\u003esendSms(\n                    'campaignId',\n                     [\n                     '33612345678',\n                     'This content replace [[B]]',\n                     'This content replace [[C]]',\n                     'This content replace [[D]]'\n                     ]\n                    );\n\nTo display phone number using [[A]] tag in your template.\n\n# Debug\n\nTo activate logging system, add this parameter.\n\n\n    $client = new MyElefant(['secretKey' =\u003e '***SECRET_KEY***', 'debug'=\u003e true])\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitregroup%2Fphp-myelefant-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitregroup%2Fphp-myelefant-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitregroup%2Fphp-myelefant-client/lists"}