In order to access content in the PCR, a session needs to be started.
The following code will start a session, assuming you have followed the installation instructions and have:
<?php
$credentials = new Credentials('mysql_username',
'mysql_password');
$workspace = 'pcr';
$session = Repository::login($credentials, $workspace);
?>