Свойство | Type | Description | |
---|---|---|---|
$developmentRequirements | array | The Composer development requirements/packages. | |
$exportIgnores | array | The files to ignore on exporting. | |
$file | The filesystem helper. | ||
$gitIgnores | array | The directories and files to ignore in Git repositories. | |
$projectLower | string | ex: construct | |
$projectUpper | string | ex: Construct | |
$settings | The construct command selections instance. | ||
$srcPath | string | Folder to store source files. | |
$str | String helper. | ||
$vendorLower | string | ex: jonathantorres | |
$vendorUpper | string | ex: JonathanTorres |
Méthode | Description | |
---|---|---|
__construct ( |
Initialize. | |
generate ( |
Generate project. | |
getprojectLower ( ) : string | Get project root folder. |
Méthode | Description | |
---|---|---|
behat ( ) : void | Add behat to development requirements. | |
changelog ( ) : void | Generate CHANGELOG.md file. | |
codeOfConduct ( ) : void | Generate Code of Conduct file. | |
codeception ( ) : void | Add codeception to development requirements. | |
composer ( JonathanTorres\Construct\Helpers\Git $git ) : void | Generate composer file. | |
composerInstall ( |
Do an initial composer install and require the set development packages in the constructed project. | |
contributing ( ) : void | Generate CONTRIBUTING.md file. | |
createNamespace ( boolean $useDoubleSlashes = false ) : string | Construct a correct project namespace name. | |
docs ( ) : void | Generate documentation (README, CONTRIBUTING, CHANGELOG) files. | |
editorConfig ( ) : void | Generate EditorConfig configuration file. | |
environmentFiles ( ) : void | Generate .env environment files and add package to the development requirements. | |
gitInit ( JonathanTorres\Construct\Helpers\Git $git ) : void | Initialize an empty git repo. | |
gitattributes ( ) : void | Generate gitattributes file. | |
githubDocs ( ) : void | Generate GitHub documentation files. | |
githubTemplates ( ) : void | Generate GitHub template files. | |
gitignore ( ) : void | Generate gitignore file. | |
gitmessage ( ) : void | Copy .gitmessage stub file. | |
lgtmFiles ( ) : void | Generate LGTM configuration files. | |
license ( JonathanTorres\Construct\Helpers\Git $git ) : void | Generate LICENSE.md file. | |
phpcs ( ) : void | Generate PHP CS Fixer configuration file and add package to the development requirements. | |
phpspec ( ) : void | Generate phpspec config file, create a specs directory and add package to development requirements. | |
phpunit ( ) : void | Generate phpunit test/file/settings and add package to the development requirements. | |
phpunitTest ( ) : void | Generate phpunit test file. | |
projectClass ( ) : void | Generate project class file. | |
readme ( ) : void | Generate README.md file. | |
root ( ) : void | Create project root folder. | |
saveNames ( ) : void | Save versions of project names. | |
scripts ( |
Run any extra scripts. | |
src ( ) : void | Create 'src' folder. | |
testing ( ) : void | Generate files for the selected testing framework. | |
travis ( ) : void | Generate .travis.yml file. | |
vagrant ( ) : void | Generate Vagrant file. |
public __construct ( |
||
$file | ||
$str | ||
Résultat | void |
protected codeOfConduct ( ) : void | ||
Résultat | void |
protected codeception ( ) : void | ||
Résultat | void |
protected composerInstall ( |
||
$script | ||
Résultat | void |
protected contributing ( ) : void | ||
Résultat | void |
protected createNamespace ( boolean $useDoubleSlashes = false ) : string | ||
$useDoubleSlashes | boolean | Whether or not to create the namespace with double slashes \\ |
Résultat | string |
protected editorConfig ( ) : void | ||
Résultat | void |
protected environmentFiles ( ) : void | ||
Résultat | void |
public generate ( |
||
$settings | The command settings made by the user. | |
$git | JonathanTorres\Construct\Helpers\Git | The git helper. |
$script | The script helper. | |
Résultat | void |
public getprojectLower ( ) : string | ||
Résultat | string |
protected gitattributes ( ) : void | ||
Résultat | void |
protected githubDocs ( ) : void | ||
Résultat | void |
protected githubTemplates ( ) : void | ||
Résultat | void |
protected gitmessage ( ) : void | ||
Résultat | void |
protected phpunitTest ( ) : void | ||
Résultat | void |
protected projectClass ( ) : void | ||
Résultat | void |
protected array $developmentRequirements | ||
Résultat | array |
protected array $exportIgnores | ||
Résultat | array |
protected Filesystem,JonathanTorres\Construct\Helpers $file | ||
Résultat |
protected array $gitIgnores | ||
Résultat | array |
protected Settings,JonathanTorres\Construct $settings | ||
Résultat |
protected string $srcPath | ||
Résultat | string |
protected Str,JonathanTorres\Construct\Helpers $str | ||
Résultat |