{"id":22537651,"url":"https://github.com/dbrax/location-demographia","last_synced_at":"2025-04-09T20:14:15.357Z","repository":{"id":56978532,"uuid":"341137708","full_name":"dbrax/location-demographia","owner":"dbrax","description":"A library package that gets you quickly started with locations ( country , states and cities )","archived":false,"fork":false,"pushed_at":"2022-02-16T15:47:30.000Z","size":49,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T22:11:16.588Z","etag":null,"topics":["cities","countries","countries-api","states"],"latest_commit_sha":null,"homepage":"https://dbrax.github.io/location-demographia","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/dbrax.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-22T09:00:07.000Z","updated_at":"2022-02-16T15:09:14.000Z","dependencies_parsed_at":"2022-08-21T11:20:56.354Z","dependency_job_id":null,"html_url":"https://github.com/dbrax/location-demographia","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrax%2Flocation-demographia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrax%2Flocation-demographia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrax%2Flocation-demographia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrax%2Flocation-demographia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrax","download_url":"https://codeload.github.com/dbrax/location-demographia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247646516,"owners_count":20972669,"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":["cities","countries","countries-api","states"],"created_at":"2024-12-07T11:07:54.391Z","updated_at":"2025-04-09T20:14:15.336Z","avatar_url":"https://github.com/dbrax.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/epmnzava/location-demografia.svg?style=flat-square)](https://packagist.org/packages/epmnzava/location-demografia)\n[![Build Status](https://img.shields.io/travis/epmnzava/location-demografia/master.svg?style=flat-square)](https://travis-ci.org/epmnzava/location-demografia)\n[![Quality Score](https://img.shields.io/scrutinizer/g/epmnzava/location-demografia.svg?style=flat-square)](https://scrutinizer-ci.com/g/epmnzava/location-demografia)\n[![Total Downloads](https://img.shields.io/packagist/dt/epmnzava/location-demografia.svg?style=flat-square)](https://packagist.org/packages/epmnzava/location-demografia)\n\n## About location-demografia\n\nFrom time to time  we as developers  require to fill up world countries and fetch cities from countries etc. This library package provides you a qucik and easy  way to get started with location ( countries , cities and  states ).You are welcome to use , reuse and distribute under ( MIT license).\n\n\n## Version Matrix\n\nVersion | Laravel   | PHP Version\n------- | --------- | ------------\n1.5     | 8.0       | \u003e= 8.0\n1.4     | 8.0       | \u003e= 7.3\n1.2     | 7.0       | \u003e= 7.2.5\n\n\n\n## Installation\n\n\nYou can install the package via composer:\n\n```bash\ncomposer require epmnzava/location-demografia\n```\n\n\n# Update your config (for Laravel 5.4 and below)\nAdd the service provider to the providers array in config/app.php:\n\n```\n\"Epmnzava\\LocationDemografia\\LocationDemografiaServiceProvider\"::class\n```\n\nAdd the facade to the aliases array in config/app.php:\n\n```\n'Location'=\u003eEpmnzava\\LocationDemografia\\LocationDemografiaFacade,\n```\n\nAfter you add the above classes on config/app.php run below command to publish config , run migrations  and load data thus ( countries and their states). \n```bash\nphp artisan  locationdemografia:install\n```\n\nIf you have the necessary tables already on your database you can easily run the following command to only load the necessary location data.\n\n```bash\nphp artisan  locationdemografia:install --loadonly\n```\n\n## Usage\n\n``` php\n\u003c?php\n\nuse Epmnzava\\LocationDemografia;\n\nclass TestController extends Controller{\npublic function test(){\n\n$location= new LocationDemografia;\n\n//get all countries \n$countries=$location-\u003egetCountries();\n\n//get all countries states\n\n$states=$location-\u003egetCountriesState($countryid);\n\n//search countries\n$country=$location-\u003esearch_country($countryname);\n\n\n}\n\n}\n```\n\n### Testing\n\n``` bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email epmnzava@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Emmanuel Mnzava](https://github.com/dbrax)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Any questions or comments hit me up on\n- [Mail](mailto:epmnzava@gmail.com)       epmnzava@gmail.com \n- [Twitter](https://twitter.com/epmnzava) https://twitter.com/epmnzava\n- [Github](https://github.com/dbrax)      https://github.com/dbrax\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrax%2Flocation-demographia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrax%2Flocation-demographia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrax%2Flocation-demographia/lists"}