{"id":14971250,"url":"https://github.com/moceanapi/yii-mocean","last_synced_at":"2026-03-03T04:35:36.309Z","repository":{"id":52417928,"uuid":"161600641","full_name":"MoceanAPI/yii-mocean","owner":"MoceanAPI","description":"✉📲 SDK for PHP Yii Framework to send SMS for FREE with MoceanAPI.","archived":false,"fork":false,"pushed_at":"2021-04-29T19:58:34.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T20:43:32.200Z","etag":null,"topics":["mocean","moceanapi","sms","yii","yii2"],"latest_commit_sha":null,"homepage":"https://moceanapi.com/","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/MoceanAPI.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":"2018-12-13T07:30:35.000Z","updated_at":"2019-06-27T01:53:39.000Z","dependencies_parsed_at":"2022-09-13T17:22:58.113Z","dependency_job_id":null,"html_url":"https://github.com/MoceanAPI/yii-mocean","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fyii-mocean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fyii-mocean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fyii-mocean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fyii-mocean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MoceanAPI","download_url":"https://codeload.github.com/MoceanAPI/yii-mocean/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240298400,"owners_count":19779280,"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":["mocean","moceanapi","sms","yii","yii2"],"created_at":"2024-09-24T13:44:55.500Z","updated_at":"2026-03-03T04:35:36.273Z","avatar_url":"https://github.com/MoceanAPI.png","language":"PHP","readme":"Yii Mocean\n===============\n[![Latest Stable Version](https://img.shields.io/packagist/v/mocean/yii-mocean.svg)](https://packagist.org/packages/mocean/yii-mocean)\n[![Build Status](https://img.shields.io/travis/com/MoceanAPI/yii-mocean.svg)](https://travis-ci.com/MoceanAPI/yii-mocean)\n[![StyleCI](https://github.styleci.io/repos/161600641/shield?branch=master)](https://github.styleci.io/repos/161600641)\n[![License](https://img.shields.io/packagist/l/mocean/yii-mocean.svg)](https://packagist.org/packages/mocean/yii-mocean)\n[![Total Downloads](https://img.shields.io/packagist/dt/mocean/yii-mocean.svg)](https://packagist.org/packages/mocean/yii-mocean)\n\nYii Mocean API Integration\n\n## Installation\n\nTo install the library, run this command in terminal:\n```bash\ncomposer require mocean/yii-mocean\n```\n\nSet configuration in config file\n```php\n'components' =\u003e [\n    'mocean' =\u003e [\n        'class' =\u003e 'YiiMocean\\MoceanServiceProvider',\n        'defaults' =\u003e 'main',\n        'accounts' =\u003e [ //define your account here\n            'main' =\u003e [\n                'api_key' =\u003e 'mainAccountApiKey',\n                'api_secret' =\u003e 'mainAccountApiSecret'\n            ],\n            'secondary' =\u003e [ //if you have more then one account\n                'api_key' =\u003e 'secondaryAccountApiKey',\n                'api_secret' =\u003e 'secondaryAccountApiSecret'\n            ]\n        ],\n    ],\n]\n```\n\n## Usage\n\nSend a text message\n\n```php\n//will be using the account defined in defaults\n//see below if you have multiple accounts\nYii::$app-\u003emocean-\u003emessage()-\u003esend([\n    'mocean-to' =\u003e '60123456789',\n    'mocean-from' =\u003e 'MOCEAN',\n    'mocean-text' =\u003e 'Hello World'\n])\n```\n\nIf you have multiple account defined in config\n\n```php\nYii::$app-\u003emocean-\u003eusing('secondary')-\u003emessage()-\u003esend(...);\nYii::$app-\u003emocean-\u003eusing('third')-\u003emessage()-\u003esend(...);\n```\n\n## License\n\nLaravel Mocean is licensed under the [MIT License](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoceanapi%2Fyii-mocean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoceanapi%2Fyii-mocean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoceanapi%2Fyii-mocean/lists"}