dhii/bootstrap

Bootstraps a new Dhii project.

Installs: 228

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 3

Type:tool

v0.2 2017-09-24 16:09 UTC

This package is auto-updated.

Last update: 2024-09-07 04:05:01 UTC


README

Latest Stable Version

A bootstrap tool for quickly creating standard Dhii packages.

Phing is used to build your project files, based on project information provided during the bootstrapping phase, either through command line prompts or arguments.

  • Composer package info file
  • CS Fixer configuration file
  • PHPUnit configuration file
  • Convenient composer scripts for testing and fixing code standards
  • Travis configuration file
  • CodeClimate configuration file
  • Netbeans Project Info
  • License file
  • Changelog file
  • Readme file
  • Functional and unit test templates
  • Git repository info

Usage

Step 1. Cloning

Via Composer

Use composer's built-in create-project command, as follows:

composer create-project dhii/bootstrap my-project

This will create the my-project directory and download the bootstrap files.

Via PHPStorm

Go to File, then New Project. On the left-hand side, under PHP-Specific, choose Composer Project.

Enter the location of the project, including the name of the project as a directory name. For example: some/path/my-project.

Under package, search for dhii/bootstrap, select the search result and click Create.

PHPStorm will download the bootstrap files and automatically install its dependencies.

Step 2. Bootstrapping

From the newly created project directory simply invoke Phing, which should be installed locally to the project.

cd my-project
vendor/bin/phing

This will run in interactive mode, which will prompt you to enter information about the project. Information regarding the prompts can be found below.

Quiet Mode

You can invoke the bootstrapping process in quiet mode via the -Dquiet=true argument. This will make the script run silently without prompts but also requires you to pass the values of the prompts as command arguments, prefixed with -D. For example:

vendor/bin/phing -Dquiet=true -Dcomposer.vendor=dhii -Dcomposer.name=my-project -Dorganization="Dhii Team"...

Properties

For more information about these properties, take a peek inside the build.xml file.

Known Issues

  • Due to a Composer bug it is currently not possible to automatically invoke phing after project creation.