Download the PHP package sitehandy/laravel-world without Composer

On this page you can find all versions of the php package sitehandy/laravel-world. 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-world

Sitehandy Laravel World Database

Latest Stable Version License Laravel

This package provides World Countries, Regions, and Cities database with locale support for Laravel 9-12.

Credits

This package is a fork of the excellent khsing/laravel-world package by Guixing Bai. We extend our gratitude to the original author for creating this valuable resource.

What's Changed in This Fork

Version

Current version: 1.0.0

We follow Semantic Versioning for all releases:

Conceptions

There are 5 main objects in this package.

Attributes

Common attributes:

Country spec attributes:

Example:

Localization

Right now, only English(default and fallback) and Chinese-Simp zh-cn are supported. Locale settings is following Laravel project settings in config/app.php.

Requirements

Installation

Step 1: Install via Composer

Step 2: Service Provider (Laravel < 5.5 only)

For Laravel 5.5+, the service provider is automatically registered via package discovery.

For older versions, add to config/app.php:

Step 3: Publish and Initialize

Note: The world:init command will create the necessary database tables and seed them with world data. This may take a few minutes to complete.

Technical Improvements

This package has been thoroughly modernized for Laravel 9-12 compatibility:

Database Migrations & Seeders

Code Quality & Best Practices

Compatibility Testing

Usage

Basic Usage Examples

Get all Continents

Get all Countries

Get Country/City/Division by Code

Get Countries by Continent

Get Parent (Continent/Country)

Get Divisions/States/Provinces

Get Cities

Contributions

If you want contribute to this library, issue and pr are welcome. please following those steps.

  1. start a new laravel project and install this library.
  2. install orangehill/iseed.
  3. modify datas via sql.
  4. generate seeds via artisan iseed world_cities,world_cities_locale,world_continents,world_continents_locale,world_countries,world_countries_locale,world_divisions,world_divisions_locale
  5. replace delete() with truncate(), cd database/seeders/ && sed -i 's/->delete()/->truncate()/g' World*.php
  6. copy seeds files into library.
  7. commit your work. ;)

TODO

Data Sources

Thanks

Changelog

Version 1.0.0 (2025-08-16)

Contributing

We welcome contributions! Please feel free to submit issues and pull requests.

Development Setup

If you want to contribute to this library, issues and PRs are welcome. Please follow these steps:

  1. Start a new Laravel project and install this library
  2. Install orangehill/iseed
  3. Modify data via SQL
  4. Generate seeds via artisan iseed world_cities,world_cities_locale,world_continents,world_continents_locale,world_countries,world_countries_locale,world_divisions,world_divisions_locale
  5. Replace delete() with truncate(): cd database/seeders/ && sed -i 's/->delete()/->truncate()/g' World*.php
  6. Copy seed files into the library
  7. Commit your work

License

This package is published under the MIT license.

Support

If you have any questions or suggestions, please feel free to:

About Sitehandy Solutions

Sitehandy Solutions is committed to maintaining and improving this package. We appreciate the original work by Guixing Bai and the community.

Have a nice day! 🌍


All versions of laravel-world with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^9.0|^10.0|^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 sitehandy/laravel-world contains the following files

Loading the files please wait ...