flourishlib

How to install specific files from a package using composer.json

旧街凉风 提交于 2019-12-13 06:18:39
问题 I am writing a 1 page script to do a relatively simple task. So I decided to use Flourish Unframework which provides a bunch of cool classes that can used separately. I only want to use specific classes, say fDatabase, however composer let's download the entire package! I know I could just delete the unwanted files BUT is there a way that composer could just let me require specific files? This is not what I am looking for because it's just autoload and note installing 1 file from an entire

How to support emojis with flourish?

白昼怎懂夜的黑 提交于 2019-12-12 04:39:47
问题 I am using flourishlib for a website. My client requested that we should be able to use emojis with mobile phones. In theory we should change the character-encoding from utf8 to utf8mb4 for the MySQL database. So far, so good, however, if we make this switch, like this: # For each database: ALTER DATABASE database_name CHARACTER SET = utf8mb4 COLLATE utf8mb4_unicode_ci; # For each table: ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; # For each column: