1. Go to this page and download the library: Download matriphe/bendera 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/ */
matriphe / bendera example snippets
return [
'aliases' => [
'XY' => 'ID',
]
];
Bendera::emoji('id'); // will return 🇮🇩
Bendera::emoji('en'); // will return 🇬🇧
Bendera::emoji('uk'); // will return 🇬🇧
Bendera::emoji('GB'); // will return 🇬🇧
Bendera::emoji('XYZ'); // will return null
class SomeAwesomeClass
{
public function awesome(\Matriphe\Bendera\BenderaContract $bendera)
{
return $bendera->emoji('id');
}
}