Initial commit, and final commit.

This commit is contained in:
2024-03-02 11:46:07 -08:00
commit 2c8e4bc2cf
11 changed files with 376 additions and 0 deletions

1
util/emojis.txt Normal file

File diff suppressed because one or more lines are too long

24
util/get_emojis.php Normal file
View File

@ -0,0 +1,24 @@
<?php
/*
* you can update the emoji list by changing the unicode link below
* then, visit your site's /user/plugins/yourls-emojis/util/get_emojis.php page to run the script
*
* most recent 13.1 https://www.unicode.org/emoji/charts/full-emoji-list.html
*/
if( !defined( 'YOURLS_ABSPATH' ) ) die();
require_once __DIR__ . '/../vendor/autoload.php';
/*
* Last retrieved: April 11, 2021
*/
function get_emojis() {
$detect_emoji = Emoji\detect_emoji(file_get_contents('https://unicode.org/Public/emoji/13.1/emoji-test.txt'));
$file = fopen(__DIR__ . '/emojis.txt', 'w+');
if ( sizeof($detect_emoji) > 0 ) {
foreach ( $detect_emoji as $emoji ) {
fwrite($file, $emoji['emoji']);
}
}
}
get_emojis();