Free Sample
+ Collection

PHP 5 Social Networking


Create a powerful and dynamic Social Networking website in PHP by building a flexible framework
RRP $26.99
RRP $44.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 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
Chapter 2: Planning and Developing the Core Framework
Designing the framework
Building the framework
Chapter 3: Users, Registration, and Authentication
Privacy policies
Authentication with our authentication object
Help! I've forgotten!
Chapter 4: Friends and Relationships
Inviting friends
Custom relationships
Adding friends
Listing friends
Friends in your profile
Chapter 5: Profiles and Statuses
User profiles
Chapter 6: Status Stream
What is a status stream?
Stream model
Stream controller
In action
Room for improvement
A system stream for administrators
Chapter 7: Public and Private Messages
Public messages
Private messages
Chapter 8: Statuses—Other Media
Why support other media types?
Changes to the view
Video (via YouTube)
Extending the profiles
Chapter 9: Events and Birthdays
Let's plan
Calendar library
Displaying a calendar
Chapter 10: Groups
Some planning
A group
Chapter 11: Developing an API
What is an API and why should we create one?
APIs in social networks
Some planning
An Application Framework API
Chapter 12: Deployment, Security, and Maintenance
Deploying the site
Automating deployment
Chapter 13: Marketing, SEO, User Retention, and Monetization Strategies
Search engine optimization
User retention
Monetization options
Final tips: web stats
Chapter 14: Planning for Growth
Code performance
Server performance
Caching systems
Content Delivery Networks
Message queues
Learn from the experts
Farm it out

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.


Read More