Method |
Description |
|
__construct ( array $config = [] ) |
Inject dependencies |
|
buildFilters ( array $options ) : array | null |
Build filter class instancees |
|
generate ( string $url, integer $width = null, integer $height = null, array $options = null ) : string |
Insert Croppa parameter suffixes into a URL. For use as a helper in views
when rendering image src attributes. |
|
options ( string $option_params ) : array |
Create options array where each key is an option name
and the value if an array of the passed arguments |
|
parse ( string $request ) : array | boolean |
Parse a request path into Croppa instructions |
|
pathToUrl ( string $path ) : string |
Append host to the path if it was defined |
|
phpThumbConfig ( array $options ) : array |
Take options in the URL and options from the config file and produce a
config array in the format that PhpThumb expects |
|
relativePath ( string $url ) : string |
Take a URL or path to an image and get the path relative to the src and
crops dirs by using the path config regex |
|
routePattern ( ) : string |
Make the regex for the route definition. This works by wrapping both the
basic Croppa pattern and the path config in positive regex lookaheads so
they working like an AND condition. |
|
signingToken ( $url ) : string | void |
Generate the signing token from a URL or path. Or, if no key was defined,
return nothing. |
|
toPath ( string $url ) : string |
Extract the path from a URL and remove it's leading slash |
|