Here is the composer.json
    {
      "name": "uci/uci-wp-webauth",
      "description": "Wordpress plugin for enabling WebAuth logging in for UCI users on a site-by-site basis.",
      "type": "project",
      "license": "GPL-3.0",
      "minimimum-stability": "stable",
      "autoload": {
        "psr-4": {
          "": "includes/"
        }
      },
      "require": {
        "uci/uci-lib": "dev-master#9097b4f"
      },
      "repositories": [
        {
          "type": "vcs",
          "url": "[email protected]:username/uci-lib"
        }
      ]
    }
The directory structure looks like:
[code]UCI
    -WebAuth.php[/code]
And the WebAuth class is structured thus:
[php]namespace UCI;
class WebAuth {}
[/php]
The class/code that implements WebAuth:
[php]namespace WebAuth;
use UCI\WebAuth;
class Handler
{
   public function __construct()
    {
        $this->init();
        $this->webauth = new WebAuth();[/php]
For some reason PHP keep reporting back:
[code]Fatal error: Uncaught Error: Class 'UCI\WebAuth' not found[/code]
I’ve done this so many times before in setting up a composer project, but this one has really got me stumped.