PHP code example of kubawerlos / cm0102-data
1. Go to this page and download the library: Download kubawerlos/cm0102-data library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kubawerlos / cm0102-data example snippets
\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'