{"id":19210645,"url":"https://github.com/mhndev/asmari","last_synced_at":"2025-07-12T16:05:52.976Z","repository":{"id":62527799,"uuid":"205532382","full_name":"mhndev/asmari","owner":"mhndev","description":"Asmari Insurance Company API php client","archived":false,"fork":false,"pushed_at":"2019-11-16T08:19:26.000Z","size":692,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T07:31:48.210Z","etag":null,"topics":["client-side","insurance","php","php-client"],"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/mhndev.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":"2019-08-31T10:54:38.000Z","updated_at":"2023-03-05T04:52:00.000Z","dependencies_parsed_at":"2022-11-02T15:31:10.332Z","dependency_job_id":null,"html_url":"https://github.com/mhndev/asmari","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mhndev/asmari","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fasmari","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fasmari/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fasmari/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fasmari/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhndev","download_url":"https://codeload.github.com/mhndev/asmari/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fasmari/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265016936,"owners_count":23698400,"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":["client-side","insurance","php","php-client"],"created_at":"2024-11-09T13:36:42.867Z","updated_at":"2025-07-12T16:05:52.954Z","avatar_url":"https://github.com/mhndev.png","language":"PHP","readme":"### Asmari Company PHP API Client\n\nyou can find usage of this library down here,\n\n```php\n\nini_set('display_errors', 1);\nini_set('display_startup_errors', 1);\nerror_reporting(E_ALL);\n\nrequire \"vendor/autoload.php\";\n\n$wsdl = \"http://example.com/wrapper/travel/soap/?wsdl\";\n$session_id = \"xyz\";\n\n$asmari_client = new \\mhndev\\asmari\\AsmariSoapClient($wsdl, $session_id);\n\n\n#### 1) method get_zone_by_country\n\nfor($i=1; $i\u003c=113; $i++) {\n    $res = $asmari_client-\u003egetZoneByCountry($i);\n    $returned_zones[] = $res;\n    $zone_countries[$res][] = $i;\n}\n\n\n#### 2) method get_price\n\n$get_price_data_object = (new \\mhndev\\asmari\\GetPriceDataObject())\n    -\u003esetBirthDate(DateTime::createFromFormat('Y-m-d', '2011-05-01'))\n    -\u003esetZoneId(1)\n    -\u003esetDurationId(2);\n\n$res = $asmari_client-\u003egetPrice($get_price_data_object);\n\n\nvar_dump($res);\ndie();\n\n\n\n\n#### 3) method issue\n\n$issue_data_object = (new \\mhndev\\asmari\\IssueDataObject())\n    -\u003esetBirthDate(DateTime::createFromFormat('Y-m-d', '2011-05-01'))\n    -\u003esetZoneId(1)\n    -\u003esetDurationId(2)\n    -\u003esetFirstName('Majid')\n    -\u003esetLastName('Abdolhosseini')\n    -\u003esetPassportNumber('J97634522')\n    -\u003esetNationalCode('0014297884');\n$res = $asmari_client-\u003eissue($issue_data_object);\n\nvar_dump($res);\ndie();\n\n\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhndev%2Fasmari","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhndev%2Fasmari","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhndev%2Fasmari/lists"}