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
Uh oh!
There was an error while loading. Please reload this page.
-
Change-log 1.1.0
FS::require(),FS::include()andFS::data()PHP::listOfExecPhpFileExtensions(),PHP::listOfExecPhpMimeTypes()Fileconstructor 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"
BasicInitConfigintroduced component-aware$allowed_data_dirsfor 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\ComparablesTraitwhich enables to implementcommon set of comparing functionality (
equalsTo,greaterThan,lessThan,greaterThanEqual,lessThanEqual) and their shortcuts (e,gt,lt,gte,lte). Currently used inVersionandIPv4models\spaf\simputils\models\IPv4and\spaf\simputils\models\IPv4Rangemodelswith minimal but nice functionality
\spaf\simputils\models\UrlObjectmodeland
\spaf\simputils\models\urls\processors\HttpProtocolProcessorof "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\UrlObjectmodel andip()for\spaf\simputils\models\IPv4\spaf\simputils\components\normalizers\IPNormalizerproperty normalizer\spaf\simputils\PHP::bro()method (\spaf\simputils\models\BoxRO)which is basically "immutable Box"
POSTandGETdata 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_separatorvariable 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::$separatoron 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_strper 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