PacktLib: PHP 5 Social Networking

PHP 5 Social Networking

Credits

About the Author

Acknowledgement

About the Reviewers

Preface

PHP Social Networking

Introduction to social networks

Existing social networks

Existing social networking software

Rolling your own

Our site: DinoSpace

Feature list

Summary

Planning and Developing the Core Framework

Designing the framework

Building the framework

Summary

Users, Registration, and Authentication

Privacy policies

Users

Registration

Authentication with our authentication object

Help! I've forgotten!

Summary

Friends and Relationships

Inviting friends

Members

Custom relationships

Adding friends

Listing friends

Friends in your profile

Summary

Profiles and Statuses

User profiles

Statuses

Summary

Status Stream

What is a status stream?

Stream model

Stream controller

Views

In action

Room for improvement

A system stream for administrators

Summary

Public and Private Messages

Public messages

Private messages

Summary

Statuses—Other Media

Why support other media types?

Changes to the view

Images

Video (via YouTube)

Links

Extending the profiles

Summary

Events and Birthdays

Let's plan

Calendar library

Displaying a calendar

Birthdays

Events

Reminders

Summary

Groups

Some planning

A group

Groups

Summary

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

Deployment, Security, and Maintenance

Deploying the site

Automating deployment

Security

Maintenance

Summary

Marketing, SEO, User Retention, and Monetization Strategies

Marketing

Search engine optimization

User retention

Monetization options

Final tips: web stats

Summary

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