prinsfrank/glyph-lists
PHP package that reformats Adobe Glyph List (AGL/AGLFN) data into easy-to-use PHP enum classes. Includes derived datasets from adobe-type-tools/agl-aglfn (BSD-3) while the code is MIT-licensed, with proper attribution.
dompdf or spatie/pdf).harry/uni for Unicode handling.composer require prinsfrank/glyph-lists
use PrinsFrank\GlyphLists\AdobeGlyphList;
$glyph = AdobeGlyphList::A; // Example
echo $glyph->value; // Outputs 'A'
dompdf font configurations).namespace App\Facades;
use PrinsFrank\GlyphLists\AdobeGlyphList;
use Illuminate\Support\Facades\Facade;
class GlyphList extends Facade {
protected static function getFacadeAccessor() {
return AdobeGlyphList::class;
}
}
use PrinsFrank\GlyphLists\AdobeGlyphList;
use Illuminate\Validation\Rule;
$validator->rule('valid_glyph', function ($attribute, $value, $parameters) {
return AdobeGlyphList::tryFrom($value) !== null;
});
namespace App\Services;
use PrinsFrank\GlyphLists\AdobeGlyphList;
class GlyphService {
public function getGlyphList(): array {
return array_column(AdobeGlyphList::cases(), 'value');
}
}
How can I help you explore Laravel packages today?