Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

prototype.library.platform

Prototype for library projects. Contains build, composer.json, basic PHP folder structure etc. The interactive installer eliminates the need to pass anything to the command line or do own configuration.

Usage

  1. Install the prototype with composer:
composer create-project "codenamephp/prototype.library.platform" projectFolder ["version"] [--no-dev] --kepp-vcs
  1. Follow the instructions on screen
  2. Check the dependency versions in composer.json and execute a composer update
  3. Open in Netbeans and be productive :)

Non-Interactive Mode

The installer can also be exectued in non interactive mode. You can then provide all the answers the installer needs in a serialized array that must be put into answers.serialized in the root folder before the installer is exectued. This can be used for web clients etc. that get all the answers needed before hand.

composer create-project "codenamephp/prototype.library.platform" projectFolder ["version"] [--no-dev] -n
php -r "file_put_contents('projectFolder/answers.seralized', serialize(['question key' => 'answer']);"
cd projectFolder
composer run-script post-create-project-cmd

Notice the -n when running the create-project command. This puts the installer in non-interactive mode. If you don't do this, it will expect the answers from the command line and not look for the file.

The following question keys need to be set:

  • vendor: The vendor of the package
  • displayName: The human readable name of the package
  • componentName: The package name
  • namespace: the base namespace of the project
You can’t perform that action at this time.