Simple PHP class to quickly generate MapKit JS JWT tokens.
composer require mapkit/jwt
use Mapkit\JWT;
// Replace arguments below with private key, key ID and team identifier
$my_token = JWT::getToken('-----BEGIN PRIVATE KEY----- ...', 'XXXXXXXXXX', 'XXXXXXXXXX');
echo $my_token;
Apple Developer documentation
This project is open-sourced software licensed under the MIT license.
This library is developed by Includable, a creative app and web platform
development agency based in Amsterdam, The Netherlands.
Thomas Schoffelen, @tschoffelen