Skip to content

Instantly share code, notes, and snippets.

View Spomky's full-sized avatar
🚀
Stay hungry, stay foolish - SJ

Florent Morselli Spomky

🚀
Stay hungry, stay foolish - SJ
View GitHub Profile
@Spomky
Spomky / apn.php
Last active March 11, 2020 07:30
Generate JWT for Apple Push Notification
<?php
require_once 'vendor/autoload.php';
use Jose\Factory\JWKFactory;
use Jose\Factory\JWSFactory;
$key_file = '/PATH/TO/KEY/FILE';
$secret = null; // If the key is encrypted, the secret must be set in this variable
@Spomky
Spomky / castor.php
Created April 17, 2024 12:52
Castor function to check licenses used on the project
<?php
declare(strict_types=1);
use Castor\Attribute\AsOption;
use Castor\Attribute\AsTask;
use function Castor\io;
use function Castor\run;
/**