Download the PHP package dektrium/yii2-app-skeleton without Composer

On this page you can find all versions of the php package dektrium/yii2-app-skeleton. 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 yii2-app-skeleton

Yii2-app-skeleton

Yii2-app-skeleton is an Yii2 application template with minimum requirements and dependencies.

Features

Requirements

The minimum requirement by this project template that your Web server supports PHP 5.4.0.

Installation

That's all. After project is created, composer will run php yii init, which will create needed directories and config files. However when you deploy your project to server (or download it using git or zip archive), you will need to run following commands:

Overview

Top level directories

commands

The commands directory contains your console application's controllers (commands).

config

The config directory contains all of your application's configuration files.

controllers

The controllers directory contains your web application's controllers.

mail

The mail directory contains your application's mail view files.

migrations

The migrations directory contains database migration files.

runtime

The runtime directory contains application logs, cache and debug information.

vendor

The vendor directory contains your Composer dependencies.

views

The views directory containes your application's view files.

web

THe web directory contains the index.php file, which is the entry point for all requests entering your application.

Configuration

All of the configuration files are stored in the config directory.

Environment configuration

It is often helpful to have different configuration values based on the environment the application is running in. For example, you may wish to use a different cache driver locally than you do on your production server.

To solve this problem Yii2-app-skeleton uses PHP dotenv. After installation you will find file called .env.example in your config directory. If you install Yii2-app-skeleton via Composer, this file will automatically be renamed to .env. Otherwise, you need to run initialize command.

All of the variables in this file will be loaded into $_ENV PHP super global. You can retrieve them by using env function which is declared inside config/helpers.php file. If you look closer at configuration files in config directory you will see how often function env is used.

Your .env file should not be committed to your application's source control, since each developer / server using your application could require a different environment configuration.

You may want to add custom variables to .env.example file. After you do that, you can run php yii init command and they will be automatically injected in .env file.

Changing application environment

Out of the box Yii2-app-skeleton comes with enabled YII_DEBUG and with YII_ENV="dev". You should change it when deploying your app to production servers (or sometimes you may need it to be done locally on your machine). To do it you can use init/env command:

What's next?

Check out following links:

IDE tweaks


All versions of yii2-app-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
yiisoft/yii2 Version ^2.0.10
yiisoft/yii2-bootstrap Version ^2.0
yiisoft/yii2-swiftmailer Version ^2.0
vlucas/phpdotenv Version ^2.4
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 dektrium/yii2-app-skeleton contains the following files

Loading the files please wait ....