Download the PHP package jaclise/yii2-gii without Composer

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

Yii2-gii for Chinese

主要针对中文和项目的优化

default模板

CRUD

  1. 减少翻译标签,将Create Post分开成Create和Post,翻译文件的标签大大减少
  2. 针对Adminlte减少h1标签
  3. 针对鉴权提供can函数,默认注释
  4. controller.php增加对status的支持
  5. controller.php Create部分会加载数据库默认,Delete会将状态设置为STATUS_DELETE
  6. search.php增加排序,按照sort_order升序, create_at降序

Model

  1. 增加beforeSave和afterSave两个函数,默认为注释掉的
  2. 增加状态信息,以及$_statusLabel,并增加两个函数getArrayStatus和getStatusLabel

Usage

1.在生成的视图index.php替换'status'

2.在生成的视图_form.php替换如下代码

3.在生成的视图view.php替换'status'

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

在main-local.php中配置:

在gii新建模板时会多出一个选项。

如果要统一输出显示的日期时间格式,修改config/main.php


All versions of yii2-gii with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version *
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 jaclise/yii2-gii contains the following files

Loading the files please wait ....