protected function getVariables(
        $vendor,
        $package,
        $vendorFolderName,
        $packageFolderName
    ) {
        $packageWords = str_replace('-', ' ', Str::snake($packageFolderName));

        $composerDescription = $this->askUser(
            'The composer description?', "A $packageWords"
        );
        $composerKeywords = $this->getComposerKeywords($packageWords);

        $packageHumanName = $this->askUser(
            'The package human name?', Str::title($packageWords)
        );

        return [
            'vendor' => $vendor,
            'package' => $package,
            'vendorFolderName' => $vendorFolderName,
            'packageFolderName' => $packageFolderName,
            'packageHumanName' => $packageHumanName,

            'composerName' => "$vendorFolderName/$packageFolderName",
            'composerDesc' => $composerDescription,
            'composerKeywords' => $composerKeywords,
            'license' => $this->askUser('The package licence?', 'MIT'),
            'phpVersion' => $this->askUser('Php version constraint?', '>=7.0'),

            'aliasName' => $packageFolderName,
            'configFileName' => $packageFolderName,

            'year' => date('Y'),

            'name' => $this->askUser('Your name?'),
            'email' => $this->askUser('Your email?'),
            'githubPackageUrl' => "https://github.com/$vendorFolderName/$packageFolderName",
        ];
    }
protected function getVariables(
        $vendor,
        $package,
        $vendorFolderName,
        $packageFolderName
    ) {
        $packageWords = str_replace('-', ' ', Str::snake($packageFolderName));

        $composerDescription = $this->askUser(
            'The composer description?', "A $packageWords"
        );
        $composerKeywords = $this->getComposerKeywords($packageWords);

        $packageHumanName = $this->askUser(
            'The package human name?', Str::title($packageWords)
        );

        return [
            'vendor' => $vendor,
            'package' => $package,
            'vendorFolderName' => $vendorFolderName,
            'packageFolderName' => $packageFolderName,
            'packageHumanName' => $packageHumanName,

            'composerName' => "$vendorFolderName/$packageFolderName",
            'composerDesc' => $composerDescription,
            'composerKeywords' => $composerKeywords,
            'license' => $this->askUser('The package licence?', 'MIT'),
            'phpVersion' => $this->askUser('Php version constraint?', '>=7.0'),

            'aliasName' => $packageFolderName,
            'configFileName' => $packageFolderName,

            'year' => date('Y'),

            'name' => $this->askUser('Your name?'),
            'email' => $this->askUser('Your email?'),
            'githubPackageUrl' => "https://github.com/$vendorFolderName/$packageFolderName",
        ];
    }
protected function getVariables ( $ vendor , $ package , $ vendorFolderName , $ packageFolderName ) { $ packageWords = str_replace ( '-' , ' ' , Str :: snake ( $ packageFolderName ) ) ; $ composerDescription = $ this -> askUser ( 'The composer description?' , "A $packageWords" ) ; $ composerKeywords = $ this -> getComposerKeywords ( $ packageWords ) ; $ packageHumanName = $ this -> askUser ( 'The package human name?' , Str :: title ( $ packageWords ) ) ; return [ 'vendor' => $ vendor , 'package' => $ package , 'vendorFolderName' => $ vendorFolderName , 'packageFolderName' => $ packageFolderName , 'packageHumanName' => $ packageHumanName , 'composerName' => "$vendorFolderName/$packageFolderName" , 'composerDesc' => $ composerDescription , 'composerKeywords' => $ composerKeywords , 'license' => $ this -> askUser ( 'The package licence?' , 'MIT' ) , 'phpVersion' => $ this -> askUser ( 'Php version constraint?' , '>=7.0' ) , 'aliasName' => $ packageFolderName , 'configFileName' => $ packageFolderName , 'year' => date ( 'Y' ) , 'name' => $ this -> askUser ( 'Your name?' ) , 'email' => $ this -> askUser ( 'Your email?' ) , 'githubPackageUrl' => "https://github.com/$vendorFolderName/$packageFolderName" , ] ; }
Get variables for substitution in templates.

@param string $vendor
@param string $package
@param string $vendorFolderName
@param string $packageFolderName

@return array
Get variables for substitution in templates .