Download the PHP package netis/yii2-crud without Composer

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

yii2-crud

Provides:

ActiveRecord

Filtering

Filters are separated from validator rules. This allows to perform filtering and validation separately. This is sometimes required when filters modify values in such way they can't be applied twice.

This is implemented in the netis\crud\db\FilterAttributeValuesTrait trait. The base AR class also introduces two new events, beforeFilter and afterFilter.

Relations

Since the CRUD renders all model relations, they need to be enumerated in the model. This is done in the new relations() method.

Saving relations is done by using the netis\crud\db\LinkableBehavior behavior.

Relations are also used for authorization. The base AR class has the netis\rbac\AuthorizerBehavior attached.

Labels

Models can be cast to string, because the base AR class implements the __toString() method. By attaching the netis\crud\db\LabelsBehavior behavior, you can select attributes used to generate a string representation of a specific model. The behavior also allows to define general label for a model and its relations.

Attribute formats

Formatter formats can be assigned to model attributes in the attributeFormats() method. Defaults are detected based on the database column types.

ActiveController

Response formats

The default response format is HTML. Other supported formats include JSON and XML.

When an action returns a large collection, streaming is used to output data. This is slower, but allows to send an extremely large response and renders and output data at the same time. Thanks to this, paging is not necessary to export whole contents of the database tables.

New formats can be easily added, but this requires providing both a renderer stream and a response formatter classes.

Default views

Defaults views are provided for the HTML response format. They support overriding in the same fashion as in themes.

Form builder

For the update action's form, the fields are automatically generated based on model's attributes, relations and their formats.

Relations

The view and update actions display all model relations either as single values (hasOne) or grids (hasMany). In the update action, for both relation types, new or existing records can be associated with the model being updated.

Navigation

A context menu is available.

Composite keys

Both primary and foreign composite keys (consisting of two or more columns) are fully supported.


All versions of yii2-crud with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version >=2.0.4
yiisoft/yii2-gii Version >=2.0.4
yiisoft/yii2-bootstrap Version >=2.0.4
yiisoft/yii2-jui Version ~2.0.0
maddoger/yii2-select2 Version 1.4.*
omnilight/yii2-bootstrap-datepicker Version 1.0.*
nineinchnick/yii2-audit Version 1.0.*
netis/yii2-relauth Version 1.0.*
cogpowered/finediff Version 0.3.*
mpdf/mpdf Version 6.0.*
phpoffice/phpexcel Version 1.8.*
kartik-v/yii2-widget-datetimepicker Version 1.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 netis/yii2-crud contains the following files

Loading the files please wait ....