ttek/tk-installers

Tropotek installer plugins

Installs: 1 189

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 0

Type:composer-plugin

8.0.2 2023-06-27 00:00 UTC

README

Project: ttek/tk-installers Web: http://www.tropotek.com/
Authors: Michael Mifsud http://www.tropotek.com/
Reference: https://getcomposer.org/doc/articles/custom-installers.md

This lib is used by composer when using the update/install command.

Contents

Installation

Available on Packagist (ttek/tk-installers) and as such installable via Composer.

composer require ttek/tk-installers

Or add the following to your composer.json file:

"ttek/tk-installers": "~3.0"

If you do not use Composer, you can grab the code from GitHub, and use any PSR-0 compatible autoloader (e.g. the PHP DomTemplate) to load the classes.

Introduction

The main aim of this project is to allow for the Tk libs to build packages that install to other directories other than the vendor directory.

Tk projects also contain:

  • assets A folder to store media, css and Javascript packages if required
  • plugins A folder for plugins that some sites may want to implement.
  • theme A folder for your site themes

The InitProject Event object is used when the composer update/install command is run. This first checks for a config.php and a .htaccess and if they do not exist it then creates them from the .htaccess.in and config.php.in if they are readable. It also creates a data folder and makes it writable.