Common

Class Common provides reusable functions for application

package

App\Util

Methods

Enables and enforces DEBUG handlers, clases and exception handling

commonDebug() : boolean

Response

boolean

Analyzes the contents of a string and returns proper MIME type

detectMime(string $string) : string

Arguments

$string

string

Response

string

Retrieve the XML Attribute

getXmlAttribute(array $object, string $attribute) : boolean|string

Arguments

$object

array

$attribute

string

Response

boolean|string

Provides reusable GuzzleHttp\Client which can be extended

guzzleUrl(string $url, array $headers, string $content) : \GuzzleHttp\Psr7\Response

Arguments

$url

string

$headers

array

$content

string

Response

\GuzzleHttp\Psr7\Response

Normalize the received headers into standard JSON array

normalizeHeaders(array $headers) : array

Arguments

$headers

array

Response

array

Common reusable Symfony Serializer object for encoding / decoding data

serialCodecs() : \Symfony\Component\Serializer\Serializer

Response

\Symfony\Component\Serializer\Serializer