Download the PHP package hakanispirli/laravel-turkey-geo-database without Composer

On this page you can find all versions of the php package hakanispirli/laravel-turkey-geo-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-turkey-geo-database

Laravel Turkey Geo Database

Latest Version Total Downloads License

Complete Turkish geographic data package for Laravel applications. Get all Turkish cities, districts, and neighborhoods with postal codes in your database with just a few commands.

Installation

Install the package via Composer:

Setup Options

Choose the installation method that fits your needs:

Option 1: Standard Installation (Most Common)

Use this if you want the default database structure without modifications.

That's it! Your database now contains all Turkish geographic data.

Option 2: Custom Installation

Use this if you need to modify the database structure (add columns, change types, etc.).

💡 Pro Tip: Migration files are published with current timestamps, so they'll run after your existing migrations without conflicts.

⏱️ Seeding Time: Approximately 30-60 seconds to insert all data with progress tracking.

Basic Usage

Get All Cities

Get Districts for a City

Get Neighborhoods for a District

Search by Postal Code

Common Use Cases

1. City Dropdown for Forms

2. Dynamic District Loading (AJAX)

3. Get Full Address Details

Database Structure

cities

districts

neighborhoods

Configuration (Optional)

You can customize table names, seeding batch size, and other options:

Edit config/turkey-geo.php to customize:

Advanced Features

Eager Loading Relationships

Validation Example

Caching for Performance

Troubleshooting

Seeder Class Not Found

Run composer autoload dump:

Data Files Not Found Error

Make sure you published the data files:

Verify files exist in database/data/turkey-geo/ directory.

Memory Issues During Seeding

Reduce batch size in config file:

Requirements

What's Included

Contributing

Contributions are welcome! Please submit a Pull Request.

Security

If you discover any security issues, please email [email protected].

Credits

License

The MIT License (MIT). See License File for more information.


Made with ❤️ by Webmarka


All versions of laravel-turkey-geo-database with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hakanispirli/laravel-turkey-geo-database contains the following files

Loading the files please wait ...