Download the PHP package kartik-v/yii2-app-practical-a without Composer

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

Krajee Logo
Yii 2 Practical-A Project Template
Donate

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

Yii 2 Practical-A Project Template is a skeleton Yii 2 application based on the yii2-advanced template best for developing complex Web applications with multiple tiers. The template allows a practical method to directly access the frontend from the app root and a simplified way to access backend.

The template includes three tiers: front end, back end, and console, each of which is a separate Yii application.

The template is designed to work in a team development environment. It supports deploying the application in different environments.

Why yii2-practical-a?

After installing an app in the yii2-advanced application you normally would access the frontend and backend by:

However, in many practical scenarios (especially on shared and single domain hosts) one would want their users to directly access frontend and backend as:

The yii2-app-practical-a enables you to achieve just that by carefully moving and rearranging the bootstrap files and web components of frontend to work directly out of the app root and backend out of the backend. The frontend/web and backend/web folders are entirely eliminated and one can directly access the application frontend this way:

and backend this way

All other aspects of the app configuration remain the same as the yii2-advanced app. The common, and console will remain as is. The frontend config, assets, models, controllers, views, widgets and components, will still reside within the frontend directory. The backend config, assets, models, controllers, views, widgets and components, will still reside within the backend directory. It is just the web access that is moved out to app root for frontend and to the backend root folder for backend.

SOME KEY ADDITIONS

  1. The template has some security preconfigured for users with Apache web servers. It has a default .htaccess security configuration setup.
  2. The template has prettyUrl enabled by default and the changes have been made to .htaccess as well as urlManager component config in the common config directory.
  3. The template has isolated cookie settings for backend and frontend so that you can seamlessly access frontend and backend from same client. The config files includes special identity and csrf cookie parameter settings for backend. Edit it according to your needs if necessary.

Detailed documentation can be referred at docs/guide/README.md.

DIRECTORY STRUCTURE


All versions of yii2-app-practical-a with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
yiisoft/yii2 Version ~2.0.6
yiisoft/yii2-bootstrap Version ~2.0.0
yiisoft/yii2-swiftmailer Version ~2.0.0 || ~2.1.0
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 kartik-v/yii2-app-practical-a contains the following files

Loading the files please wait ....