title: PHP friend/package visibility
body: <p>Is there any way to limit the visibility in PHP in the same way as "package" visibility works in Java or at least "friend" visibility in C++? What's the best practice to maintain large OOP project and not to let anyone use any part of code?</p>
  
  <p>I use private and protected visibility as much as I can but sometimes it's not enough. I know about this request: <a href="https://bugs.php.net/bug.php?id=55331" rel="noreferrer">https://bugs.php.net/bug.php?id=55331</a>. Is there any progress in implementing such thing to PHP? Is there any workaround to protect your code (methods, class variables) from being accessed from anywhere?</p>