PHP Класс JonathanTorres\Construct\Construct

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

Initialize.
public __construct ( Filesystem $file, Str $str ) : void
$file JonathanTorres\Construct\Helpers\Filesystem
$str JonathanTorres\Construct\Helpers\Str
Результат void

behat() защищенный Метод

Add behat to development requirements.
protected behat ( ) : void
Результат void

changelog() защищенный Метод

Generate CHANGELOG.md file.
protected changelog ( ) : void
Результат void

codeOfConduct() защищенный Метод

Generate Code of Conduct file.
protected codeOfConduct ( ) : void
Результат void

codeception() защищенный Метод

Add codeception to development requirements.
protected codeception ( ) : void
Результат void

composer() защищенный Метод

Generate composer file.
protected composer ( JonathanTorres\Construct\Helpers\Git $git ) : void
$git JonathanTorres\Construct\Helpers\Git The git helper.
Результат void

composerInstall() защищенный Метод

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
Результат void

contributing() защищенный Метод

Generate CONTRIBUTING.md file.
protected contributing ( ) : void
Результат void

createNamespace() защищенный Метод

Construct a correct project namespace name.
protected createNamespace ( boolean $useDoubleSlashes = false ) : string
$useDoubleSlashes boolean Whether or not to create the namespace with double slashes \\
Результат string

docs() защищенный Метод

Generate documentation (README, CONTRIBUTING, CHANGELOG) files.
protected docs ( ) : void
Результат void

editorConfig() защищенный Метод

Generate EditorConfig configuration file.
protected editorConfig ( ) : void
Результат void

environmentFiles() защищенный Метод

Generate .env environment files and add package to the development requirements.
protected environmentFiles ( ) : void
Результат void

generate() публичный Метод

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.
Результат void

getprojectLower() публичный Метод

Get project root folder.
public getprojectLower ( ) : string
Результат string

gitInit() защищенный Метод

Initialize an empty git repo.
protected gitInit ( JonathanTorres\Construct\Helpers\Git $git ) : void
$git JonathanTorres\Construct\Helpers\Git
Результат void

gitattributes() защищенный Метод

Generate gitattributes file.
protected gitattributes ( ) : void
Результат void

githubDocs() защищенный Метод

Generate GitHub documentation files.
protected githubDocs ( ) : void
Результат void

githubTemplates() защищенный Метод

Generate GitHub template files.
protected githubTemplates ( ) : void
Результат void

gitignore() защищенный Метод

Generate gitignore file.
protected gitignore ( ) : void
Результат void

gitmessage() защищенный Метод

Copy .gitmessage stub file.
protected gitmessage ( ) : void
Результат void

lgtmFiles() защищенный Метод

Generate LGTM configuration files.
protected lgtmFiles ( ) : void
Результат void

license() защищенный Метод

Generate LICENSE.md file.
protected license ( JonathanTorres\Construct\Helpers\Git $git ) : void
$git JonathanTorres\Construct\Helpers\Git The git helper.
Результат void

phpcs() защищенный Метод

Generate PHP CS Fixer configuration file and add package to the development requirements.
protected phpcs ( ) : void
Результат void

phpspec() защищенный Метод

Generate phpspec config file, create a specs directory and add package to development requirements.
protected phpspec ( ) : void
Результат void

phpunit() защищенный Метод

Generate phpunit test/file/settings and add package to the development requirements.
protected phpunit ( ) : void
Результат void

phpunitTest() защищенный Метод

Generate phpunit test file.
protected phpunitTest ( ) : void
Результат void

projectClass() защищенный Метод

Generate project class file.
protected projectClass ( ) : void
Результат void

readme() защищенный Метод

Generate README.md file.
protected readme ( ) : void
Результат void

root() защищенный Метод

Create project root folder.
protected root ( ) : void
Результат void

saveNames() защищенный Метод

Save versions of project names.
protected saveNames ( ) : void
Результат void

scripts() защищенный Метод

Run any extra scripts.
protected scripts ( Script $script ) : void
$script JonathanTorres\Construct\Helpers\Script
Результат void

src() защищенный Метод

Create 'src' folder.
protected src ( ) : void
Результат void

testing() защищенный Метод

Generate files for the selected testing framework.
protected testing ( ) : void
Результат void

travis() защищенный Метод

Generate .travis.yml file.
protected travis ( ) : void
Результат void

vagrant() защищенный Метод

Generate Vagrant file.
protected vagrant ( ) : void
Результат void

Описание свойств

$developmentRequirements защищенное свойство

The Composer development requirements/packages.
protected array $developmentRequirements
Результат array

$exportIgnores защищенное свойство

The files to ignore on exporting.
protected array $exportIgnores
Результат array

$file защищенное свойство

The filesystem helper.
protected Filesystem,JonathanTorres\Construct\Helpers $file
Результат JonathanTorres\Construct\Helpers\Filesystem

$gitIgnores защищенное свойство

The directories and files to ignore in Git repositories.
protected array $gitIgnores
Результат array

$projectLower защищенное свойство

ex: construct
protected string $projectLower
Результат string

$projectUpper защищенное свойство

ex: Construct
protected string $projectUpper
Результат string

$settings защищенное свойство

The construct command selections instance.
protected Settings,JonathanTorres\Construct $settings
Результат Settings

$srcPath защищенное свойство

Folder to store source files.
protected string $srcPath
Результат string

$str защищенное свойство

String helper.
protected Str,JonathanTorres\Construct\Helpers $str
Результат JonathanTorres\Construct\Helpers\Str

$vendorLower защищенное свойство

ex: jonathantorres
protected string $vendorLower
Результат string

$vendorUpper защищенное свойство

ex: JonathanTorres
protected string $vendorUpper
Результат string