Download the PHP package ritechoice23/laravel-worldable without Composer

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

Laravel Worldable

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads Buy Me A Coffee

Make your Laravel application location-aware in seconds. Worldable is a package that provides a simple and efficient way to add Country, State, City, Currency, Language, and Timezone relationships to your laravel application.

Quick Start

That's it! You now have access to 8 world entities: Continents, Subregions, Countries, States, Cities, Currencies, Languages, and Timezones.

Installation Options

Optional: Publish Configuration

If you need to customize table names, publish the config file:

This creates config/worldable.php where you can customize table names to match your naming convention.

Usage Modes

1. Direct Model Usage (Traditional Approach)

Use world data models directly with standard Eloquent relationships:

2. Polymorphic Relationships (Zero-Migration Approach)

Too lazy to add foreign keys? We got you covered! Use the Worldable trait for instant location awareness without touching your database schema:

Why use polymorphic relationships?

Key Features

Feature Description
8 World Entities Continents, Subregions, Countries, States, Cities, Currencies, Languages, Timezones
Modular Install Install only what you need, add more later
Two Usage Modes Traditional foreign keys OR polymorphic relationships
Context Groups Separate billing/shipping, citizenship/residence
Smart Resolution Accepts IDs, names, ISO codes automatically
Query Scopes whereFrom(), whereLocatedInCity(), wherePricedIn(), whereSpeaks()
Money Formatting $product->formatMoney(100) → "$100.00" with locale support
Bulk Operations $user->attachCountries(['NG', 'GH', 'KE'])
Custom Metadata Store extra data: $user->attachCountry('NG', 'billing', ['tax_id' => '...'])
Health Checks php artisan world:health --detailed monitors data integrity

Real-World Example

Documentation

Full Documentation - Deep dive into all features

Testing

Credits

License

The MIT License (MIT). See License File.


All versions of laravel-worldable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts 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 ritechoice23/laravel-worldable contains the following files

Loading the files please wait ...