Download the PHP package iachilles/eavactiverecord without Composer

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

EavActiveRecord

Implements entity-attribute-value pattern and provides a simple way to work with EAV-attributes. EAV-attributes are stored in the database as separate records but accessed and searched in such a way as if they were columns in the entity's table.

The following features are supported:

Requirements

Installation

  1. Download and extract the release files under the folder "protected/components/eavactiverecord".
  2. Run the SQL-script mysql.sql or postgresql.sql (if your DBMS is PostgreSQL) It is located in the following folder: "protected/components/eavactiverecord/schema/". It creates tables needed to work with EAV attributes: eav_set, eav_attribute, eav_attribute_set, eav_attribute_date, eav_attribute_int, eav_attribute_varchar, eav_attribute_text.
  3. Add the following lines in the file "protected/config/main.php":

  4. It requires cache to be activated in the application:

    The extension will use own cache component if it is defined as the following:

    If you do not use cache, add the following code in the file "protected/config/main.php":

  5. Extend your model class from the class EavActiveRecord

  6. Call the method Foo::addColumn(). This method must only be called once for each model that extends EavActiveRecord class. It adds the new column "eav_set_id" in the associated database table.

  7. Since v1.0.2 it includes the GUI module for user interaction (front-end module) based on the extension API. For detailed information about installing the module, reed the EavModule Installation Guide

    The screenshot of the module page is shown below EavModule screenshot


What's next?

For detailed information on how to use the extension eavactiverecord, please read the following wiki articles:

  1. Quick Start Guide
  2. Manage EAV attributes
  3. Manage sets of EAV attributes
  4. Using EAV attributes in the model
    1. Attaching EAV attributes to the model
    2. Assigning a value to the EAV attribute
    3. Accessing the EAV attribute value
    4. Saving the EAV attribute value
    5. Deleting the EAV attribute value
    6. Eager and lazy loading of EAV attribute values
    7. Searching by EAV attributes
    8. Priority of attributes
  5. Creating form elements for EAV attributes using the widget EavForm
  6. The API documentation

All versions of eavactiverecord with dependencies

PHP Build Version
Package Version
Requires php Version >=5.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 iachilles/eavactiverecord contains the following files

Loading the files please wait ....