Type-safe wrappers around standard functions in PHP and other generally useful functions
lib
Go to file
2024-05-05 00:48:04 +02:00
assets/xsd Add general abstract classes for tests, starting with test classes for 2023-08-18 15:09:58 +02:00
exceptions Write prettier error message in MDFailedToCreateDirectory 2023-11-27 01:31:16 +01:00
src Handle dates outside of strtotime()'s range in date_to_int, int_to_date 2024-05-05 00:48:04 +02:00
tests Handle dates outside of strtotime()'s range in date_to_int, int_to_date 2024-05-05 00:48:04 +02:00
.git.template Add .gitattributes, git template 2020-11-08 00:13:01 +01:00
.gitattributes Add .gitattributes, git template 2020-11-08 00:13:01 +01:00
.gitignore Add function for validating ZIP codes (somewhat) 2023-11-08 02:18:34 +01:00
LICENSE Add README 2023-06-24 02:04:03 +02:00
phpunit.xml Add function for validating ZIP codes (somewhat) 2023-11-08 02:18:34 +01:00
README.md Add README 2023-06-24 02:04:03 +02:00

Standard functions for museum-digital

This repository contains the most basic functions for working on museum-digital. Functions are provided as static functions of classes. The (by far) most relevant classes in this repository are:

  • MD_STD This class mainly provides type-safe wrappers around internal PHP functions. Where the general realpath() will return false if the provided path does not exist, MD_STD::realpath() will, e.g., throw an exception or return the absolute path of the input file.
  • MD_STD_IN This class is concerned with safely getting input data. It thus mainly covers shorthand functions for validating or sanitizing various types of input data.

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.