Download the PHP package simplecomplex/utils without Composer
On this page you can find all versions of the php package simplecomplex/utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simplecomplex/utils
More information about simplecomplex/utils
Files in simplecomplex/utils
Package utils
Short Description Dependency injection container abstraction; PHP CLI made easy; various basic utilities.
License MIT
Homepage https://github.com/simplecomplex/php-utils
Informations about the package utils
(PHP) Utils
Main features
Dependency injection container abstraction
As Wikipedia sums it up:
Ironically, dependency injection can encourage dependence on a dependency injection framework.
**** is a simple tool for mitigating dependency of a particular injection container.
Wraps a PSR-11
or Pimple container or creates it's own lightweight PSR-11 container.
PHP CLI (command line/console) made easy
+
specify a simple way of defining PHP CLI commands, and auto-generate --help output.
- resolves CLI input arguments and options
- maps to a and executes it
- lists --help of all defined commands
- finds document root
Utils' own CLI commands
Time
**** extends the native DateTime class to fix shortcomings and defects,
and provide more, simpler and safer getters and setters.
Features:
- is stringable (sic!), to ISO-8601
- JSON serializes to string ISO-8601 with timezone marker
- freezable
- enhanced timezone awareness
- diff (diffConstant, that is) works correctly across differing timezones
- simpler and safer getters and setters
It's inspired by Javascript's Date class, and secures better Javascript interoperability
by stresssing and facilitating timezone awareness, and by JSON serializing to ISO-8601 timestamp string;
not a phoney Javascript object representing a PHP DateTime's inner properties.
Explorable
The abstract **** class provides simple means for making protected members of an object readable,
and optionally mutable via dedicated methods.
Odds and ends
**** abstracts mbstring.
**** delivers basic string sanitizers and converters.
**** hides the complexity of using FilesystemIterators.
**** parses ini strings/files, and delivers a range of other handy methods.
**** for easy dependency setup.
NB: Bootstrap::prepareDependencies() requires packages not listed among composer requirements:
Cache,
Config,
(optional) JsonLog,
Inspect,
Locale,
Validate.
Requirements
- PHP >=7.0
- PSR-11 Container
- PSR-3 Log
Development requirements
Suggestions
- PHP mbstring extension
- SimpleComplex Inspect