{"id":15023466,"url":"https://github.com/kulikov-dev/ups-autocomplete","last_synced_at":"2025-07-08T01:14:55.146Z","repository":{"id":74412047,"uuid":"574052149","full_name":"kulikov-dev/UPS-autocomplete","owner":"kulikov-dev","description":"Address validation and auto-complete for PHP\u003e=5.5","archived":false,"fork":false,"pushed_at":"2022-12-04T21:44:04.000Z","size":538,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T21:51:54.464Z","etag":null,"topics":["address-validation","api","auto-complete","autocomplete-address","php","php55","soap","ups","validation"],"latest_commit_sha":null,"homepage":"","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/kulikov-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-04T09:21:00.000Z","updated_at":"2023-09-28T11:44:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9676bf82-e8d6-4dd7-b367-02479189c63f","html_url":"https://github.com/kulikov-dev/UPS-autocomplete","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulikov-dev%2FUPS-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulikov-dev%2FUPS-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulikov-dev%2FUPS-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulikov-dev%2FUPS-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kulikov-dev","download_url":"https://codeload.github.com/kulikov-dev/UPS-autocomplete/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103915,"owners_count":21048244,"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":["address-validation","api","auto-complete","autocomplete-address","php","php55","soap","ups","validation"],"created_at":"2024-09-24T19:59:06.001Z","updated_at":"2025-04-09T19:52:47.861Z","avatar_url":"https://github.com/kulikov-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Address validation and auto-comlete using [UPS API](https://www.ups.com/tr/en/services/technology-integration/us-address-validation.page) for PHP 5.5 \u003e=\n\nThe tool allows to work with UPS address validation tool through the SOAP, realizing operations of validation and auto-complete addresses. Contains two methods:\n * \u003cb\u003evalidate_address\u003c/b\u003e - to validate an address or get a list of possible address candidates;\n * \u003cb\u003eget_address_field_candidates\u003c/b\u003e - to get a list of possible candidates for a specific field (like state, zip or address). \n\nBefore work you need to initialize the tool with your credentials:\n``` php\n    /**\n     * Setup API credentials\n     */\n    public function set_credentials()\n    {\n        $this-\u003euser_name = '';          // TODO initialize credentials from your storage.\n        $this-\u003epassword = '';\n        $this-\u003elicense_number = '';\n    }\n```\n\nAfter that it is ready to work. Below are sample of auto-completing a field 'address':\n``` php\ntry {\n    $output = $ups_connector-\u003eget_address_field_candidates('US', $zip, $state, $city, $street, $type);\n} catch (Exception $e) {\n    echo 'ERROR: ' . $e-\u003egetMessage();\n    die;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulikov-dev%2Fups-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkulikov-dev%2Fups-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulikov-dev%2Fups-autocomplete/lists"}