Free Sample
+ Collection

Getting Started with Phalcon

Stephan A. Miller

Expand your PHP developer skills into the arena of creating web applications faster and better with Phalcon. Explore the MVC architecture and enjoy the ease of learning through practical instructions and screenshots.
RRP $17.99
RRP $29.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783287673
Paperback138 pages

About This Book

Build impressive web applications with the pace of C, the ease of PHP, and the structure of the MVC frameworkUse Phalcon Developer Tools to build a scaffolding for your project in minutesDetailed instructions and examples help you build an impressive blog application using Phalcon PHP quickly and easily

Who This Book Is For

If you are a PHP developer with some knowledge and experience of working with PHP and you want to develop stunning web applications easily and quickly, then this book is perfect for you. Learning how to use Phalcon is perhaps the best way to explore the MVC architecture.

Table of Contents

Chapter 1: Installing Phalcon
Phalcon system requirements
Installing Phalcon on Windows
Installing Phalcon on Linux
Installing Phalcon on Mac
Installing Phalcon on FreeBSD
Optional Phalcon dependencies
Finding help
Chapter 2: Setting Up a Phalcon Project
Folder structure
Using .htaccess files
The bootstrap file
Using a configuration file
Phalcon Developer Tools
Setting up Phalcon\Debug
Nginx configuration
Chapter 3: Using Phalcon Models, Views, and Controllers
Introducing MVC
Creating a database
Creating a model
Creating a controller
Creating CRUD scaffolding
Examining our Posts model
Examining our Posts controller
Examining our Post views
Chapter 4: Handling Data in Phalcon
Adding models
Storing session data in Phalcon
Filtering and sanitizing data
Phalcon models revisited
Using PHQL
Switching databases in Phalcon
Phalcon's Object-Document Mapper and MongoDB
Migrating databases
Chapter 5: Using Phalcon's Features
Hashing passwords with Phalcon
Using Phalcon view helpers
Setting cookies
Controlling user access
Applying the finishing touches to our application
Sending update pings
Using view partials
Caching in Phalcon
Setting up a cache service
Routing in Phalcon
Other project types of Phalcon

What You Will Learn

Learn how to work with Phalcon developerWork with Phalcon Developer Tools to generate application skeletons by building your blog applicationUnderstand how PHQL is used to interact with databases like MySQLHandle users, authorization, and session data in your Phalcon web applicationDiscover Phalcon's background tasks and the event managerCreate custom templates using the Volt engineManage your data relationships with Phalcon models

In Detail

Phalcon is an open source PHP framework which makes developing with PHP easier and more efficient by combining the speed and performance of C with the unique development features of the MVC architecture. Phalcon is installed as a PHP module so you don’t have to download an archive like you do with other frameworks, and building projects is made easier with its controllers and models. The Phalcon Query Language (PHQL) makes this tool even more expressive and clean. Its reputation as the most downloaded PHP tool is definitely justified by its rich offerings. This tutorial provides you with the knowledge you need to build your very own web application with the revolutionary Phalcon framework. This comprehensive guide will start by describing the installation of Phalcon PHP. You will then learn how to build projects and how to further utilize the Phalcon Developer Tools to build models, views, and controllers with the central example of a blog application. Features like PHQL are also explained and implemented effectively throughout the book. The genius in you will be revered by the stunning web application that you will be able to create by reading this book. This handy guide gives you a detailed introduction to using the remarkable Phalcon framework to develop web applications. You will begin by learning how to install the Phalcon module and how to build your own projects. The blog application is the central example throughout the book, and by using Phalcon Developer Tools and web tools, you will create and optimize the basic skeleton for your application with ease and efficiency. You will learn how to add rich features to your blog using Phalcon Views, Models, and Controllers. You will also gain expertise in Phalcon functionalities like the Volt template engine, view helpers, PHQL, and so on. This is an invaluable tutorial for enthusiasts and developers alike who wish to use the fascinating Phalcon PHP framework to rapidly design and develop impressive web applications.


Read More

Recommended for You

Expert Metasploit Penetration Testing [Video]
$ 25.50