{"id":41912478,"url":"https://github.com/nextgen-tech/multiinfo-php","last_synced_at":"2026-01-25T16:11:38.693Z","repository":{"id":40719080,"uuid":"300592079","full_name":"nextgen-tech/multiinfo-php","owner":"nextgen-tech","description":"PHP wrapper that helps communicating with Plus MultiInfo API","archived":false,"fork":false,"pushed_at":"2022-06-25T12:28:12.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T07:29:54.342Z","etag":null,"topics":["api","multiinfo","php","sms"],"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":null,"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":"2020-10-02T11:22:34.000Z","updated_at":"2022-06-25T12:28:13.000Z","dependencies_parsed_at":"2022-09-01T07:01:55.231Z","dependency_job_id":null,"html_url":"https://github.com/nextgen-tech/multiinfo-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nextgen-tech/multiinfo-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Fmultiinfo-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Fmultiinfo-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Fmultiinfo-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Fmultiinfo-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextgen-tech","download_url":"https://codeload.github.com/nextgen-tech/multiinfo-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextgen-tech%2Fmultiinfo-php/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":["api","multiinfo","php","sms"],"created_at":"2026-01-25T16:11:37.830Z","updated_at":"2026-01-25T16:11:38.684Z","avatar_url":"https://github.com/nextgen-tech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MultiInfo PHP\n\nThis package was created to help communicating with Plus MultiInfo API.\n\n# Implemented Endpoints\n\nPackage has implementented most Requests, Parsers and Responses of the API\n\n## Sending\n\n* `SendSms` - send short message (up to 160 characters)\n* `SendSmsRaw` - send binary message\n* `SendSmsLong` - send long message (up to 1377 characters)\n* `Package` - send bundle of short messages\n\n## Receiving\n\n* `GetSms` - read received messages\n\n## Status\n\n* `InfoSms` - get the status of sent message\n* `PackageInfo` - get the status of sent bundle\n\n# Requirements\n\n| Version | PHP    |\n| ------- | ------ |\n| 0.x     | \u003e= 7.4 |\n\n# Installation\n\n```sh\ncomposer require nextgen-tech/multiinfo\n```\n\n# Usage\n\nFirst, you need to initiate base classes.\n\n```php\nuse NGT\\MultiInfo\\Certificate;\nuse NGT\\MultiInfo\\Credentials;\nuse NGT\\MultiInfo\\Handler;\nuse NGT\\MultiInfo\\Url;\nuse NGT\\MultiInfo\\Connections\\HttpConnection;\n\n// Create instance of credentials.\n$credentials = new Credentials(\n    $login,     // Login of API user\n    $password,  // Password of API user\n    $serviceId  // Service ID\n);\n\n// Create instance of certificate.\n$certificate = new Certificate(\n    $path,            // Path to certificate (CURLOPT_SSLCERT)\n    $privateKeyPath,  // Path to certificate private key (CURLOPT_SSLKEY)\n    $password,        // Certificate password (CURLOPT_SSLCERTPASSWD)\n    $type             // Certificate type - defaults to PEM (CURLOPT_SSLCERTTYPE)\n);\n\n// Create instance of API URL.\n$url = Url::api1(); // or URL::api2(), depends of service configuration\n\n// Create instance of connection.\n$connection = new HttpConnection($url, $certificate);\n\n// Create handler instance.\n$handle = new Handler($connection);\n```\n\nThen you can create Request, send it through Handler and receive Response.\n\n```php\n$request = new \\NGT\\MultiInfo\\Requests\\SendSmsRequest($credentials);\n\n$request-\u003esetContent('message');                // Required, content of the message\n$request-\u003esetDestination('48123456789');        // Required, phone number of the recipient\n$request-\u003esetValidTo(new DateTime('+7 days'));  // Optional, period of validity of the message\n$request-\u003esetRequestDeliveryNotification(true); // Optional, indicates whether the delivery notification should be requested\n$request-\u003esetZeroClass(true);                   // Optional, indicates whether the message should be sent as zero class\n$request-\u003esetAdvancedEncoding(true);            // Optional, indicates whether the message should use advanced encoding\n$request-\u003esetDeleteWhenProcessed(true);         // Optional, indicates whether the message should be deleted after processing.\n$request-\u003esetReplyTo(12345);                    // Optional, ID of message to which the message is replying\n$request-\u003esetOrigin('CUSTOM');                  // Optional, origin (nadpis) of the message.\n\n/** @var \\NGT\\MultiInfo\\Responses\\SendSmsResponse */\n$response = $handler-\u003ehandle($request);\n\n$response-\u003egetMessageId();     // ID of the message\n$response-\u003egetSender();        // Phone number of the sender\n$response-\u003egetReceiver();      // Phone number of the receiver\n$response-\u003egetContentType();   // Content type of the message\n$response-\u003egetContent();       // Content of the message\n$response-\u003egetProtocolId();    // ID of the protocol\n$response-\u003egetCodingScheme();  // Coding scheme\n$response-\u003egetServiceId();     // ID of the service\n$response-\u003egetConnectorId();   // ID of the connector\n$response-\u003egetReceivedAt();    // Date of receiving message\n```\n\nEach endpoint has its own Request, Parser and Response. It is highly recommended to look into `Requests` and `Responses` directories in order to get the list of all available methods.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextgen-tech%2Fmultiinfo-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextgen-tech%2Fmultiinfo-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextgen-tech%2Fmultiinfo-php/lists"}