I need advice on a php project

I have a long term project like Facebook or LinkedIn and i wish to use php, should i write from scratch or use a framework.