Installation
Requirements
- PHP 8.4 or higher
- No extensions required - zero dependencies!
Install via Composer
The easiest way to install IsoFlags is via Composer:
Verify Installation
After installation, verify it's working:
<?php
require 'vendor/autoload.php';
use Rteeom\FlagsGenerator\FlagsGenerator;
echo FlagsGenerator::getFlag('gb'); // 🇬🇧
If you see the UK flag emoji (🇬🇧), you're all set!
Alternative: Manual Installation
If you're not using Composer, you can manually download and include the library:
- Download the latest release
- Extract to your project
- Include the autoloader:
Composer Recommended
Manual installation is not recommended. Composer handles autoloading and dependencies automatically.
Next Steps
Now that you've installed IsoFlags, check out the Quick Start Guide to learn how to use it.