Learning Phalcon PHP

 
 
Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 26. August 2015
  • |
  • 328 Seiten
 
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78355-510-9 (ISBN)
 
Learn Phalcon interactively and build high performance web applicationsAbout This BookLearn how to install and configure Phalcon PHP on your serverDevelop a fully functional multi-module application with Phalcon PHPA step-by-step guide with in-depth coverage of Phalcon and best practicesWho This Book Is ForIf you are a web developer and want to build effective web applications with Phalcon PHP, then this book is ideal for you. The book does not assume detailed knowledge of PHP frameworks.What You Will LearnCompile and install Phalcon from source codeSet up an MVC project and learn how to use the Dependency Injection (DI), configuration, and routingGet to grips with Phalcon's ORM, ODM, validation and caching, and generate models using Phalcon Developer ToolsCreate a command-line application from scratchWrite a fully functional REST module with Phalcon PHPUse Volt as template engine to create your first viewsUnderstand how session works and learn how to implement an authentication systemIn DetailPhalcon is a full-stack PHP framework implemented as a C extension. Building applications with Phalcon will offer you lower resource consumption and high performance whether your application runs on a Linux machine or a Windows one. Phalcon is loosely coupled, allowing you to use its objects as glue components based on the needs of your application. Phalcon PHP's mission is to give you an advanced tool to develop faster websites and applications.This book covers the most common and useful parts of PhalconPHP, which will guide you to make the right decisions while developing a Phalcon-driven application.You will begin the journey by installing and setting up Phalcon for your environment followed by the development of each module. You will be introduced to Phalcon's ORM and ODM. Furthermore, you will also be able to create the first models and database architecture for your project. You will then cover command-line applications, API module, volt syntax, and hierarchical views. Installing and working with Node and Bower for assets management will also be covered. Finally, you will gain insights into creating the backoffice and frontend module along with best practices and resources for development with Phalcon PHP.By the end of this book, you will be able to confidently develop any kind of application using the Phalcon PHP framework in a short time.Style and approachThis step-by-step guide will walk you through the fundamentals of Phalcon PHP. It will then help you to create a simple but fully functional news website and gain advanced knowledge of how Phalcon PHP works.
  • Englisch
  • Olton Birmingham
978-1-78355-510-9 (9781783555109)
1783555106 (1783555106)
weitere Ausgaben werden ermittelt
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with Phalcon
  • Installing the required software
  • Installing PHP
  • Installing Nginx
  • Installing MySQL
  • Installing Redis
  • Installing MongoDB
  • Installing Git
  • Installing Phalcon
  • The Apache and Nginx configuration files
  • Apache
  • The host file
  • Nginx
  • Understanding the framework's internals
  • The dependency injection
  • The request component
  • The response component
  • The logger component
  • The crypt component
  • The flash component
  • The router component
  • The config component
  • The view component
  • The session component
  • The cache component
  • Summary
  • Chapter 2: Setting Up the MVC Structure and the Environment for Our Project
  • What is MVC?
  • Model
  • View
  • Controller
  • The MVC structure
  • Creating the structure for our project
  • PSR
  • Creating the configuration file and the Bootstrap
  • Preparing the initial DI interface and the router
  • Using the router component in a module
  • Create the base layout
  • Summary
  • Chapter 3: Learning Phalcon's ORM and ODM
  • The main differences between SQL and NoSQL databases
  • Connecting to the database
  • ORM/ODM operations (create, update, delete, transactions, validations)
  • Adding the routing information
  • Creating the controller and the actions
  • Creating the views
  • CRUD operations using ORM
  • CRUD - reading data
  • CRUD - creating data
  • CRUD - updating data
  • CRUD - deleting data
  • Using PHQL
  • Using raw SQL
  • Database transactions
  • A manual transactions example
  • An implicit transactions example
  • An isolated transactions example
  • ODM/MongoDB
  • ORM - drawbacks and caching
  • Summary
  • Chapter 4: Database Architecture, Models, and CLI Applications
  • The database architecture
  • The User table
  • The UserGroup table
  • The UserProfile table
  • Models
  • The User model
  • The UserGroup model
  • The UserProfile model
  • Registering a new user
  • Creating a user profile
  • The Category model
  • The Category translation model
  • The Article translation model
  • The Article model
  • The Article-Category-Article model
  • Summary
  • Chapter 5: The API Module
  • Using APIs - recommended practices
  • Enabling SSL on our local machine
  • Creating the module structure
  • Writing a fully functional REST module with Phalcon PHP
  • Articles
  • Securing an API
  • Using SSL
  • Adding an API key for extra protection
  • Limiting the number of requests per second from the same IP
  • Limiting access to resources, such as DELETE, PUT, and POST, for authenticated users
  • Documenting the API
  • Installation
  • Usage
  • Summary
  • Chapter 6: Assets, Authentication, and ACL
  • Assets management
  • Developing an authentication system
  • The database structure
  • Models
  • Securing the application using the ACL component
  • Summary
  • Chapter 7: The Backoffice Module (Part 1)
  • Editing the main layout
  • common/topbar.volt
  • common/sidebar.volt
  • Cleaning the Core module
  • Hashtag CRUD
  • The hashtag controller within the API module
  • A common method to reduce code duplication
  • Retrieving the data
  • The layout structure
  • The hashtag form
  • The hashtag controller
  • The hashtag manager
  • The View template for the add() method
  • Improving the database table structure and adding validation
  • Editing hashtags
  • Deleting hashtags
  • Category CRUD
  • The Category form
  • Creating the Category templates
  • list.volt
  • add.volt
  • edit.volt
  • delete.volt
  • Creating the Category controller
  • Creating the Category manager
  • Summary
  • Chapter 8: The Backoffice Module (Part 2)
  • User CRUD
  • Creating the controller (API)
  • The user controller from the Backoffice module
  • The user form
  • The user manager
  • User templates
  • Article CRUD
  • The Controller (API)
  • The Article controller from the Backoffice module
  • The Article form
  • The Article manager
  • Summary
  • Chapter 9: The Frontend Module
  • The Frontend layout and basic functionality
  • footer.volt
  • paginator.volt
  • navbar.volt
  • layout.volt
  • Modifying BaseController.php
  • The Article item template
  • Retrieving articles from a category
  • Implementing ElasticSearch
  • Installing ElasticSearch
  • Enabling a client in DI
  • Indexing (storing) documents
  • Implementing MongoDB
  • Mongo models
  • modules/Core/Models/Mongo/BaseCollection.php
  • modules/Core/Models/Mongo/ArticleLog.php
  • Summary
  • Chapter 10: Going Further
  • Uploading files with Phalcon
  • Using the Annotation router
  • Summary
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

40,53 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung des WebShops erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok