src/Core/Console/PluginInstallCommand.php
protected function generatePluginHeaders(string $name)
    {
        $description = $this->ask('Description:', '');
        $author = $this->ask('Author:', 'Themosis');
        $textdomain = $this->ask('Text domain:', trim($name, '\/-_'));
        $variable = strtoupper($this->ask('Domain variable:', 'PLUGIN_TD'));
        $prefix = $this->ask('Plugin prefix:', str_replace(['-', ' '], '_', $name));
        $namespace = $this->ask('PHP Namespace:', 'Tld\Domain\Plugin');

        return [
            'name' => ucwords(str_replace(['-', '_'], ' ', $name)),
            'description' => $description,
            'author' => $author,
            'text_domain' => $textdomain,
            'domain_var' => $variable,
            'plugin_prefix' => $prefix,
            'plugin_namespace' => $namespace,
            'plugin_id' => $name
        ];
    }
protected function generatePluginHeaders(string $name)
    {
        $description = $this->ask('Description:', '');
        $author = $this->ask('Author:', 'Themosis');
        $textdomain = $this->ask('Text domain:', trim($name, '\/-_'));
        $variable = strtoupper($this->ask('Domain variable:', 'PLUGIN_TD'));
        $prefix = $this->ask('Plugin prefix:', str_replace(['-', ' '], '_', $name));
        $namespace = $this->ask('PHP Namespace:', 'Tld\Domain\Plugin');

        return [
            'name' => ucwords(str_replace(['-', '_'], ' ', $name)),
            'description' => $description,
            'author' => $author,
            'text_domain' => $textdomain,
            'domain_var' => $variable,
            'plugin_prefix' => $prefix,
            'plugin_namespace' => $namespace,
            'plugin_id' => $name
        ];
    }
protected function generatePluginHeaders ( string $ name ) { $ description = $ this -> ask ( 'Description:' , '' ) ; $ author = $ this -> ask ( 'Author:' , 'Themosis' ) ; $ textdomain = $ this -> ask ( 'Text domain:' , trim ( $ name , '\/-_' ) ) ; $ variable = strtoupper ( $ this -> ask ( 'Domain variable:' , 'PLUGIN_TD' ) ) ; $ prefix = $ this -> ask ( 'Plugin prefix:' , str_replace ( [ '-' , ' ' ] , '_' , $ name ) ) ; $ namespace = $ this -> ask ( 'PHP Namespace:' , 'Tld\Domain\Plugin' ) ; return [ 'name' => ucwords ( str_replace ( [ '-' , '_' ] , ' ' , $ name ) ) , 'description' => $ description , 'author' => $ author , 'text_domain' => $ textdomain , 'domain_var' => $ variable , 'plugin_prefix' => $ prefix , 'plugin_namespace' => $ namespace , 'plugin_id' => $ name ] ; }
Generate plugin headers.

@param string $name

@return array
Generate plugin headers .