This example shows how to check a directory from a repository in a directory called calc:
svn_checkout('http://www.example.com/svnroot/calc/trunk', dirname(__FILE__) . '/calc');
Link link
OR
try it
// svn checkout command $checkout = "svn --username SVN-USERNAME --password SVN-PASSWORD checkout http://SVN-REPOSITORY-LOCATION DESTINATION-FOLDER"; // run php exec command exec($checkout);
Link link
source share