src/Kernel.php
public function getName(): string
    {
        if (null === $this->name) {
            $this->setName(ucfirst(preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->getAppPath()))));
        }

        return $this->name;
    }
public function getName(): string
    {
        if (null === $this->name) {
            $this->setName(ucfirst(preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->getAppPath()))));
        }

        return $this->name;
    }
Returns application name, e.g. App

@return string