{"id":23369844,"url":"https://github.com/chaplean/location-bundle","last_synced_at":"2025-04-07T23:45:21.518Z","repository":{"id":62501071,"uuid":"196075323","full_name":"chaplean/location-bundle","owner":"chaplean","description":null,"archived":false,"fork":false,"pushed_at":"2019-07-09T20:12:11.000Z","size":3887,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T01:17:37.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/chaplean.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-07-09T20:01:17.000Z","updated_at":"2019-07-09T20:11:51.000Z","dependencies_parsed_at":"2022-11-02T12:01:14.801Z","dependency_job_id":null,"html_url":"https://github.com/chaplean/location-bundle","commit_stats":null,"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Flocation-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Flocation-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Flocation-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaplean%2Flocation-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaplean","download_url":"https://codeload.github.com/chaplean/location-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749966,"owners_count":20989712,"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":[],"created_at":"2024-12-21T15:18:15.082Z","updated_at":"2025-04-07T23:45:21.474Z","avatar_url":"https://github.com/chaplean.png","language":"PHP","readme":"Getting Started With ChapleanLocationBundle\n===========================================\n\n# Prerequisites\n\nThis version of the bundle requires Symfony 2.8+.\n\n# Installation\n\n## 1. Composer\n\n```\ncomposer require chaplean/location-bundle\n```\n\n## 2. AppKernel.php\n\nAdd\n```\nnew Chaplean\\Bundle\\LocationBundle\\ChapleanLocationBundle(),\n```\n\n## 3. Inject locations\n\nRun\n```bash\nbin/console location:load:cities\n```\nor\nAdd command in migration\n```php\npublic function postUp(Schema $schema)\n{\n    /** @var Kernel $kernel */\n    $kernel = $this-\u003econtainer-\u003eget('kernel');\n    $application = new Application($kernel);\n    $application-\u003esetAutoExit(false);\n    \n\n    $exitCode = $application-\u003erun(\n        new ArrayInput(\n            [\n                'command'    =\u003e 'location:load:cities'\n            ]\n        )\n    );\n    \n    $this-\u003eabortIf($exitCode !== 0, 'see Exception above ^');\n}\n```\n\n## 4. Resources\n\n* Regions: ?\n* Départements: https://www.insee.fr/fr/information/2114819 (cf \"Liste des départements\") \n* Villes: https://www.data.gouv.fr/fr/datasets/base-officielle-des-codes-postaux/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaplean%2Flocation-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaplean%2Flocation-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaplean%2Flocation-bundle/lists"}