I am new to PHP and want to know the directory structure for the php projects. I have experience in Java and in java we have src contains java source files, WEB-INF contains lib
Unfortunately (or not?) you're very free with PHP. It's up to you.
Here's my structure:
framework/ controllers/ models/ configs/ files/ templates/ themes/ tmp/ index.php init.php .htaccess
You can control the access via .htaccess.