• Stars
    star
    810
  • Rank 56,306 (Top 2 %)
  • Language
    PHP
  • License
    Other
  • Created over 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Phalcon MVC Examples

Phalcon MVC Examples

These are examples of MVC file structures you can employ using Phalcon >= 3.0.x

For further documentation, check out the Phalcon Docs.

ๅ…ถไป–่ฏ‘ๆ–‡

ไธญๆ–‡็ฎ€ไฝ“

Simple

This is a very simple MVC structure, it contains one model, two controllers and a view. This example does not implement namespaces. Services are defined in public/index.php without using Di\FactoryDefault:

simple
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ ProductsController.php
โ”‚ย ย  โ”œโ”€โ”€ models
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Products.php
โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย      โ””โ”€โ”€ products
โ”‚ย ย          โ””โ”€โ”€ index.phtml
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Simple-Volt

This is a very simple MVC structure, it contains one model, two controllers and a view. This example does not implement namespaces. Services are defined in public/index.php without using Di\FactoryDefault. This example uses Volt as template engine:

simple-volt/
โ”œโ”€โ”€ app
โ”‚ย ย  โ”œโ”€โ”€ config
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ loader.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ services.php
โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ControllerBase.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ IndexController.php
โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย      โ”œโ”€โ”€ index
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ index.volt
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ test.volt
โ”‚ย ย      โ”œโ”€โ”€ index.volt
โ”‚ย ย      โ””โ”€โ”€ layouts
โ”‚ย ย          โ””โ”€โ”€ template.volt
โ”œโ”€โ”€ index.html
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Simple-Subcontrollers

Another very simple MVC structure, it contains one model, three controllers and a view. Routes are defined in app/config/routes.php. Some routes point to controllers in a subdirectory of controllers/:

simple-subcontrollers/
โ”œโ”€โ”€ app
โ”‚ย ย  โ”œโ”€โ”€ config
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ loader.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ routes.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ services.php
โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ControllerBase.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ UsersController.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ admin
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ ControllerBase.php
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ UsersController.php
โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย      โ”œโ”€โ”€ admin
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ users
โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ index.volt
โ”‚ย ย      โ”œโ”€โ”€ index
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ index.volt
โ”‚ย ย      โ”œโ”€โ”€ index.volt
โ”‚ย ย      โ””โ”€โ”€ users
โ”‚ย ย          โ””โ”€โ”€ index.volt
โ”œโ”€โ”€ index.html
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Simple-Without-Application

Simple MVC structure without employing Phalcon\Mvc\Application. This application does not use namespaces. This is an example of how you can override Phalcon\Mvc\Application by implementing a similar functionality. It also defines services without using Di\FactoryDefault in public/index.php:

simple-without-application/
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ ProductsController.php
โ”‚ย ย  โ”œโ”€โ”€ models
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Products.php
โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย      โ””โ”€โ”€ products
โ”‚ย ย          โ””โ”€โ”€ index.phtml
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Single

This a single-module MVC structure without namespaces. You can find the module's directories under the apps/ directory. This example does not use namespaces. All services are initialized in public/index.php. Also, in this file, you can also find an application class that initializes services and autoloaders grouping these tasks by methods.

single
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ ProductsController.php
โ”‚ย ย  โ”œโ”€โ”€ models
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Products.php
โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย      โ”œโ”€โ”€ index.phtml
โ”‚ย ย      โ””โ”€โ”€ products
โ”‚ย ย          โ”œโ”€โ”€ index.phtml
โ”‚ย ย          โ””โ”€โ”€ test.phtml
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Single-Namespaces

This a single-module MVC structure using namespaces. You can find the module's directories under the apps/ directory. This example does use namespaces. All services are initialized in public/index.php. Also, in this file, you can also find an application class that initializes services and autoloaders grouping these tasks by methods.

single-namespaces/
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ ProductsController.php
โ”‚ย ย  โ”œโ”€โ”€ models
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Products.php
โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย      โ””โ”€โ”€ products
โ”‚ย ย          โ””โ”€โ”€ index.phtml
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Single-Factory-Default

A single-module MVC structure as is generated by Phalcon Developer Tools. Instead of initialize every service individually, it uses Di\FactoryDefault:

single-factory-default/
โ”œโ”€โ”€ app
โ”‚ย ย  โ”œโ”€โ”€ config
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ config.php
โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ControllerBase.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ TestController.php
โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย      โ”œโ”€โ”€ index
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ index.phtml
โ”‚ย ย      โ””โ”€โ”€ index.phtml
โ”œโ”€โ”€ index.html
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Single-Camelized-Dirs

This a single-module MVC structure. All files and directories are camelized (including views):

single-camelized-dirs/
โ”œโ”€โ”€ App
โ”‚ย ย  โ”œโ”€โ”€ Config
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Loader.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Services.php
โ”‚ย ย  โ”œโ”€โ”€ Controllers
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ ProductsController.php
โ”‚ย ย  โ”œโ”€โ”€ Models
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Products.php
โ”‚ย ย  โ””โ”€โ”€ Views
โ”‚ย ย      โ”œโ”€โ”€ Index
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ Index.phtml
โ”‚ย ย      โ””โ”€โ”€ Products
โ”‚ย ย          โ””โ”€โ”€ Index.phtml
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Single-Service-Provider

This a single-module MVC structure which shows a non-standard way of registering services:

single-service-provider/
โ”œโ”€โ”€ app
โ”‚ย ย  โ”œโ”€โ”€ Bootstrap.php
โ”‚ย ย  โ”œโ”€โ”€ Http
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Controllers
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Controller.php
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ IndexController.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ routes.php
โ”‚ย ย  โ”œโ”€โ”€ Models
โ”‚ย ย  โ””โ”€โ”€ Providers
โ”‚ย ย      โ”œโ”€โ”€ AbstractServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ ConfigServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ DatabaseServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ EscaperServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ EventManagerServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ ModelsMetadataServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ MvcDispatcherServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ PhpTemplateEngineServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ ResponseServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ RouterServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ ServiceProviderInterface.php
โ”‚ย ย      โ”œโ”€โ”€ SessionServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ TagServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ UrlResolverServiceProvider.php
โ”‚ย ย      โ”œโ”€โ”€ ViewServiceProvider.php
โ”‚ย ย      โ””โ”€โ”€ VoltTemplateEngineServiceProvider.php
โ”œโ”€โ”€ bootstrap
โ”‚ย ย  โ””โ”€โ”€ autoload.php
โ”œโ”€โ”€ config
โ”‚ย ย  โ”œโ”€โ”€ application.php
โ”‚ย ย  โ””โ”€โ”€ providers.php
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ public
โ”‚ย ย  โ””โ”€โ”€ index.php
โ”œโ”€โ”€ resources
โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย      โ”œโ”€โ”€ index
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ index.volt
โ”‚ย ย      โ”œโ”€โ”€ index.volt
โ”‚ย ย      โ””โ”€โ”€ partials
โ”‚ย ย          โ””โ”€โ”€ content.volt
โ””โ”€โ”€ storage
    โ”œโ”€โ”€ cache
    โ”‚ย ย  โ”œโ”€โ”€ data
    โ”‚ย ย  โ””โ”€โ”€ volt
    โ””โ”€โ”€ logs

Multiple

This a multi-module MVC structure. This example implements two modules: frontend and backend. By default frontend is served if no route to backend is asked. You can define which routes use one module or another in public/index.php:

multiple/
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ backend
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Module.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ LoginController.php
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ ProductsController.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ models
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Products.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ login
โ”‚ย ย  โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ index.phtml
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ products
โ”‚ย ย  โ”‚ย ย          โ””โ”€โ”€ index.phtml
โ”‚ย ย  โ””โ”€โ”€ frontend
โ”‚ย ย      โ”œโ”€โ”€ Module.php
โ”‚ย ย      โ”œโ”€โ”€ controllers
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ ProductsController.php
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ UsersController.php
โ”‚ย ย      โ”œโ”€โ”€ models
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ Products.php
โ”‚ย ย      โ””โ”€โ”€ views
โ”‚ย ย          โ”œโ”€โ”€ index
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ index.phtml
โ”‚ย ย          โ””โ”€โ”€ products
โ”‚ย ย              โ””โ”€โ”€ index.phtml
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Multiple-Volt

This a multi-module MVC structure. This example implements two modules: frontend and backend. By default frontend is served if no route to backend is asked. You can define which routes use one module or another in public/index.php. Volt is used as template engine:

multiple-volt/
โ”œโ”€โ”€ apps
โ”‚ย ย  โ””โ”€โ”€ frontend
โ”‚ย ย      โ”œโ”€โ”€ Module.php
โ”‚ย ย      โ”œโ”€โ”€ config
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ config.php
โ”‚ย ย      โ”œโ”€โ”€ controllers
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ ControllerBase.php
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ IndexController.php
โ”‚ย ย      โ””โ”€โ”€ views
โ”‚ย ย          โ”œโ”€โ”€ index
โ”‚ย ย          โ”‚ย ย  โ”œโ”€โ”€ index.volt
โ”‚ย ย          โ”œโ”€โ”€ index.volt
โ”œโ”€โ”€ config
โ”‚ย ย  โ”œโ”€โ”€ modules.php
โ”‚ย ย  โ””โ”€โ”€ services.php
โ”œโ”€โ”€ index.html
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Multiple-Shared-Views

This a multi-module MVC structure with a common views directory:

multiple-shared-views/
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ common
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ views
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ index
โ”‚ย ย  โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ index.phtml
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ index.phtml
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ products
โ”‚ย ย  โ”‚ย ย          โ””โ”€โ”€ index.phtml
โ”‚ย ย  โ””โ”€โ”€ modules
โ”‚ย ย      โ”œโ”€โ”€ backend
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ Module.php
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ controllers
โ”‚ย ย      โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ IndexController.php
โ”‚ย ย      โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ ProductsController.php
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ models
โ”‚ย ย      โ”‚ย ย      โ””โ”€โ”€ Products.php
โ”‚ย ย      โ””โ”€โ”€ frontend
โ”‚ย ย          โ”œโ”€โ”€ Module.php
โ”‚ย ย          โ””โ”€โ”€ controllers
โ”‚ย ย              โ””โ”€โ”€ IndexController.php
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.php

Multiple-Factory-Default

This a multi-module MVC structure as is generated by Phalcon Developer Tools:

multiple-factory-default/
โ”œโ”€โ”€ apps
โ”‚ย ย  โ””โ”€โ”€ frontend
โ”‚ย ย      โ”œโ”€โ”€ Module.php
โ”‚ย ย      โ”œโ”€โ”€ config
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ config.php
โ”‚ย ย      โ”œโ”€โ”€ controllers
โ”‚ย ย      โ”‚ย ย  โ”œโ”€โ”€ ControllerBase.php
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ IndexController.php
โ”‚ย ย      โ””โ”€โ”€ views
โ”‚ย ย          โ”œโ”€โ”€ index
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ index.phtml
โ”‚ย ย          โ””โ”€โ”€ index.phtml
โ”œโ”€โ”€ index.html
โ””โ”€โ”€ public
    โ””โ”€โ”€ index.ph

Multiple-Service-Layer-Model

This a multi-module MVC structure with model service layer pattern implemented:

multiple-service-layer-model/
โ”œโ”€โ”€ apps
โ”‚ย ย  โ”œโ”€โ”€ config
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ config.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ modules.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ services.php
โ”‚ย ย  โ”œโ”€โ”€ models
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ entities
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ User.php
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ repositories
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Exceptions
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ InvalidRepositoryException.php
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Repositories.php
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Repository
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ User.php
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ services
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ Exceptions
โ”‚ย ย  โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ InvalidServiceException.php
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ Service
โ”‚ย ย  โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ User.php
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ Services.php
โ”‚ย ย  โ””โ”€โ”€ modules
โ”‚ย ย      โ””โ”€โ”€ frontend
โ”‚ย ย          โ”œโ”€โ”€ Module.php
โ”‚ย ย          โ”œโ”€โ”€ controllers
โ”‚ย ย          โ”‚ย ย  โ”œโ”€โ”€ ControllerBase.php
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ IndexController.php
โ”‚ย ย          โ””โ”€โ”€ views
โ”‚ย ย              โ”œโ”€โ”€ index
โ”‚ย ย              โ”‚ย ย  โ””โ”€โ”€ index.phtml
โ”‚ย ย              โ””โ”€โ”€ index.phtml
โ”œโ”€โ”€ database.sql
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ public
โ”‚ย ย  โ””โ”€โ”€ index.php
โ””โ”€โ”€ tests
    โ”œโ”€โ”€ Services
    โ”‚ย ย  โ””โ”€โ”€ UserServiceTest.php
    โ”œโ”€โ”€ TestHelper.php
    โ”œโ”€โ”€ UnitTestCase.php
    โ””โ”€โ”€ phpunit.xml

Micro

A micro-framework-like application:

micro
โ””โ”€โ”€ index.php

Micro-Factory-Default

A micro-framework-like application as is generated by Phalcon Developer Tools:

micro-factory-default/
โ”œโ”€โ”€ config
โ”‚ย ย  โ””โ”€โ”€ config.php
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ public
โ”‚ย ย  โ””โ”€โ”€ index.php
โ””โ”€โ”€ views
    โ”œโ”€โ”€ 404.phtml
    โ””โ”€โ”€ index.phtml

Micro-Simple-Views

A micro-framework-like application where views are rendered using Phalcon\Mvc\View\Simple:

micro-simple-views
โ”œโ”€โ”€ config
โ”‚ย ย  โ”œโ”€โ”€ config.php
โ”‚ย ย  โ””โ”€โ”€ services.php
โ”œโ”€โ”€ index.php
โ””โ”€โ”€ views
    โ”œโ”€โ”€ 404.volt
    โ”œโ”€โ”€ 500.volt
    โ””โ”€โ”€ index.volt

License

Phalcon MVC Examples is open source software licensed under the New BSD License. See the LICENSE.txt file for more.
Copyright (c) 2011-2016, Phalcon Framework Team

More Repositories

1

cphalcon

High performance, full-stack PHP framework delivered as a C extension.
PHP
10,727
star
2

phalcon-devtools

Phalcon Developer Tools
JavaScript
1,320
star
3

incubator

Incubator adapters/functionality for the Phalcon PHP Framework
PHP
732
star
4

awesome-phalcon

A curated list of awesome Phalcon libraries and resources
Ruby
606
star
5

vokuro

Sample application for Phalcon Framework (Acl, Auth, Security)
PHP
369
star
6

forum

Phalcon official Forum
PHP
364
star
7

invo

Sample application for the Phalcon PHP Framework
PHP
347
star
8

docs

Phalcon Framework documentation
HTML
320
star
9

phalcon

[WIP] Phalcon Framework. Work will continue after release of v5.0
PHP
219
star
10

tutorial

Phalcon Tutorial
PHP
159
star
11

dockerfiles

Phalcon Dockerfiles used for internal purposes.
Dockerfile
152
star
12

ide-stubs

Phalcon IDE Stubs
PHP
150
star
13

website

Archived Website repository - https://github.com/phalcon/phalcon.io
CSS
109
star
14

rest-api

Implementation of an API application using the Phalcon Framework
PHP
86
star
15

album-o-rama

Sample application for the Phalcon PHP Framework.
CSS
84
star
16

builtwith

Websites built with Phalcon
CSS
39
star
17

blog

Phalcon Framework's blog
CSS
32
star
18

volt-sublime-textmate

Volt syntax highlight for Sublime Text 2/Textmate
30
star
19

phalconist

Resources catalog for Phalcon Framework
PHP
28
star
20

migrations

Generate or migrate database changes via migrations.
PHP
26
star
21

packagecloud

โ˜๏ธ Phalcon Build Project
Shell
26
star
22

dd

This package will add the dd and dump helpers to your Phalcon application.
PHP
20
star
23

homebrew-tap

Official Homebrew tap for Phalcon PHP Framework (brew install phalcon)
Ruby
17
star
24

cli-options-parser

Command line arguments/options parser to use in Phalcon applications.
PHP
16
star
25

docs-app

Official Phalcon documentation website.
HTML
14
star
26

incubator-mailer

Send mail with Phalcon
PHP
12
star
27

bridge-swoole

Bridge to run Phalcon with Swoole.
PHP
7
star
28

incubator-session

Extra Phalcon Session Adapters.
PHP
7
star
29

incubator-logger

Extended Adapters for Phalcon Framework Logger component.
PHP
7
star
30

middlewares

Phalcon Middlewares
6
star
31

phalcon.io

phalcon.io website
HTML
6
star
32

incubator-mongodb

MongoDB Database adapter for Phalcon Framework.
PHP
5
star
33

incubator-acl

Extra components for Acl
PHP
5
star
34

docker

Official docker images with Phalcon framework.
Dockerfile
5
star
35

traits

Traits used primarily in the v6 package but also available as a helper package for applications
PHP
4
star
36

incubator-config

PHP
4
star
37

incubator-avatar

Phalcon Avatar Adapters
PHP
4
star
38

forum-static

Phosphorum Static
HTML
3
star
39

volt

Volt template engine.
PHP
3
star
40

incubator-events

Extra Phalcon Events Adapters.
PHP
3
star
41

link

A (manual) URL shortener for Phalcon sites
CSS
3
star
42

platform

A foundation to build applications using Phalcon.
PHP
3
star
43

incubator-translate

Extra Phalcon Translate Adapters.
PHP
3
star
44

assets

This repository holds all the assets that Phalcon sites use
CSS
2
star
45

incubator-cli

PHP
2
star
46

incubator-validation

Extra Phalcon Validator Adapters.
PHP
2
star
47

incubator-cache

Extra Phalcon Cache Adapters.
PHP
2
star
48

incubator-db

PHP
2
star
49

incubator-test

Incubator - Test helpers for PhpUnit and Codeception
PHP
2
star
50

proxy-psr3

Package to offer PSR-3 (Logger) compatibility with Phalcon classes from the PHP userland
PHP
2
star
51

debugbar

PHP
1
star
52

incubator-error

1
star
53

forum-ng

New responsive theme for Phosphorum
HTML
1
star
54

proxy-psr16

Package to offer PSR-16 (Cache) compatibility with Phalcon classes from the PHP userland
PHP
1
star
55

incubator-annotations

Extra Phalcon Annotations Adapters.
PHP
1
star
56

proxy-psr13

Package to offer PSR-13 (Link) compatibility with Phalcon classes from the PHP userland
PHP
1
star