neosrulez/countrydatasource

Last activity on 4 April 2021
  • 226
composer require neosrulez/countrydatasource

A package that provides a data source with all countries in the world including translations and other valuable data.

1.0.1

A package that provides a data source with all countries in the world including translations and other valuable data.

Version
1.0.1
Type
neos-package
Release Date
18.04.2021 12:27:23
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
e15c399672de51f826328fd44cd07bc00a7c65a0

Country DataSource for Neos CMS and Neos Flow

A package that provides a data source with all countries in the world including translations and other valuable data.

Installation

The NeosRulez.CountryDataSource package is listed on packagist (https://packagist.org/packages/neosrulez/countrydatasource) - therefore you don't have to include the package in your "repositories" entry any more.

Just run:

composer require neosrulez/countrydatasource

Usage

countries = NeosRulez.CountryDataSource:Class.Countries {
    // Example: Shows everything except Aruba, Germany and Austria
    exclude = ${'AW,DE,AT'}
    independent = 'false'
    unMember = 'true'
}

countries2 = NeosRulez.CountryDataSource:Class.Countries {
    // Example: Only shows Austria and Germany
    include = ${'AT,DE'}
    independent = 'false'
    unMember = 'true'
}

renderer = afx`
    <ul>
        <Neos.Fusion:Loop items={props.countries} itemName="country">
            <li>{country.flag} {country.name.common}</li>
        </Neos.Fusion:Loop>
    </ul>
    <ul>
        <Neos.Fusion:Loop items={props.countries2} itemName="country">
            <li>{country.flag} {country.name.common}</li>
        </Neos.Fusion:Loop>
    </ul>
`

Author

The content of the readme is provided by Github
The same vendor provides 41 package(s).