Free Sample
+ Collection

PHP 5 Social Networking

Starting


Create a powerful and dynamic Social Networking website in PHP by building a flexible framework
$26.99
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook

Want this title & more?

$21.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 139781849512381
Paperback456 pages

About This Book

 
  • Build a flexible Social Networking framework using PHP which can be extended to fit the needs of any Social Networking site
  • Develop a suitable structure for our framework, with MVC to structure the architecture and a Registry to store core Objects
  • Allow users to connect and communicate with each other using communication with friends list, flexible user profiles, messages, discussions, and much more
  • Plan marketing and scaling strategies, to entice more users and ensure the site can cope with the demand
  • Packed with real-world code and clear explanation, this book uses an ongoing case study for creating a Social Networking framework

Who This Book Is For

This book is primarily aimed at PHP developers, but is suitable for any web developers looking to expand their knowledge and understanding of Social Networking concepts. Intermediate knowledge of PHP and object-oriented programming is assumed, along with a basic knowledge of MySQL.

Table of Contents

Chapter 1: PHP Social Networking
Introduction to social networks
Existing social networks
Existing social networking software
Rolling your own
Our site: DinoSpace
Feature list
Summary
Chapter 2: Planning and Developing the Core Framework
Designing the framework
Building the framework
Summary
Chapter 3: Users, Registration, and Authentication
Privacy policies
Users
Registration
Authentication with our authentication object
Help! I've forgotten!
Summary
Chapter 4: Friends and Relationships
Inviting friends
Members
Custom relationships
Adding friends
Listing friends
Friends in your profile
Summary
Chapter 5: Profiles and Statuses
User profiles
Statuses
Summary
Chapter 6: Status Stream
What is a status stream?
Stream model
Stream controller
Views
In action
Room for improvement
A system stream for administrators
Summary
Chapter 7: Public and Private Messages
Public messages
Private messages
Summary
Chapter 8: Statuses—Other Media
Why support other media types?
Changes to the view
Images
Video (via YouTube)
Links
Extending the profiles
Summary
Chapter 9: Events and Birthdays
Let's plan
Calendar library
Displaying a calendar
Birthdays
Events
Reminders
Summary
Chapter 10: Groups
Some planning
A group
Groups
Summary
Chapter 11: Developing an API
What is an API and why should we create one?
APIs in social networks
Some planning
Implementation
An Application Framework API
Consuming
Summary
Chapter 12: Deployment, Security, and Maintenance
Deploying the site
Automating deployment
Security
Maintenance
Summary
Chapter 13: Marketing, SEO, User Retention, and Monetization Strategies
Marketing
Search engine optimization
User retention
Monetization options
Final tips: web stats
Summary
Chapter 14: Planning for Growth
Code performance
Server performance
Scaling
Caching systems
Redundancy
Content Delivery Networks
Message queues
No SQL
Learn from the experts
Farm it out
Summary

What You Will Learn

  • Plan, develop, and extend a flexible light-weight PHP Social Networking framework
  • Implement a style of the Model-View-Controller architectural design pattern
  • Manage core functionality with the Registry design pattern
  • Make a registration and authentication process, allowing users to join the network
  • Enable users to connect with each other using friend lists, messages, flexible profiles with status updates, and much more
  • Construct a stream of updates informing users of what is happening in their Social Network
  • Allow users to customize their profiles
  • Allow users to post content on each other’s profiles
  • Protect your Social Network from spam
  • Keep and maintain regular backups of your site
  • Marketing and Search Engine Optimization tips for your Social Network
  • Scaling hints and tips for when the Social Network becomes popular
  • Develop an API to extend the platform and interact with other Social Networks

In Detail

Social Networking has quickly become a very popular activity on the Internet, particularly with the emergence of sites like Facebook and MySpace. PHP is a flexible web development language used on a wide variety of sites, including Facebook and Yahoo! But building a social networking site from scratch using PHP involves some complex logic, and also some serious coding.

This book will demonstrate how to create, maintain, and extend a powerful social network site. It shows how to create your own flexible social networking framework, allowing users to sign up, customize their profile, befriend other users, share information, communicate, interact with one another, and much more.

Taking best practices, such as object-oriented programming, and the Model-View-Controller architecture, this book will begin by walking through the development of a simple development framework, which is then used to rapidly build a Social Networking platform, building upon the social features chapter by chapter. At the end of this book, you will have a powerful Social Networking platform loaded with many features which can take the user from signing up and connecting with other users to posting and sharing information. With an API in place, the platform can be extended and used by other Social Networks. This book doesn’t just stop with the code and the logic behind it; useful supplementary information is also covered, such as marketing the Social Network, keeping Search Engine Optimization in mind when developing, backing up and maintaining the site, and how to deal with large amounts of traffic through scaling.

By the end of this book, you will be left fully prepared to build, manage, maintain, and extend a powerful Social Network for your business, hobby, organization, family, and clients.

Authors

Read More