{"id":18031629,"url":"https://github.com/api-postcode/api-postcode-bundle","last_synced_at":"2025-03-27T05:30:50.098Z","repository":{"id":44463270,"uuid":"93159482","full_name":"api-postcode/api-postcode-bundle","owner":"api-postcode","description":"Api Postcode Symfony Bundle for fetching Address details","archived":false,"fork":false,"pushed_at":"2022-07-11T18:38:55.000Z","size":14,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-20T01:06:20.022Z","etag":null,"topics":["address","api","api-postcode","bundle","postcode","symfony"],"latest_commit_sha":null,"homepage":"https://api-postcode.nl","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/api-postcode.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}},"created_at":"2017-06-02T11:31:50.000Z","updated_at":"2025-03-09T08:38:39.000Z","dependencies_parsed_at":"2022-09-05T17:20:18.671Z","dependency_job_id":null,"html_url":"https://github.com/api-postcode/api-postcode-bundle","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/api-postcode%2Fapi-postcode-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/api-postcode%2Fapi-postcode-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/api-postcode%2Fapi-postcode-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/api-postcode%2Fapi-postcode-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/api-postcode","download_url":"https://codeload.github.com/api-postcode/api-postcode-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791305,"owners_count":20672664,"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","api","api-postcode","bundle","postcode","symfony"],"created_at":"2024-10-30T10:09:59.961Z","updated_at":"2025-03-27T05:30:49.657Z","avatar_url":"https://github.com/api-postcode.png","language":"PHP","readme":"Api Postcode Bundle\n===================\n\nThis bundle can be useed to fetch Address details from zipcode with number.\n\nSee: https://api-postcode.nl for more information.\n\nInstallation\n------------\nInstallation is a quick 3 step process:\n\n1. Download api-postcode-bundle using composer\n2. Enable the Bundle in AppKernel.php\n3. Configure Api Postcode credentials\n\n### Step 1: Download postcode-bundle using composer\n\nAdd ApiPostcodeBundle by running the command:\n\n``` bash\n$ composer require api-postcode/api-postcode-bundle\n```\n\n### Step 2: Enable the Bundle in AppKernel.php\n\n\n``` php\n\u003c?php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new ApiPostcode\\PostcodeBundle\\ApiPostcodeBundle(),\n    );\n}\n```\n\n### Step 3: Configure Api Postcode credentials\n```yaml\n# app/config/config.yml\n\n# Api Postcode Token\napi_postcode:\n    token: secret-token\n\n\n```\n\nUsage Services\n--------------\n``` php\n$address = $this-\u003eget('api.postcode')-\u003efetchAddress('1012JS', 1);\n\t\n$address-\u003egetStreet();      // Dam\n$address-\u003egetCity();        // Amsterdam\n$address-\u003egetHouseNumber(); // 1\n$address-\u003egetZipCode();     // 1012JS\n$address-\u003egetLongitude();   // 4.4584\n$address-\u003egetLatitude();    // 52.2296\n```\n\nUsage from API\n--------------\n\nOr try the API response:\n\nhttp://127.0.0.1:8000/api/postcode?postcode=2011WD\u0026nummer=2\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapi-postcode%2Fapi-postcode-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapi-postcode%2Fapi-postcode-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapi-postcode%2Fapi-postcode-bundle/lists"}