Queue\Beanstalk::connect

public connect () Makes a connection to the Beanstalkd server

Queue\Beanstalk::choose

public choose (mixed $tube) Change the active tube. By default the tube is “default”.

Queue\Beanstalk

Source on GitHub Class to access the beanstalk queue service. Partially implements the protocol version 1.2 use Phalcon\Queue\Beanstalk; $queue = new Beanstalk([ 'host' => '127.0.0.1', 'port' => 11300, 'persistent' => true, ]); Constants integer DEFAULT_DELAY integer DEFAULT_PRIORITY integer DEFAULT_TTR string DEFAULT_TUBE string DEFAULT_HOST integer DEFAULT_PORT Methods public __construct ([array $options]) public connect () Makes a connectio

Queueing

Activities like processing videos, resizing images or sending emails aren’t suitable to be executed online or in real time because it may slow the loading time of pages and severely impact the user experience. The best solution here is to implement background jobs. The web application puts jobs into a queue and which will be processed separately. While you can find more sophisticated PHP extensions to address queueing in your applications like RabbitMQ; Phalcon provides a client for Beanstalk,

Phalcon Query Language (PHQL)

Phalcon Query Language, PhalconQL or simply PHQL is a high-level, object-oriented SQL dialect that allows to write queries using a standardized SQL-like language. PHQL is implemented as a parser (written in C) that translates syntax in that of the target RDBMS. To achieve the highest performance possible, Phalcon provides a parser that uses the same technology as SQLite. This technology provides a small in-memory parser with a very low memory footprint that is also thread-safe. The parser first

Phalcon Developer Tools on Windows

These steps will guide you through the process of installing Phalcon Developer Tools for Windows. Prerequisites The Phalcon PHP extension is required to run Phalcon Tools. If you haven’t installed it yet, please see the Installation section for instructions. Download You can download a cross platform package containing the developer tools from the Download section. Also you can clone it from Github. On the Windows platform, you need to configure the system PATH to include Phalcon tools as well

Phalcon Developer Tools on Mac OS X

These steps will guide you through the process of installing Phalcon Developer Tools for OS/X. Prerequisites The Phalcon PHP extension is required to run Phalcon Tools. If you haven’t installed it yet, please see the Installation section for instructions. Download You can download a cross platform package containing the developer tools from the Download section. You can also clone it from Github. Open the terminal application: Copy & Paste the commands below in your terminal: git clone gi

Phalcon Developer Tools on Linux

These steps will guide you through the process of installing Phalcon Developer Tools for Linux. Prerequisites The Phalcon PHP extension is required to run Phalcon Tools. If you haven’t installed it yet, please see the Installation section for instructions. Download You can download a cross platform package containing the developer tools from the Download section. Also you can clone it from Github. Open a terminal and type the command below: git clone git://github.com/phalcon/phalcon-devtools.gi

Phalcon Developer Tools

These tools are a collection of useful scripts to generate skeleton code. Core components of your application can be generated with a simple command, allowing you to easily develop applications using Phalcon. If you prefer to use the web version instead of the console, this blog post offers more information. Download You can download or clone a cross platform package containing the developer tools from Github. Installation These are detailed instructions on how to install the developer tools

Paginator\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin