{"id":20925284,"url":"https://github.com/ziptastic/ziptastic-php-fluent","last_synced_at":"2026-02-09T09:05:51.650Z","repository":{"id":57091387,"uuid":"54980871","full_name":"Ziptastic/ziptastic-php-fluent","owner":"Ziptastic","description":"This is an ziptastic client for php using guzzle with two ways to use it.","archived":false,"fork":false,"pushed_at":"2017-12-05T06:51:45.000Z","size":34,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-22T15:51:20.733Z","etag":null,"topics":["forward","geocode","geodata","gis","guzzle","postal-code","reverse","reverse-geocoding","zipcode","ziptastic","ziptastic-php"],"latest_commit_sha":null,"homepage":"https://getziptastic.com","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/Ziptastic.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":"2016-03-29T14:06:28.000Z","updated_at":"2018-03-23T19:46:58.000Z","dependencies_parsed_at":"2022-08-22T18:20:54.750Z","dependency_job_id":null,"html_url":"https://github.com/Ziptastic/ziptastic-php-fluent","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Ziptastic/ziptastic-php-fluent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-php-fluent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-php-fluent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-php-fluent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-php-fluent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ziptastic","download_url":"https://codeload.github.com/Ziptastic/ziptastic-php-fluent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziptastic%2Fziptastic-php-fluent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268133665,"owners_count":24201374,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["forward","geocode","geodata","gis","guzzle","postal-code","reverse","reverse-geocoding","zipcode","ziptastic","ziptastic-php"],"created_at":"2024-11-18T20:30:29.256Z","updated_at":"2026-02-09T09:05:51.591Z","avatar_url":"https://github.com/Ziptastic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ziptastic PHP with Guzzle\r\n\r\nThis package was brought into existence because of [this package](https://github.com/Ziptastic/ziptastic-php), specifically because of the [first enhancement](https://github.com/Ziptastic/ziptastic-php/issues/1)\r\n\r\nThis library is a [Guzzle](http://docs.guzzlephp.org/en/latest/) based interface for the [Ziptastic API](https://getziptastic.com/).\r\n\r\nUsing Ziptastic requires an API key, you can get one by signing up with Ziptastic.\r\n\r\n## Installing\r\n\r\nZiptastic PHP can be installed via composer:\r\n\r\n````\r\ncomposer require ziptastic/fluent\r\n````\r\n\r\n## Usage\r\n\r\nThere are two different ways to use this package with the same end result.\r\n\r\nThe first way to use this is by using `Zipper` which will be using a more \"plain english\" oriented syntax\r\n````php\r\n\u003c?php\r\n\r\ninclude \"vendor/autoload.php\";\r\n\r\nuse Ziptastic\\Fluent\\Zipper;\r\n\r\n$key = 'Your Api Key from ziptastic';\r\n\r\n$results = (new Zipper)-\u003ein('US')-\u003ewithPostalCode(48867)-\u003eandWithKey($key)-\u003efind();\r\necho $results-\u003eresponse;\r\n?\u003e\r\n````\r\n\r\nIf that isn't your cup of tea or you just want to get things done, you can use `Ziptastic`\r\n\r\n````php\r\n\u003c?php\r\n\r\ninclude \"vendor/autoload.php\";\r\n\r\nuse Ziptastic\\Fluent\\Ziptastic;\r\n\r\n$key = 'Your Api Key from ziptastic';\r\n\r\n$results = (new Ziptastic(23042,'us'))-\u003esetKey($key)-\u003efind();\r\n\r\necho $results-\u003eresponse;\r\n?\u003e\r\n````\r\n\r\n## Using results\r\nIf you wanted to, you can access any and all of the results of the api call via calling the item you want from the api response.\r\nThe first way to use this is by using `Zipper` which will be using a more \"plain english\" oriented syntax\r\n````php\r\n\u003c?php\r\n\r\ninclude \"vendor/autoload.php\";\r\n\r\nuse Ziptastic\\Fluent\\Zipper;\r\n\r\n$key = 'Your Api Key from ziptastic';\r\n\r\n$results = (new Zipper)-\u003ein('US')-\u003ewithPostalCode(48867)-\u003eandWithKey($key)-\u003efind();\r\necho $results-\u003ecity, ', ',$results-\u003estate,' ',$results-\u003epostal_code;\r\n?\u003e\r\n````\r\nAnd in that example the only one set by default is the postal code, the others are from the response.\r\n\r\n\r\nZiptastic PHP is licensed under the [MIT license](https://opensource.org/licenses/MIT/).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziptastic%2Fziptastic-php-fluent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziptastic%2Fziptastic-php-fluent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziptastic%2Fziptastic-php-fluent/lists"}