Simplex
Namespaces
Interfaces, Classes and Traits
- ErrorHandler
- FastRouteMiddleware
- Routing Middleware that uses nikic/fastroute Based on Middlewares\FastRoute with the addition of routes definition processing and additionl route parameters outside of route patterns
- PHPMailerExtended
- PixieConnectionExtended
- PixieExtended
- SpreadsheetReaderWriter
- TranslationsExtractor
- TwigExtended
- VanillaCookieExtended
- ZendCaptchaImageExtended
Table of Contents
- slugToPSR1Name() : string
- Turns a word in slug notation (route part) into a form as defined by PSR1 standard (https://www.php-fig.org/psr/psr-1/) for class names, method names and such
- PSR1NameToSlug() : string
- Turns a word in PSR1 standard (https://www.php-fig.org/psr/psr-1/) for class names, method names and such to slug notation
- requireFromFiles() : mixed
- Searches a folder for files by file name pattern and requires them
- mergeArrayFromFiles() : array<string|int, mixed>
- Searches a folder for files by file name pattern, expectes an array returned by file inclusion, merges all returned arrays
- mergeObjects() : object
- Merges two objects sio that properties from the second one override correspndent of the first one
- getInstanceNamespace() : object
- Gets namespace of a class defined into Simplex\Local
- getInstancePath() : object
- Gets namespace of a class defined into Simplex\Local
- loadLanguages() : object
- Loads configured languages from json file
Functions
slugToPSR1Name()
Turns a word in slug notation (route part) into a form as defined by PSR1 standard (https://www.php-fig.org/psr/psr-1/) for class names, method names and such
slugToPSR1Name(string $slug, string $type) : string
Parameters
- $slug : string
- $type : string
PSR1NameToSlug()
Turns a word in PSR1 standard (https://www.php-fig.org/psr/psr-1/) for class names, method names and such to slug notation
PSR1NameToSlug(string $psr1) : string
Parameters
- $psr1 : string
requireFromFiles()
Searches a folder for files by file name pattern and requires them
requireFromFiles(string $folder, string $pattern) : mixed
Parameters
- $folder : string
- $pattern : string
mergeArrayFromFiles()
Searches a folder for files by file name pattern, expectes an array returned by file inclusion, merges all returned arrays
mergeArrayFromFiles(string $folder, string $pattern) : array<string|int, mixed>
Parameters
- $folder : string
- $pattern : string
mergeObjects()
Merges two objects sio that properties from the second one override correspndent of the first one
mergeObjects(object $object1, object $object2) : object
Parameters
- $object1 : object
- $object2 : object
getInstanceNamespace()
Gets namespace of a class defined into Simplex\Local
getInstanceNamespace(mixed $instance[, bool $fromWithinSimplex = false ]) : object
Parameters
- $instance : mixed
- $fromWithinSimplex : bool = false
getInstancePath()
Gets namespace of a class defined into Simplex\Local
getInstancePath(mixed $instance) : object
Parameters
- $instance : mixed
loadLanguages()
Loads configured languages from json file
loadLanguages(string $context) : object
Parameters
- $context : string