kubawerlos / cm0102-data
Data based on game data of Championship Manager 01/02
1.0.0
2024-12-07 16:23 UTC
Requires
- php: ^8.4
Requires (Dev)
- kubawerlos/php-cs-fixer-config: ^4.3
- phpstan/extension-installer: ^1.4.3
- phpstan/phpstan: ^2.0.3
- phpstan/phpstan-phpunit: ^2.0.1
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^11.5.0
- symfony/filesystem: ^7.2
README
Data based on game data of Championship Manager 01/02.
Installation
composer require kubawerlos/cm0102-data
Usage examples
<?php \CM0102Data\Nations::getNameForCode('ENG'); // returns 'England' \CM0102Data\Nations::getCodeByName('Wales'); // returns 'WAL' \CM0102Data\Clubs::getLongNameAndNationForShortName('Dortmund'); // returns ['BV Borussia Dortmund', 'Germany'] \CM0102Data\Clubs::getLongNameForShortNameAndNation('ASA', 'Brazil'); // returns 'Agremiação Sportiva Arapiraquense' \CM0102Data\Clubs::getLongNameForShortNameAndNation('ASA', 'Romania'); // returns 'ASA Tîrgu Mures'