{"id":41912486,"url":"https://github.com/nextgen-tech/laravel-multiinfo","last_synced_at":"2026-01-25T16:11:39.602Z","repository":{"id":57026055,"uuid":"419743826","full_name":"nextgen-tech/laravel-multiinfo","owner":"nextgen-tech","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-13T11:00:14.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-06T04:13:50.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextgen-tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-21T13:53:48.000Z","updated_at":"2021-12-13T11:00:12.000Z","dependencies_parsed_at":"2022-08-23T16:20:34.874Z","dependency_job_id":null,"html_url":"https://github.com/nextgen-tech/laravel-multiinfo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nextgen-tech/laravel-multiinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Flaravel-multiinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Flaravel-multiinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Flaravel-multiinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Flaravel-multiinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextgen-tech","download_url":"https://codeload.github.com/nextgen-tech/laravel-multiinfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Flaravel-multiinfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: 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":[],"created_at":"2026-01-25T16:11:39.152Z","updated_at":"2026-01-25T16:11:39.592Z","avatar_url":"https://github.com/nextgen-tech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel MultiInfo\n\nMultiInfo integration for Laravel.\n\n## Installation\n\n```bash\ncomposer require nextgen-tech/laravel-multiinfo\n```\n\n## Configuration\n\n```\nMULTIINFO_CONNECTION=                    # Connection type (http is the only one supported)\nMULTIINFO_API_VERSION=                   # API version (api1 or api2)\nMULTIINFO_CERTIFICATE_PUBLIC_KEY_PATH=   # Path to certificate public key\nMULTIINFO_CERTIFICATE_PRIVATE_KEY_PATH=  # Path to certificate private key\nMULTIINFO_CERTIFICATE_PASSWORD=          # Certificate password\nMULTIINFO_CREDENTIALS_LOGIN=             # Service login\nMULTIINFO_CREDENTIALS_PASSWORD=          # Service password\nMULTIINFO_CREDENTIALS_SERVICE_ID=        # Service ID\n```\n\nCertificate needs to be in PEM format. You can convert P12 to PEM using this two scripts:\n\n```sh\nopenssl pkcs12 -in \"/path/to/cert.p12\" -out public_key.pem -nocerts -nodes\nopenssl pkcs12 -in \"/path/to/cert.p12\" -out private_key.pem -clcerts -nokeys\n```\n\n## Usage\n\nVia notification channel:\n\n```php\n// app/Models/User.php\n\nnamespace App\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Notifications\\Notifiable;\nuse Illuminate\\Notifications\\Notification;\n\nclass User extends Model\n{\n    use Notifiable;\n\n    ...\n\n    public function routeNotificationForMultiinfo(?Notification $notification): string\n    {\n        return $this-\u003ephone;\n    }\n\n    ...\n}\n\n// app/Notifications/ExampleNotification.php\n\nnamespace App\\Notifications;\n\nuse Illuminate\\Notifications\\Notification;\nuse NGT\\Laravel\\MultiInfo\\MultiInfoMessage;\n\nclass ExampleNotification extends Notification\n{\n    public function via($notifiable): array\n    {\n        return ['multiinfo'];\n    }\n\n    public function toMultIinfo($notifiable): MultiInfoMessage\n    {\n        return (new MultiInfoMessage())\n            -\u003econtent('test message');\n    }\n}\n```\n\nOr directly via handler:\n\n```php\nuse NGT\\MultiInfo\\Handler;\nuse NGT\\MultiInfo\\Requests\\SendSmsRequest;\n\n$handler = app(Handler::class);\n\n$request = app(SendSmsRequest::class)\n    -\u003esetDestination('123123123')\n    -\u003esetContent('test message');\n\n/** @var \\NGT\\MultiInfo\\Responses\\SendSmsResponse */\n$response = $handler-\u003ehandle($request);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextgen-tech%2Flaravel-multiinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextgen-tech%2Flaravel-multiinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextgen-tech%2Flaravel-multiinfo/lists"}