Questions tagged [phalcon]

Phalcon is an open source, full stack framework for PHP. Functionality is exposed as PHP classes ready to be used. Written as a C extension, it is optimized for extremely high performance, being the fastest possible framework available for PHP developers.

Phalcon is an open source, full stack framework for and written as a extension, optimized for high performance. Developers don't need to learn or use the C language, since the functionality is exposed as PHP classes ready to be used.

Phalcon is loosely coupled, allowing developers to use the the whole or selected objects as glue components, based on the needs of the application.

Phalcon strives for performance while keeping the framework robust and easy to use.

Phalcon is written in , a language resembling or in syntax.

Downloading

The source for Phalcon is on Github. Compiled packages for Windows can be found on the download page.

Documentation:

  • Tutorial - Begin with a background of the project, go through installation and start by writing a simple hello, world! application. Move on rapidly to the MVC implementation, models, views and tie it all together.

  • API reference - All classes that the framework offers listed and documented.

  • Developer tools - Phalcon offers a set of command line tools that make creating and managing Phalcon projects easier. It is strongly recommended that you install and use them, as many answers and tutorials will depend on them.

  • Incubator - Includes PHP code snippets that are written from the community for the community. These snippets are designed to be drop-ins to current projects to extend the framework according to the needs of the developer.

Help And Support

Help can be found on the official forum, bugs and issues can be reported on Github. There is also a Discord server for informal discussion.

Sample Projects:

Some projects have been created to illustrate how Phalcon works and shared on Github. You can fork and clone these projects as a starting point for your own, or just to get to know the framework.

  • Forum - Perhaps the most practical Phalcon application out there, which is readily available to the public, requiring users to use their github account for authentication. Currently powering the official Phlacon forums.

  • INVO - Sample lightweight application showing you how you could use Phalcon to write an invoicing or accounting application.

  • Vokuro - Sample lightweight application demonstrating authentication and authorization using Phalcon.

  • MVC Examples - Micro MVC example as well as multiple modules examples (with or without namespaces).

  • REST example - REST Micro MVC application with middleware, utilizing .

There is also a list of live sites that are Powered by Phalcon.

2031 questions
83
votes
5 answers

Error building : fatal error: pcre.h: No such file or directory

I'm just finished installing Ubuntu 13.10. I want try Phalcon, and when I build the source (phalcon.so), I have this error : from /home/fabrice/Downloads/cphalcon/build/32bits/phalcon.c:204: /usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal…
fabrice
  • 1,399
  • 1
  • 15
  • 27
46
votes
2 answers

How can I add volt syntax checking in PHPStorm

I want to be able to have syntax highlighting in PHPStorm for Volt, Phalcon's template engine. Is there a way to do so?
Nikolaos Dimopoulos
  • 11,495
  • 6
  • 39
  • 67
21
votes
4 answers

How to setup a 404 page in Phalcon

How can I set a 404 page in Phalcon to be displayed when a controller/action does not exist?
Nikolaos Dimopoulos
  • 11,495
  • 6
  • 39
  • 67
20
votes
3 answers

Compiling Phalcon - Virtual memory exhausted: Cannot allocate memory

When I try to compile Phalcon, I get an error: virtual memory exhausted: Cannot allocate memory I am running the following commands git clone --depth=1 git://github.com/phalcon/cphalcon.git cd cphalcon/build sudo ./install I have a VPS with 1GB…
Nikolaos Dimopoulos
  • 11,495
  • 6
  • 39
  • 67
18
votes
4 answers

How do I use phalcon-devtools\ide\phpstorm in phpstorm?

I am trying to integrate the Phalcon developer tools with phpstorm. There is a video here, but I am unable to view it due to my location. I can't find any other usable reference in the documentation, how can I accomplish this?
Lee
  • 229
  • 1
  • 2
  • 7
16
votes
2 answers

Laravel or Phalcon for a heavy-traffic site

I come from a Codeigniter background. I've used it for three years and really like it. It's simplicity is great. I've built massive sites with Codeigniter, but I'm looking for a new PHP framework to learn. The main reason for this change is a…
Noah Goodrich
  • 315
  • 1
  • 4
  • 17
15
votes
1 answer

How to copy the CSS and JS files in vendor folder of composer to public?

I'm just starting to learn several PHP frameworks. The examples I tried all use composer, which I have not used before, so things are not exactly clear to me yet. I specified some JS and CSS libraries in composer.json and ran composer install. Now…
Dylan
  • 9,129
  • 20
  • 96
  • 153
14
votes
3 answers

Phalcon redirection and forwarding

Do I understand correctly that after doing $this->dispatcher->forward() or $this->response->redirect() I need to manually ensure that the rest of the code does't get executed? Like below, or am I missing something? public function signinAction() { …
Ian Bytchek
  • 8,804
  • 6
  • 46
  • 72
13
votes
5 answers

how to install phalcon.so in mac os

I have installed phalcon extension.It was installed successfully but the phalcon command not working. following Error shown. "iMac:project Atomix$ phalcon -sh: phalcon: command not found" I have Followed instruction from Phalcon official…
Bipul Khan
  • 697
  • 1
  • 5
  • 10
13
votes
6 answers

Get raw sql from Phalcon query builder

Is it possible to extract raw sql query from the query builder instance in Phalcon? Something like this? $queryBuilder = new Phalcon\Mvc\Model\Query\Builder(); $queryBuilder ->from(…) ->where(…); $rawSql =…
Ian Bytchek
  • 8,804
  • 6
  • 46
  • 72
12
votes
2 answers

PhalconPHP Database transactions fail on server

I have developed a website using PhalconPHP. the website works perfectly fine on my local computer with the following specifications: PHP Version 7.0.22 Apache/2.4.18 PhalconPHP 3.3.1 and also on my previous Server (with DirectAdmin): PHP Version…
VafaK
  • 514
  • 1
  • 6
  • 22
12
votes
3 answers

Phalcon php vs node.js

We are going to develop rest server for our application (and all logic is on client javascript). So we thought to use Phalcon php, but we also need to create realtime chat system, which is much more easy to do using node.js. This made us think about…
Iliya Garakh
  • 387
  • 1
  • 4
  • 18
11
votes
3 answers

Phalcon UnitTesting

I am running the example from the documentation: http://docs.phalconphp.com/en/latest/reference/unit-testing.html#sample-unit-test I want to create an abstract unit test from Phalcon\Test\UnitTestCase as in the documentation. However when I run my…
llundin
  • 383
  • 2
  • 13
10
votes
1 answer

numeric loop in volt

I have read the volt documentation in phalcon page and i cant find any example for this... You can make easy loops in objects, for example, in php: foreach($pages as $page){ echo $page->title; } in volts would be ... {% for page in pages…
Stefan Luv
  • 1,179
  • 3
  • 12
  • 28
10
votes
1 answer

Easiest way to access Phalcon config values in views?

I have a section in ini files with some globally used social links, for ex: [social] fb = URL twitter = URL linkedin = URL What's the easiest way to access these, or is there a better way to organize these global variables?
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
1
2 3
99 100