PHP Class JonathanTorres\Construct\Construct

Afficher le fichier Open project: jonathantorres/construct

Protected Properties

Свойство Type Description
$developmentRequirements array The Composer development requirements/packages.
$exportIgnores array The files to ignore on exporting.
$file JonathanTorres\Construct\Helpers\Filesystem The filesystem helper.
$gitIgnores array The directories and files to ignore in Git repositories.
$projectLower string ex: construct
$projectUpper string ex: Construct
$settings Settings The construct command selections instance.
$srcPath string Folder to store source files.
$str JonathanTorres\Construct\Helpers\Str String helper.
$vendorLower string ex: jonathantorres
$vendorUpper string ex: JonathanTorres

Méthodes publiques

Méthode Description
__construct ( Filesystem $file, Str $str ) : void Initialize.
generate ( Settings $settings, JonathanTorres\Construct\Helpers\Git $git, Script $script ) : void Generate project.
getprojectLower ( ) : string Get project root folder.

Méthodes protégées

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 ( Script $script ) : void 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 ( Script $script ) : void 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.

Method Details

__construct() public méthode

Initialize.
public __construct ( Filesystem $file, Str $str ) : void
$file JonathanTorres\Construct\Helpers\Filesystem
$str JonathanTorres\Construct\Helpers\Str
Résultat void

behat() protected méthode

Add behat to development requirements.
protected behat ( ) : void
Résultat void

changelog() protected méthode

Generate CHANGELOG.md file.
protected changelog ( ) : void
Résultat void

codeOfConduct() protected méthode

Generate Code of Conduct file.
protected codeOfConduct ( ) : void
Résultat void

codeception() protected méthode

Add codeception to development requirements.
protected codeception ( ) : void
Résultat void

composer() protected méthode

Generate composer file.
protected composer ( JonathanTorres\Construct\Helpers\Git $git ) : void
$git JonathanTorres\Construct\Helpers\Git The git helper.
Résultat void

composerInstall() protected méthode

Do an initial composer install and require the set development packages in the constructed project.
protected composerInstall ( Script $script ) : void
$script JonathanTorres\Construct\Helpers\Script
Résultat void

contributing() protected méthode

Generate CONTRIBUTING.md file.
protected contributing ( ) : void
Résultat void

createNamespace() protected méthode

Construct a correct project namespace name.
protected createNamespace ( boolean $useDoubleSlashes = false ) : string
$useDoubleSlashes boolean Whether or not to create the namespace with double slashes \\
Résultat string

docs() protected méthode

Generate documentation (README, CONTRIBUTING, CHANGELOG) files.
protected docs ( ) : void
Résultat void

editorConfig() protected méthode

Generate EditorConfig configuration file.
protected editorConfig ( ) : void
Résultat void

environmentFiles() protected méthode

Generate .env environment files and add package to the development requirements.
protected environmentFiles ( ) : void
Résultat void

generate() public méthode

Generate project.
public generate ( Settings $settings, JonathanTorres\Construct\Helpers\Git $git, Script $script ) : void
$settings Settings The command settings made by the user.
$git JonathanTorres\Construct\Helpers\Git The git helper.
$script JonathanTorres\Construct\Helpers\Script The script helper.
Résultat void

getprojectLower() public méthode

Get project root folder.
public getprojectLower ( ) : string
Résultat string

gitInit() protected méthode

Initialize an empty git repo.
protected gitInit ( JonathanTorres\Construct\Helpers\Git $git ) : void
$git JonathanTorres\Construct\Helpers\Git
Résultat void

gitattributes() protected méthode

Generate gitattributes file.
protected gitattributes ( ) : void
Résultat void

githubDocs() protected méthode

Generate GitHub documentation files.
protected githubDocs ( ) : void
Résultat void

githubTemplates() protected méthode

Generate GitHub template files.
protected githubTemplates ( ) : void
Résultat void

gitignore() protected méthode

Generate gitignore file.
protected gitignore ( ) : void
Résultat void

gitmessage() protected méthode

Copy .gitmessage stub file.
protected gitmessage ( ) : void
Résultat void

lgtmFiles() protected méthode

Generate LGTM configuration files.
protected lgtmFiles ( ) : void
Résultat void

license() protected méthode

Generate LICENSE.md file.
protected license ( JonathanTorres\Construct\Helpers\Git $git ) : void
$git JonathanTorres\Construct\Helpers\Git The git helper.
Résultat void

phpcs() protected méthode

Generate PHP CS Fixer configuration file and add package to the development requirements.
protected phpcs ( ) : void
Résultat void

phpspec() protected méthode

Generate phpspec config file, create a specs directory and add package to development requirements.
protected phpspec ( ) : void
Résultat void

phpunit() protected méthode

Generate phpunit test/file/settings and add package to the development requirements.
protected phpunit ( ) : void
Résultat void

phpunitTest() protected méthode

Generate phpunit test file.
protected phpunitTest ( ) : void
Résultat void

projectClass() protected méthode

Generate project class file.
protected projectClass ( ) : void
Résultat void

readme() protected méthode

Generate README.md file.
protected readme ( ) : void
Résultat void

root() protected méthode

Create project root folder.
protected root ( ) : void
Résultat void

saveNames() protected méthode

Save versions of project names.
protected saveNames ( ) : void
Résultat void

scripts() protected méthode

Run any extra scripts.
protected scripts ( Script $script ) : void
$script JonathanTorres\Construct\Helpers\Script
Résultat void

src() protected méthode

Create 'src' folder.
protected src ( ) : void
Résultat void

testing() protected méthode

Generate files for the selected testing framework.
protected testing ( ) : void
Résultat void

travis() protected méthode

Generate .travis.yml file.
protected travis ( ) : void
Résultat void

vagrant() protected méthode

Generate Vagrant file.
protected vagrant ( ) : void
Résultat void

Property Details

$developmentRequirements protected_oe property

The Composer development requirements/packages.
protected array $developmentRequirements
Résultat array

$exportIgnores protected_oe property

The files to ignore on exporting.
protected array $exportIgnores
Résultat array

$file protected_oe property

The filesystem helper.
protected Filesystem,JonathanTorres\Construct\Helpers $file
Résultat JonathanTorres\Construct\Helpers\Filesystem

$gitIgnores protected_oe property

The directories and files to ignore in Git repositories.
protected array $gitIgnores
Résultat array

$projectLower protected_oe property

ex: construct
protected string $projectLower
Résultat string

$projectUpper protected_oe property

ex: Construct
protected string $projectUpper
Résultat string

$settings protected_oe property

The construct command selections instance.
protected Settings,JonathanTorres\Construct $settings
Résultat Settings

$srcPath protected_oe property

Folder to store source files.
protected string $srcPath
Résultat string

$str protected_oe property

String helper.
protected Str,JonathanTorres\Construct\Helpers $str
Résultat JonathanTorres\Construct\Helpers\Str

$vendorLower protected_oe property

ex: jonathantorres
protected string $vendorLower
Résultat string

$vendorUpper protected_oe property

ex: JonathanTorres
protected string $vendorUpper
Résultat string