1.1.0 #100
PandaHugMonster
announced in
Announcements
1.1.0
#100
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Change-log 1.1.0
FS::require()
,FS::include()
andFS::data()
PHP::listOfExecPhpFileExtensions()
,PHP::listOfExecPhpMimeTypes()
File
constructor is allowed (like forFS::locate()
)FS::locate()
alike array/box of path components forfl()
,FS::file()
andFile
. So nowfl(['part1', 'part2', 'file.txt'])
will make a fileobject with path: "{working-dir}/part1/part2/file.txt"
BasicInitConfig
introduced component-aware$allowed_data_dirs
for specifyingallowed data-dirs
DataDirectoryIsNotAllowed
,IPParsingException
$config = PHP::getInitConfig()
you can use a shortcut$config = ic()
Nuances of l10n and default_tz
\spaf\simputils\DT::getListOfDaysOfWeek()
\spaf\simputils\DT::getListOfMonths()
creation of "DateTimeZone" object every single time
\spaf\simputils\traits\ComparablesTrait
which enables to implementcommon set of comparing functionality (
equalsTo
,greaterThan
,lessThan
,greaterThanEqual
,lessThanEqual
) and their shortcuts (e
,gt
,lt
,gte
,lte
). Currently used inVersion
andIPv4
models\spaf\simputils\models\IPv4
and\spaf\simputils\models\IPv4Range
modelswith minimal but nice functionality
\spaf\simputils\models\UrlObject
modeland
\spaf\simputils\models\urls\processors\HttpProtocolProcessor
of "to punycode" conversion. Cyrillic and other non-latin domains are
not converted to punycode.
\spaf\simputils\System::localIp()
that gets the local IPurl()
for\spaf\simputils\models\UrlObject
model andip()
for\spaf\simputils\models\IPv4
\spaf\simputils\components\normalizers\IPNormalizer
property normalizer\spaf\simputils\PHP::bro()
method (\spaf\simputils\models\BoxRO
)which is basically "immutable Box"
POST
andGET
data as bros (BoxRO). Please keepin mind that they are immutable due to best-practices:
\spaf\simputils\PHP::POST()
\spaf\simputils\PHP::GET()
\spaf\simputils\PHP::objToNaiveString()
method to generate simple/naiveobject representation
\spaf\simputils\models\Box::$default_separator
variable value to string that should be usedduring
\spaf\simputils\models\Box::join()
and\spaf\simputils\models\Box::implode()
asa separator by default (initially default is ", " as it was before).
Additionally you can specify
\spaf\simputils\models\Box::$separator
on per object basisthat will be used in the object in case of "join" or "implode" without the first argument.
That functionality allows to create "path-ready" Box-arrays, that can by default
be automatically converted into a "unix" path.
\spaf\simputils\models\Box::$joined_to_str
per object variable allows to define thatthis Box-object needs to be converted in
__toString()
methodthrough
\spaf\simputils\models\Box::join()
method, which is really useful for "path-ready"Box-arrays. See example here: Path-alike Box-array
to set Box as "Path-alike":
\spaf\simputils\models\Box::pathAlike()
This discussion was created from the release 1.1.0.
Beta Was this translation helpful? Give feedback.
All reactions