src/ufw/Setup.php
protected function createProject($projectName = 'myProj') {
        $this->showHeader();
        Console::stdout("Creating $projectName \n");

        Utils::getInstance()->createDirectory("./apps/" . $projectName, ['src', 'routes', 'config', 'public', 'doc', 'templates']);
        echo "\n";
        foreach (self::FILES_APP as $pathname => $contents) {
            Utils::getInstance()->createFile("./apps/" . $projectName . "/" . $pathname, $contents);
        }
        echo "\n Don't forget to run 'composer update' in your root project folder (apps/" . $projectName . ") before start to use! \n";
    }
protected function createProject($projectName = 'myProj') {
        $this->showHeader();
        Console::stdout("Creating $projectName \n");

        Utils::getInstance()->createDirectory("./apps/" . $projectName, ['src', 'routes', 'config', 'public', 'doc', 'templates']);
        echo "\n";
        foreach (self::FILES_APP as $pathname => $contents) {
            Utils::getInstance()->createFile("./apps/" . $projectName . "/" . $pathname, $contents);
        }
        echo "\n Don't forget to run 'composer update' in your root project folder (apps/" . $projectName . ") before start to use! \n";
    }
protected function createProject ( $ projectName = 'myProj' ) { $ this -> showHeader ( ) ; Console :: stdout ( "Creating $projectName \n" ) ; Utils :: getInstance ( ) -> createDirectory ( "./apps/" . $ projectName , [ 'src' , 'routes' , 'config' , 'public' , 'doc' , 'templates' ] ) ; echo "\n" ; foreach ( self :: FILES_APP as $ pathname => $ contents ) { Utils :: getInstance ( ) -> createFile ( "./apps/" . $ projectName . "/" . $ pathname , $ contents ) ; } echo "\n Don't forget to run 'composer update' in your root project folder (apps/" . $ projectName . ") before start to use! \n" ; }
Create a new project workspace, and initialize it.

@param string $projectName
Create a new project workspace and initialize it .