src/LaravelModuleInstaller.php
protected function getModuleName(PackageInterface $package)
    {
        $name = $package->getPrettyName();
        $split = explode("/", $name);

        if (count($split) !== 2) {
            throw new \Exception($this->usage());
        }

        $splitNameToUse = explode("-", $split[1]);

        if (count($splitNameToUse) < 2) {
            throw new \Exception($this->usage());
        }

        if (array_pop($splitNameToUse) !== 'module') {
            throw new \Exception($this->usage());
        }

        return implode('',array_map('ucfirst', $splitNameToUse));
    }
protected function getModuleName(PackageInterface $package)
    {
        $name = $package->getPrettyName();
        $split = explode("/", $name);

        if (count($split) !== 2) {
            throw new \Exception($this->usage());
        }

        $splitNameToUse = explode("-", $split[1]);

        if (count($splitNameToUse) < 2) {
            throw new \Exception($this->usage());
        }

        if (array_pop($splitNameToUse) !== 'module') {
            throw new \Exception($this->usage());
        }

        return implode('',array_map('ucfirst', $splitNameToUse));
    }
Get the module name, i.e. "joshbrw/something-module" will be transformed into "Something"
@param PackageInterface $package
@return string
@throws \Exception