Download the PHP package tobento/service-country without Composer

On this page you can find all versions of the php package tobento/service-country. 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 service-country

Country Service

A country interface for PHP applications.

Table of Contents

Getting started

Add the latest version of the country service project running this command.

Requirements

Highlights

Documentation

Country Repository

The country repository loads the countries from json files.

Country Repository Interface

findCountry

Returns a single country by the specified parameters or null if not found.

Check out the Country Interface to learn more about the interface.

findCountries

Returns all countries found by the specified parameters.

Check out the Countries Interface to learn more about the interface.

Country

Create Country

Check out the Country Interface to learn more about the interface.

Country Factory

Easily create a country with the provided countryfactory:

createCountry

Parameters:

createCountryFromArray

Country Interface

with methods

The with methods will return a new instance.

Countries

Create Countries

Check out Countries Interface to learn more about the interface.

Countries Factory

Easily create a Countries object with the provided countries factory:

createCountries

Check out Countries Interface to learn more about the interface.

createCountriesFromArray

Check out Countries Interface to learn more about the interface.

Countries Interface

addCountry

Adds a country.

addCountries

sort

Returns a new instance with the countries sorted.

filter

Returns a new instance with the filtered countries.

code

Returns a new instance with the specified code filtered.

locale

Returns a new instance with the specified locale filtered.

group

Returns a new instance with the specified group filtered.

region

Returns a new instance with the specified region filtered.

continent

Returns a new instance with the specified continent filtered.

all

Returns all countries.

first

Returns the first country or null if none.

get

Returns the first country found by code, code3, numericCode and/or locale.

column

Returns the column of the countries.

groupedColumn

Returns the column of the countries grouped.

only

Returns a new instance with countries with only the codes specified.

except

Returns a new instance with countries except the codes specified.

map

Returns a new instance with the countries mapped.

Credits


All versions of service-country with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
tobento/service-collection Version ^1.0
tobento/service-support Version ^1.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 tobento/service-country contains the following files

Loading the files please wait ....