{"id":15691773,"url":"https://github.com/unicodeveloper/laravel-jusibe","last_synced_at":"2025-05-07T23:47:09.756Z","repository":{"id":57075425,"uuid":"54202270","full_name":"unicodeveloper/laravel-jusibe","owner":"unicodeveloper","description":"Laravel 5 Package for Jusibe https://jusibe.com","archived":false,"fork":false,"pushed_at":"2019-11-12T13:37:32.000Z","size":12,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T04:34:15.945Z","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/unicodeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2016-03-18T13:16:22.000Z","updated_at":"2019-11-12T13:35:23.000Z","dependencies_parsed_at":"2022-08-24T14:55:43.073Z","dependency_job_id":null,"html_url":"https://github.com/unicodeveloper/laravel-jusibe","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-jusibe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-jusibe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-jusibe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-jusibe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicodeveloper","download_url":"https://codeload.github.com/unicodeveloper/laravel-jusibe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973622,"owners_count":21834105,"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-10-03T18:24:38.215Z","updated_at":"2025-05-07T23:47:09.741Z","avatar_url":"https://github.com/unicodeveloper.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-jusibe\n\n[![Latest Stable Version](https://poser.pugx.org/unicodeveloper/laravel-jusibe/v/stable.svg)](https://packagist.org/packages/unicodeveloper/laravel-jusibe)\n[![License](https://poser.pugx.org/unicodeveloper/laravel-jusibe/license.svg)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/unicodeveloper/laravel-jusibe.svg)](https://travis-ci.org/unicodeveloper/laravel-jusibe)\n[![Quality Score](https://img.shields.io/scrutinizer/g/unicodeveloper/laravel-jusibe.svg?style=flat-square)](https://scrutinizer-ci.com/g/unicodeveloper/laravel-jusibe)\n[![Total Downloads](https://img.shields.io/packagist/dt/unicodeveloper/laravel-jusibe.svg?style=flat-square)](https://packagist.org/packages/unicodeveloper/laravel-jusibe)\n\n\u003e Laravel 5 Wrapper for Jusibe\n\n## Installation\n\nBefore you go ahead to install the package, make sure you have [Jusibe PHP library](https://github.com/unicodeveloper/jusibe-php-lib) installed.\n\n[PHP](https://php.net) 7.0+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required\nFirst, pull in the package through Composer.\n\n``` bash\n$ composer require unicodeveloper/laravel-jusibe\n```\n\nAnother alternative is to simply add the following line to the require block of your `composer.json` file.\n\n```\n\"unicodeveloper/laravel-jusibe\": \"1.0.*\"\n```\n\nThen run `composer install` or `composer update` to download it and have the autoloader updated.\n\nOnce Laravel Jusibe is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.\n\n* `Unicodeveloper\\JusibePack\\JusibeServiceProvider::class`\n\nAlso, register the Facade like so:\n\n```php\n'aliases' =\u003e [\n    ...\n    'Jusibe' =\u003e Unicodeveloper\\JusibePack\\Facades\\Jusibe::class,\n    ...\n]\n```\n\n## Configuration\n\nYou can publish the configuration file using this command:\n\n```bash\nphp artisan vendor:publish --provider=\"Unicodeveloper\\JusibePack\\JusibeServiceProvider\"\n```\n\nA configuration-file named `jusibe.php` with some sensible defaults will be placed in your `config` directory:\n\n```php\n\u003c?php\n\nreturn [\n    /**\n     * Public Key From Jusibe Dashboard\n     *\n     */\n    'publicKey' =\u003e getenv('JUSIBE_PUBLIC_KEY'),\n    /**\n     * Access Token From Jusibe  Dashboard\n     *\n     */\n    'accessToken' =\u003e getenv('JUSIBE_ACCESS_TOKEN'),\n];\n```\n\nGet the `publicKey` and `accessToken` from [Jusibe API Keys Section](https://jusibe.com/cp/?section=api-keys)\n\n## Usage\n\nAvailable methods for use are:\n```php\n\n/**\n * Send SMS using the Jusibe API\n * @param  array $payload\n * @return object\n */\nJusibe::sendSMS($payload)-\u003egetResponse();\n\n/**\n * Check the available SMS credits left in your Jusibe account\n * @return object\n */\nJusibe::checkAvailableCredits()-\u003egetResponse();\n\n/**\n * Check the delivery status of a sent SMS\n * @param  string $messageID\n * @return object\n */\nJusibe::checkDeliveryStatus('8nb1wrgdjw')-\u003egetResponse();\n```\n\n### Send an SMS\n\n```php\n\n\u003c?php\n\n$message = \"I LOVE YOU, BABY\";\n\n$payload = [\n    'to' =\u003e '7079740987',\n    'from' =\u003e 'PROSPER DATING NETWORK',\n    'message' =\u003e $message\n];\n\ntry {\n    $response = Jusibe::sendSMS($payload)-\u003egetResponse();\n    print_r($response);\n} catch(Exception $e) {\n    echo $e-\u003egetMessage();\n}\n\n```\n\n### Check SMS Credits\n\n```php\n\n\u003c?php\n\ntry {\n   $response = Jusibe::checkAvailableCredits()-\u003egetResponse();\n   print_r($response);\n} catch(Exception $e) {\n   echo $e-\u003egetMessage();\n}\n\n```\n\n### Check Delivery Status\n\n```php\n\n\u003c?php\n\ntry {\n    $response = Jusibe::checkDeliveryStatus('8nb1wrgdjw')-\u003egetResponse();\n    print_r($response);\n} catch(Exception $e) {\n    echo $e-\u003egetMessage();\n}\n\n```\n\n### Send a Bulk SMS\n\n```php\n\n\u003c?php\n\n// include your composer dependencies\nrequire_once 'vendor/autoload.php';\n\nuse Unicodeveloper\\Jusibe\\Jusibe;\n\n$publicKey = 'xxxxxxxxxxxxxx';\n$accessToken = 'xxxxxxxxxxxxxx';\n\n$jusibe = new Jusibe($publicKey, $accessToken);\n\n$message = \"You are invited for party!!!\";\n\n$payload = [\n    'to' =\u003e '7079740987,8077139164',\n    'from' =\u003e 'DOZIE GROUP',\n    'message' =\u003e $message\n];\n\ntry {\n    $response = $jusibe-\u003esendBulkSMS($payload)-\u003egetResponse();\n    print_r($response);\n} catch(Exception $e) {\n    echo $e-\u003egetMessage();\n}\n\n```\n\n**Response Info for Developer**\n\n![Send BulkSMS Response](https://user-images.githubusercontent.com/19904579/46137560-cf37bf00-c241-11e8-9dc6-7096bb0278f4.png)\n\n### Check Bulk Delivery Status\n\n```php\n\n\u003c?php\n\n// include your composer dependencies\nrequire_once 'vendor/autoload.php';\n\nuse Unicodeveloper\\Jusibe\\Jusibe;\n\n$publicKey = 'xxxxxxxxxxxxxx';\n$accessToken = 'xxxxxxxxxxxxxx';\n\n$jusibe = new Jusibe($publicKey, $accessToken);\n\ntry {\n    $response = $jusibe-\u003echeckBulkDeliveryStatus('n2v9gby1jy')-\u003egetResponse();\n    print_r($response);\n} catch(Exception $e) {\n    echo $e-\u003egetMessage();\n}\n\n```\n\n**Response Info for Developer**\n\n![Check Bulk Delivery Status Response](https://user-images.githubusercontent.com/19904579/46137669-0a39f280-c242-11e8-9143-8b3ec68ed84f.png)\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\nYou can run the tests with:\n\n```bash\nvendor/bin/phpunit run\n```\n\nAlternatively, you can run the tests like so:\n\n```bash\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Prosper Otemuyiwa](https://twitter.com/unicodeveloper)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Security\n\nIf you discover any security related issues, please email [prosperotemuyiwa@gmail.com](prosperotemuyiwa@gmail.com) instead of using the issue tracker.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-jusibe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicodeveloper%2Flaravel-jusibe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-jusibe/lists"}