Download the PHP package yii2tech/install without Composer

On this page you can find all versions of the php package yii2tech/install. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package install

Install Extension for Yii 2


This extension provides ability for automated initialization of the project working copy, including local directories and files creation, running DB migrations and so on.

For license information check the LICENSE-file.

Latest Stable Version Total Downloads Build Status

Requirements

This extension requires Linux OS.

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json.

If you wish to setup crontab during project installation, you will also need to install yii2tech/crontab, which is not required by default. In order to do so either run

or add

to the require section of your composer.json.

Usage

This extension provides special console controller [[yii2tech\install\InitController]], which allows initialization of the project working copy. Such initialization includes:

In order to create an installer, you should create a separated console application entry script. This script should be absolutely stripped from the local configuration files, database and so on! See examples/install.php for the example of such script.

Once you have such script you can run installation process, using following command:

Working with local files

The most interesting feature introduced by [[yii2tech\install\InitController]] is creating local project files, such as configuration files, from thier examples in interactive mode. For each file, which content may vary depending on actual project environment, you should create a template file named in format {filename}.sample. This file should be located under the same directory, where the actual local file should appear. Inside the template file you can use placeholders in format: {{placeholderName}}. For example:

While being processed, file templates are parsed, and for all found placeholders user will be asked to enter a value for them. You can make this process more user-friendly by setting [[yii2tech\install\InitController::localFilePlaceholders]], specifying hints, type and validation rules. See [[yii2tech\install\LocalFilePlaceholder]] for more details.

Non interactive installation

Asking user for particular placeholder value may be not efficient and sometimes not acceptable. You may need to run project intallation in fully automatic mode without user input, for example after updating source code from version control system inside automatic project update. In order to disable any user-interaction, you should use interactive option:

In this mode for all local file placeholders the default values will be taken, but only in case such values are explicitely defined via [[yii2tech\install\InitController::localFilePlaceholders]]. Because install entry script usually stored under version control system and local file placeholder values (as well as other installation parameters) may vary depending on particular environment, [[yii2tech\install\InitController]] instroduce 'config' option. Using this option you may specify extra configuration file, which should be merged with predefined parameters. In order to create such configuration file, you can use following:

Once you have adjusted created configuration file, you can run installation with it:


All versions of install with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2.0.13
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yii2tech/install contains the following files

Loading the files please wait ....