Get instant access to all courses and online books.

View Plans

PHP Master: Write Cutting-edge Code

by , , and

  • 400 pg
  • ★★★★⋆

Sure-fire PHP techniques to take your skills to the next level!

PHP Master: Write Cutting-edge Code

PHP Master: Write Cutting-edge Code is tailor-made for PHP developers who are serious about refining their server-side applications. This book will help you to employ the most effective object oriented programming approaches, wrap your projects in layers of security, and ensure your code is doing its job perfectly.


What you'll learn

  • Create professional, dynamic applications according to an object-oriented blueprint - and make your code and applications easier to maintain.
  • Learn advanced performance evaluation techniques to maximize your sites' efficiency
  • Protect your sites against attacks and vulnerabilities with the latest security considerations, techniques, and systems
  • Learn to use PHP's APIs, extensions, and libraries to extend your application's functionality

Who should do this

PHP Master is written for the intermediate developer. This means you should have a solid grounding in the fundamentals of PHP—the syntax underpinning the code, how functions and variables operate, constructs like foreach loops and if/else statements, and how server-side scripts interact with client-side markup (with HTML forms, for instance).>>>A basic understanding of what databases are and how they work will help you along, but we’ll be covering ways of connecting to them in great depth, as well as stepping through the world of SQL—the most popular query language used to interact with information in a database. A familiarity with command line interfaces and their associated vocabularies will be of assistance in the later chapters.


Code Archive

Save time, download the code archive here

About the Authors
Preface
Who Should Read This Book
What’s in This Book
Where to Find Help
The SitePoint Newsletters
The SitePoint Podcast
Your Feedback
Acknowledgments
Conventions Used in This Book
1. Object Oriented Programming
Why OOP?
Introduction to OOP
Object Inheritance
Objects and Functions
public, private, and protected
Interfaces
Exceptions
More Magic Methods
Objective Achieved
2. Databases
Persistent Data and Web Applications
Choosing How to Store Data
Building a Recipe Website with MySQL
PHP Database Objects
Dealing with Errors in PDO
Advanced PDO Features
Designing Databases
Databases—sorted!
3. APIs
Before You Begin
Service-oriented Architecture
Data Formats
HTTP: HyperText Transfer Protocol
Understanding and Choosing Service Types
Debugging HTTP
RPC Services
Ajax and Web Services
Developing and Consuming RESTful Services
Designing a Web Service
Service Provided
4. Design Patterns
What Are Design Patterns?
Pattern Formation
5. Security
Be Paranoid
Filter Input, Escape Output
Cross-site Scripting
Cross-site Request Forgery
Session Fixation
Session Hijacking
SQL Injection
Storing Passwords
Brute Force Attacks
SSL
Resources
6. Performance
Benchmarking
System Tweaks
Databases
File System
Profiling
Summary
7. Automated Testing
Unit Testing
Database Testing
Systems Testing
Load Testing
Tried and Tested
8. Quality Assurance
Measuring Quality with Static Analysis Tools
Coding Standards
Documentation and Code
Source Control
Automated Deployment
Ready to Deploy
A. PEAR and PECL
What is PEAR?
What is PECL?
Installing Packages
Installing Extensions
Creating Packages
Package Versioning
Creating a Channel
Now What?
B. SPL: The Standard PHP Library
ArrayAccess and ArrayObject
Autoloading
Working with Directories and Files
Countable
Data Structures
C. Next Steps
Keep Reading
Attending Events
User Groups
Online Communities
Open Source Projects
Index

Get instant access to all courses and online books.

View Plans