Learning Phalcon PHP : learn Phalcon interactively and build high-performance web applications /
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2015.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- 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 componentThe 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 layoutSummary
- 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 exampleAn 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 modelSummary
- 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