{"id":22278035,"url":"https://github.com/enflow/laravel-address","last_synced_at":"2025-07-28T18:30:34.747Z","repository":{"id":43172733,"uuid":"253771250","full_name":"enflow/laravel-address","owner":"enflow","description":"Location autocomplete with support for multiple drivers","archived":false,"fork":false,"pushed_at":"2025-02-22T19:54:44.000Z","size":60,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T21:22:06.240Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"custom":"https://enflow.nl/contact"}},"created_at":"2020-04-07T11:19:12.000Z","updated_at":"2025-02-22T19:53:41.000Z","dependencies_parsed_at":"2024-03-18T04:32:44.270Z","dependency_job_id":null,"html_url":"https://github.com/enflow/laravel-address","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.06896551724137934,"last_synced_commit":"92401c47783d2fb88bb970c69303a460e892db4a"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/enflow/laravel-address","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enflow","download_url":"https://codeload.github.com/enflow/laravel-address/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enflow%2Flaravel-address/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267563486,"owners_count":24108097,"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-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2024-12-03T15:12:39.337Z","updated_at":"2025-07-28T18:30:34.452Z","avatar_url":"https://github.com/enflow.png","language":"PHP","funding_links":["https://enflow.nl/contact"],"categories":[],"sub_categories":[],"readme":"# Address autocomplete\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/enflow/laravel-address.svg?style=flat-square)](https://packagist.org/packages/enflow/laravel-address)\n![GitHub Workflow Status](https://github.com/enflow-nl/laravel-address/workflows/run-tests/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/enflow/laravel-address.svg?style=flat-square)](https://packagist.org/packages/enflow/laravel-address)\n\nThe `enflow/laravel-address` package provides a opinionated way on how to implement address fields with autocomplete.\n\n## Usage\n\n#### Step 1 - Install the package\nYou can install the package via composer:\n\n``` bash\ncomposer require enflow/laravel-address\n```\n\n#### Step 2 - Config\n\nYou must publish the config to set the driver you which to use.\n\nPushing the config file:\n``` bash\nphp artisan vendor:publish --provider=\"Enflow\\Address\\AddressServiceProvider\" --tag=\"config\"\n```\n\nYou must specify your driver choice. We provide a driver for HERE out of the box. See the 'Driver' section how to obtain a API key.\n\n#### Step 3 - Migration\n\nPushing the migration file:\n``` bash\nphp artisan vendor:publish --provider=\"Enflow\\Address\\AddressServiceProvider\" --tag=\"migrations\"\n```\n\n#### Step 4 - Prepare your model\nThe `Address` model is provided free to use, and you are able to configure it just like a normal Eloquent relationship:\n\n##### Migration\n```php\nSchema::table('companies', function (Blueprint $table) {\n    // ...\n    $table-\u003eforeignId('address_id')-\u003econstrained();\n});\n```\n\n##### Model\n```php\n\u003c?php\n\nuse Enflow\\Address\\Models\\Address;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Company extends Model\n{\n    public function address()\n    {\n        return $this-\u003ebelongsTo(Address::class);\n    }\n}\n```\n\n#### Step 5 - Frontend\nWe **highly recommend** the use of our `@enflow/laravel-address-ui` frontend package. This package adds the ability to add a autocomplete option to your address input for the end-user to easily select their address.\n\nFor installation instructions, see https://github.com/enflow-nl/laravel-address-ui\n\n#### Step 6 - Persisting\nAfter the form has been submitted, we wish to connect the address info the the model. This can be done with the `Address::persist` method. You may use it like:\n\n```\n$model-\u003eaddress()-\u003eassociate(Address::persist($request-\u003eget('address')));\n```\n\n## Drivers\n\nWe support the following drivers out of the box. This may be extended in the future, and we welcome PRs for new drivers.\n\n#### HERE\n[HERE Geocoding and Search](https://developer.here.com/products/geocoding-and-search) provides a fast and easy to use autosuggestion option. We recomend this option due it's relative low cost and ease of use, without additional legal terms.\n\nProduct page: https://developer.here.com/products/geocoding-and-search   \nPricing: https://developer.here.com/pricing\n\nYou may obtain a API token by [registrating for an account](https://developer.here.com/sign-up?create=Freemium-Basic\u0026keepState=true\u0026step=account).\n\n#### Google Places\nGoogle Places isn't support out of the box and is something we want to support in the future. PRs are welcome!\n\n#### Mapbox\nMapbox isn't support out of the box and is something we want to support in the future. PRs are welcome!\n\n### \n\n## Testing\n``` bash\n$ composer test\n```\n\n## Contributing\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\nIf you discover any security related issues, please email michel@enflow.nl instead of using the issue tracker.\n\n## Credits\n- [Michel Bardelmeijer](https://github.com/mbardelmeijer)\n- [All Contributors](../../contributors)\n\n## About Enflow\nEnflow is a digital creative agency based in Alphen aan den Rijn, Netherlands. We specialize in developing web applications, mobile applications and websites. You can find more info [on our website](https://enflow.nl/en).\n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenflow%2Flaravel-address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenflow%2Flaravel-address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenflow%2Flaravel-address/lists"}