kingsoft / utils
General and easy to use utility functions for PHP. Used in many other Kingsoft packages.
Installs: 284
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/kingsoft/utils
Requires (Dev)
- phpunit/phpunit: ^11.3@dev
README
Currently two classes:
- Format for formatting
- Html for some handy web page functions like wrap_tag and check_request_params
bootstrap
Define the SETTINGS
constant with
require __DIR__ . '/vendor/kingsoft/utils/settings.inc.php';
Prior Set SETTINGS_FILE
to something else than settings.ini if you want.
After this the SETTINGS
constant is available with an array of arrays containing the content of the settings file.