Skip to content

Releases: katmore/flat

cli controller additions

15 Mar 18:48
e9d9a5b
Compare
Choose a tag to compare

added the following methods:

  • \flat\core\cli::enum_flag()
  • \flat\core\cli::enum_optval()

config lib updates: inline string references

29 Jan 23:43
bf95b10
Compare
Choose a tag to compare

a (string) config value in a .php config file (which are obtained with the \flat\core\config::get() method) can make inline references to one or more config values from a .json file by using the following format in the php file's config value: <%CONFIG-REF-STRING::json_file_basename.property_name%>

for example:

  • if a file named my_localizations.json (in the root of the config dir) had the following contents:

    {
       "my_localized_key" : "a localized value"
    }
  • and a file name my_settings.php (in the root of the config dir) had the following contents:

    $config['some_key'] = "a-start-of-some-config-value:<%CONFIG-REF-STRING::my_localizations.my_localized_key%>, some-other-part-of-some-config-value";
    return $config;
  • the following PHP code...

    echo \flat\core\config::get('my_settings/some_key');
  • would display...

    a-start-of-some-config-value:a localized value, some-other-part-of-some-config-value

    (the sub-string a localized value has replaced the <%CONFIG-REF-STRING::my_localizations.my_localized_key%> sub-string of the original config value)

config lib updates

26 Jan 06:07
5bab853
Compare
Choose a tag to compare
  • ability to get config values from a .json file with the \flat\core\config::get_ref() method
  • a config value in a .php config file (which are obtained with the \flat\core\config::get() method) can refer to a config value from a .json file by making it's value in the .php config file a string with the following format: CONFIG-REF::json_file_basename.property_name

php 7.2 is now required

18 Jan 21:17
Compare
Choose a tag to compare

bump PHP version to 7.2 in composer.json

bump copyright year README.md et. al

packagist instists on new weird values for GPL license

18 Jan 21:08
5b641b5
Compare
Choose a tag to compare
v1.3.0

packagist instists on new weird values for GPL license

v1.2.9

18 Jan 21:06
309c6df
Compare
Choose a tag to compare

packagist is now very picky about what it allows in composer license tags

more api response objects

18 Jan 20:56
d89d0c7
Compare
Choose a tag to compare
v1.2.8

Create method_not_allowed.php

session handler fixes

19 Dec 02:19
c35e910
Compare
Choose a tag to compare
v1.2.7

retry session start loop

cli compatibility fixes

13 Dec 19:07
459e81b
Compare
Choose a tag to compare

removed a potentially flawed terminal console width detection

holiday wrapper fixes

17 Oct 01:42
Compare
Choose a tag to compare

fixes to the holiday wrapper