Bigfork\Installer\Install
Post create-project helper
Synopsis
class Install
{
- // members
- private static string $basePath = '';
- // methods
- public static string getBasepath()
- public static void postCreateProject()
- protected static void applyConfiguration()
- protected static void installNpm()
- protected static void removeReadme()
Members
private
- $basePath — string
Methods
protected
- applyConfiguration() — Replaces placeholders in .env.example and renames it to .env
- installNpm() — Runs "npm install" if a package.json file is present in the project.
- removeReadme() — Removes README.md from the project.
public
- getBasepath() — Get the document root for this project. Attempts getcwd(), falls back to directory traversal.
- postCreateProject() — Called after every "composer update" command, or after a "composer install" command has been executed without a lock file present