Download the PHP package laravel-enso/countries without Composer

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

Countries

Stable Downloads Issues Merge Requests

Description

Countries provides the country reference dataset used across the Laravel Enso ecosystem.

The package ships the countries table, a JSON-backed seeder for the full country list, an Eloquent model with a few convenience behaviors, and an authenticated options endpoint meant for select inputs.

It is a foundational backend package for address management, currencies, webshop flows, and any feature that needs normalized country metadata such as ISO codes, currency details, calling codes, or flags.

Installation

This package comes pre-installed in Laravel Enso applications that require country metadata.

For standalone installation in an Enso-based application:

The package automatically:

Run the migrations after installation:

If you want the package seeder in your application's database seeders directory, publish it with:

Then seed the table:

Features

Usage

Fetch active country options through the API:

Query the model directly:

The options endpoint serializes countries in a frontend-friendly shape:

::: warning Note The package exposes only active countries through its options endpoint.

If you seed or modify the dataset manually, remember that inactive rows will not be returned by core.countries.options. :::

API

Routes

All package routes are registered under:

Endpoints:

Controller

LaravelEnso\Countries\Http\Controllers\Options

Behavior:

Resource

LaravelEnso\Countries\Http\Resources\Country

Serialized attributes:

Model

LaravelEnso\Countries\Models\Country

Useful traits:

Translatable attributes:

Rememberable keys:

Useful method:

Seeder

LaravelEnso\Countries\Database\Seeders\CountrySeeder

Reads the dataset from:

Depends On

Required Enso packages:

Framework dependency:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!


All versions of countries with dependencies

PHP Build Version
Package Version
Requires laravel-enso/core Version ^12.0
laravel-enso/dynamic-methods Version ^4.0
laravel-enso/enums Version ^3.0
laravel-enso/helpers Version ^4.0
laravel-enso/localisation Version ^5.7
laravel-enso/migrator Version ^2.1
laravel-enso/rememberable Version ^4.0
laravel-enso/select Version ^5.0
laravel/framework Version ^10.0|^11.0|^12.0|^13.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 laravel-enso/countries contains the following files

Loading the files please wait ...