1. Go to this page and download the library: Download mlocati/unipoints 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/ */
mlocati / unipoints example snippets
use MLUnipoints\Codepoint;
$codepoint = Codepoint::from('a');
use MLUnipoints\Codepoint;
$codepoint = Codepoint\Basic_Latin::from('a');
use MLUnipoints\Codepoint;
use MLUnipoints\Info\CodepointInfo;
$codepoint = Codepoint::from('a');
$codepointInfo = CodepointInfo::from(Codepoint::from('a'));
use MLUnipoints\Codepoint;
use MLUnipoints\Info\BlockInfo;
use MLUnipoints\Info\CategoryInfo;
use MLUnipoints\Info\CodepointInfo;
use MLUnipoints\Info\PlaneInfo;
$codepoint = Codepoint::from('a');
$codepointInfo = CodepointInfo::from($codepoint);
$categoryInfo = CategoryInfo::from($codepointInfo->category);
$blockInfo = BlockInfo::from($codepointInfo->block);
$planeInfo = PlaneInfo::from($blockInfo->plane);
echo 'Codepoint: ', $codepointInfo->id, "\n";
echo 'Codepoint name: ', $codepointInfo->name, "\n";
echo 'Codepoint general category: ', $categoryInfo->description, "\n";
foreach ($categoryInfo->parentCategories as $parentCategory) {
echo 'Codepoint parent general category: ', CategoryInfo::from($parentCategory)->description, "\n";
}
echo 'Block name: ', $blockInfo->name, "\n";
echo 'Plane name: ', $planeInfo->name, "\n";
echo 'Plane short name: ', $planeInfo->shortName, "\n";
use MLUnipoints\Codepoint;
echo Codepoint::SUN_BEHIND_CLOUD->value;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.