Improving Performance with Cache

Phalcon provides the Phalcon\Cache class allowing faster access to frequently used or already processed data. Phalcon\Cache is written in C, achieving higher performance and reducing the overhead when getting items from the backends. This class uses an internal structure of frontend and backend components. Front-end components act as input sources or interfaces, while backend components offer storage options to the class. When to implement cache? Although this component is very fast, implementi

Image\Adapter\Imagick

extends abstract class Phalcon\Image\Adapter implements Phalcon\Image\AdapterInterface Source on GitHub Image manipulation support. Allows images to be resized, cropped, etc. $image = new Phalcon\Image\Adapter\Imagick("upload/test.jpg"); $image->resize(200, 200)->rotate(90)->crop(100, 100); if ($image->save()) { echo 'success'; } Methods public static check () Checks if Imagick is enabled public __construct (mixed $file, [mixed $width], [mixed $height]) \Phalcon\Image\Adapt

Image\Adapter\Imagick::getInternalImInstance

public getInternalImInstance () Get instance

Image\Adapter\Imagick::setResourceLimit

public setResourceLimit (mixed $type, mixed $limit) Sets the limit for a particular resource in megabytes

Image\Adapter\Imagick::check

public static check () Checks if Imagick is enabled

Image\Adapter\Gd::check

public static check () ...

Image\Adapter\Gd::__destruct

public __destruct () ...

Image\Adapter\Gd

extends abstract class Phalcon\Image\Adapter implements Phalcon\Image\AdapterInterface Source on GitHub Methods public static check () ... public __construct (mixed $file, [mixed $width], [mixed $height]) ... protected _resize (mixed $width, mixed $height) ... protected _crop (mixed $width, mixed $height, mixed $offsetX, mixed $offsetY) ... protected _rotate (mixed $degrees) ... protected _flip (mixed $direction) ... protected _sharpen (mixed $amount) ... protected _reflection (mixed $height, m

Image\AdapterInterface::text

abstract public text (mixed $text, [mixed $offsetX], [mixed $offsetY], [mixed $opacity], [mixed $color], [mixed $size], [mixed $fontfile]) ...

Image\AdapterInterface::resize

abstract public resize ([mixed $width], [mixed $height], [mixed $master]) ...